Message10049

Author GelattD
Recipients GelattD
Date 2015-05-11.20:34:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1431376444.16.0.316842624162.issue2353@psf.upfronthosting.co.za>
In-reply-to
Content
My PC runs 64-bit Win8.1 Pro with both 64-bit and 32-bit Java installed.  JAVA_HOME
is not defined, and only 64-bit Java is on the PATH.

    C:\downloads\Python>set JAVA_HOME
    Environment variable JAVA_HOME not defined
    
    C:\downloads\Python>"C:\Program Files\Java\jre7\bin\java" -version
    java version "1.7.0_71"
    Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
    Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
    
    C:\downloads\Python>java -version
    java version "1.7.0_71"
    Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
    Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

Install Jython 2.7.0 with this 64-bit Java:

    C:\downloads\Python>"C:\Program Files\Java\jre7\bin\java" -jar jython-installer-2.7.0.jar
    Ignoring indexes: https://pypi.python.org/simple/
    Downloading/unpacking setuptools
    Downloading/unpacking pip
    Installing collected packages: setuptools, pip
    Successfully installed setuptools pip
    Cleaning up...

Try running the jython.exe that is installed - it runs in 32-bit Java (!?):

    C:\downloads\Python>c:\programs\jython2.7.0\bin\jython
    Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11)
    [Java HotSpot(TM) Client VM (Oracle Corporation)] on java1.7.0_71
    Type "help", "copyright", "credits" or "license" for more information.
    >>> exit()
    
    C:\downloads\Python>c:\programs\jython2.7.0\bin\jython --print
    java -Xmx512m -Xss1024k -classpath c:\programs\jython2.7.0\jython.jar;. -Dpython.home=c:\programs\jython2.7.0 -Dpython.executable=c:\programs\jython2.7.0\bin\jython.exe -Dpython.launcher.uname=windows
     -Dpython.launcher.tty=true org.python.util.jython

Run the installed jython.jar in 64-bit Java (the default on the machine):

    C:\downloads\Python>java -jar c:\programs\jython2.7.0\jython.jar
    Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11)
    [Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_71
    Type "help", "copyright", "credits" or "license" for more information.
    >>> exit()

These results are consistent with jython.exe being a 32-bit executable even though it was installed by 64-bit Java.

Why not install a 64-bit version of jython.exe when installing with 64-bit Java?  I can work around it, but the current behavior will confuse users.
History
Date User Action Args
2015-05-11 20:34:04GelattDsetmessageid: <1431376444.16.0.316842624162.issue2353@psf.upfronthosting.co.za>
2015-05-11 20:34:04GelattDsetrecipients: + GelattD
2015-05-11 20:34:04GelattDlinkissue2353 messages
2015-05-11 20:34:03GelattDcreate