File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Mac OS and the fly likes Question on pre-installed JDKs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "Question on pre-installed JDKs" Watch "Question on pre-installed JDKs" New topic

Question on pre-installed JDKs

John Eric Hamacher
Ranch Hand

Joined: Apr 25, 2007
Posts: 230

I just bought a Mac and thinking about setting up a Java development environment. The following sentence from Apple scares me a little:

For this reason, it is important that developers do not install files in the Java JDK's inside of /System, since the changes will be lost with subsequent updates by newer versions of Java.

What if I need to edit, say, Will it be overwritten? Is it a common practice to install a JDK apart from the system JDK? Thanks.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
It may get overwritten whenever the JVM is updated, which is a rare occasion - in contrast to Sun, Apple releases new JVM versions no more than once a year or so (more likely less often than more often).

And there's no way to install multiple versions of Apple's releases.

If you're talking about Harmony, OpenJDK/IcedTea, Kaffe, SableVM or other such 3rd-party JVMs - that's possible, but those wouldn't be installed in the same location as Apple's JVM, so no harm done.
John Eric Hamacher
Ranch Hand

Joined: Apr 25, 2007
Posts: 230
Thanks for the info!
I agree. Here's the link:
subject: Question on pre-installed JDKs
It's not a secret anymore!