Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

There's a bug in JDK1.6 in Snow Leopard that's affecting Netbeans. I could solve this issue by using JDK1.5, but I noticed that /System/Library/Frameworks/JavaVM.framework/Versions/1.5 links to JDK1.6.

Is there a true JDK 1.5 for Snow Leopard that can be downloaded and installed rather than just one that points to the newer JDK 1.6?

share|improve this question
    
I'm interested in the issue. Could you also post detail on this. What bug is it and what problem does it imply in NetBeans? Thx. –  LudoMC Mar 4 '11 at 18:18
    
It comes from trying to compile via Weblogic's ejbc compiler. I kept getting java.io.IOException: error=7, Argument list too long. I found this. –  David W. Mar 7 '11 at 21:49

3 Answers 3

up vote 5 down vote accepted

You can successfully add a true 1.5 version by following the instructions here: Installing Java 1.5 on Snow Leopard

I'm not guessing about this. I've actually employed this technique for some of my tech support clients.

share|improve this answer

Question is a bit old, but may still be relevant to some.

I have just succesfully installed JDK1.5 on Mountain Lion by using this script. The nitty gritty details of the script are outlined at http://www.s-seven.net/java_15_mountain_lion.

This makes JDK1.5 available at /System/Library/Java/JavaVirtualMachines/1.5.0/Contents/Home.

share|improve this answer

According to this Technical note: TN2110, J2SE 5.0 (which is synonymous with JDK 1.5) is only available with releases for 10.4 and 10.5 (see table 3 about three-quarters of the way down the document). On Apple's Developer site, you can still download Java packages from the past (note: you will need a developer or iTunes or apple account to see this page).

I have not tried to install an older Java install from Apple, so I am unsure if any of these installs will give you a JDK 1.5 that is "unlinked" from JDK 1.6 or if these old installs will place nice together or just replace. In your Utilities folder there is an application called Java Preferences. If you launch that, you can see all the Java runtimes that you have installed already. Before you try downloading past Java installs, perhaps you can use that tool to see if you have a more complete JDK 1.5 installed.

Sorry I cannot give you a more concrete answers, but I wanted to at least give you some leads to try.

Also, have you tried checking the various support forums available for Netbeans? Perhaps another Netbean Mac OS X Snow Leopard user has already found and published the answer...

Good luck!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.