Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jaredrou

macrumors newbie
Original poster
Jun 11, 2005
27
0
I've been searching for hours...

I've installed the JDK5.0 update but can't seem to find out how to get anything compiled using 1.5.

I want to be able to compile from terminal and Xcode, but I didn't want to break anything by relinking the CurrentVersion of the JRE, so I'd be fine with symlinking something in the terminal to run the 1.5 compiler, but how could I even do that?

If there's a better way to kill all the birds with one stone as far as XCode being able to take advantage of the 1.5 classes, I'm fine with that too.

Advice greatly appreciated. Thanks!
 

jaredrou

macrumors newbie
Original poster
Jun 11, 2005
27
0
By the way, I've already tried checking the posts here, and I read:

Compile 'em all said:
I have checked the FAQ and it means that if you have Java 1.5 installed, it
will co-exist with Java 1.4. However. when you try using java (running) and
javac (compiling) Java programs, 1.4 will be used. In order to use the
installed 1.5 you have to explicitly mention that you will be using 1.5 via
some argument.
Summary, in a system with 1.4 and 1.5 installed, java and javac will invoke
1.4. To use 1.5, an argument has to be specified.

I read the link on there and could not figure out what argument needed to be passed to the compiler to use 1.5. Any suggestions?
 

jaredrou

macrumors newbie
Original poster
Jun 11, 2005
27
0
went ahead and symlinked... nothing broken so far *crosses fingers*
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.