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

vedhapriyah

macrumors newbie
Original poster
Nov 14, 2011
1
0
Hi All,

For my product to work on Mac i need the 32 bit Java to be enabled. How do i achieve this on Mac 10.5/10.6/10.7. I tried enabling or changing the Java preferences by dragging n dropping 32 bit to first,but still its getting detected to be a 64 bit JRE using the following command.

/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java -version 2>&1| grep -i 64-bit

Is there any other way to do achieve this.Can i anyone help on this?

Thanks,
Vedha
 
That will NOT work on 10.5 as there is no 32-bit Java 6 for that platform. I am not sure why it isn't working properly on 10.6, though. Mind you, the default Java in 10.6 is 64-bit JRE 6, but you can change that in Java Preferences. 10.7 is an altogether different beast, due entirely to Java not even being installed by default. The same mechanism should work for Java 6 on 10.7, though. One more point: Applications don't recognize a change in default Java version, regardless of whether they need it to run or not, until they are quit and relaunched.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.