Fail to use jythonc
Gerhard Häring
gerhard at bigfoot.de
Fri Apr 5 05:40:22 EST 2002
Xiao-Qin Xia wrote in comp.lang.python:
> I installed a jython recently, but cannot use jythonc.
> for example, a very simple program is:
> [...]
> [xqxia at mwise1 jython-2.1]$ ./jythonc mytest.py
> processing mytest
>
> Required packages:
>
> Creating adapters:
>
> Creating .java files:
> mytest module
>
> Compiling .java to .class...
> Compiling with args: ['/usr/local/j2re1.3.0/bin/javac', '-classpath',
> '/home/xqxia/jython-2.1/jython.jar::./jpywork::/home/xqxia/jython-2.1/Tools/jythonc:/home/xqxia/jython-2.1/.:/home/xqxia/jython-2.1/Lib',
> './jpywork/mytest.java']
> 1 java.io.IOException: /usr/local/j2re1.3.0/bin/javac: not found
>
> Consider using the -C/--compiler command line switch, or setting
> the property python.jythonc.compiler in the registry.
> ERROR DURING JAVA COMPILATION... EXITING
> [xqxia at mwise1 jython-2.1]$
> """
Looks like you have the JRE installed, but not them JDK.
JRE = Java Runtime Environment -- only for running Java programs
JDK = Java Development Kit -- for running and compiling Java programs
You need a JDK for using jythonc. Ok, you *could* also use an
alternative compiler like Jikes, that's what the last message about
"-C/--compiler" is trying to tell you :)
Gerhard
More information about the Python-list
mailing list