This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 42959
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!