Fail to use jythonc

Xiao-Qin Xia xx758 at cam.ac.uk
Fri Apr 5 06:48:37 EST 2002


Dear everybody,

I installed a jython recently, but cannot use jythonc.
for example, a very simple program is:

# mytest.py
import time
t1=time.time()
k=0
while k<10000000:
    k=k+1
print time.time()-t1


jython can run it, but when use jythonc, error ocurred:

"""
[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]$
"""

Anybody know how to solve this problem?

Many Thanks from 

Xiao-Qin Xia



More information about the Python-list mailing list