Enabling/Installing 32 bit Java on 32 bit Intel Mac

Discussion in 'Mac Basics and Help' started by vedhapriyah, Nov 14, 2011.

  1. vedhapriyah macrumors newbie

    Joined:
    Nov 14, 2011
    #1
    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
     
  2. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #2
    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.
     
  3. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #3
    1. Read the man page for the 'java' command.
    2. Notice the -d32 option.
     

Share This Page