The error message says it can't run the compiler and tells you what
it is trying to run. Does javac exist where it is looking for it?
Maybe since you are windows, it needs to be specified as javac.exe
instead of just javac. Look for javac.exe on your computer and
follow the suggestion in the error message and use the --C option
to tell jythonc where the java compiler is.
Freddie Witherden wrote:
> Hi, I have just tried to compile a simple Jython module (well if you can
> call it that). However, I go an java.io exception when it was compiling
> the java file. Here is my console output:
>
> C:\Python24\jython>jython test.py
> This is a Jython test!
> C:\Python24\jython>jythonc test.py
> processing test
>
> Required packages:
>
> Creating adapters:
>
> Creating .java files:
> test module
>
> Compiling .java to .class...
> Compiling with args: ['C:\\Program
> Files\\Java\\jre1.5.0_02\\bin\\javac', '-clas
> spath',
> 'C:\\Python24\\jython\\jython.jar;;.\\jpywork;;C:\\Python24\\jython\\Too
> ls\\jythonc;C:\\Python24\\jython\\.;C:\\Python24\\jython\\Lib;C:\\Python24\\jyth
>
> on', '.\\jpywork\\test.java']
> 1 java.io.IOException: CreateProcess: "C:\Program
> Files\Java\jre1.5.0_02\bin\ja
> vac" -classpath
> C:\Python24\jython\jython.jar;;.\jpywork;;C:\Python24\jython\Too
> ls\jythonc;C:\Python24\jython\.;C:\Python24\jython\Lib;C:\Python24\jython
> .\jpyw
> ork\test.java error=2
>
> Consider using the -C/--compiler command line switch, or setting
> the property python.jythonc.compiler in the registry.
> ERROR DURING JAVA COMPILATION... EXITING
>
> Sorry about the wrapping (it is my DOS console window). The test.py file
> is just:
> print 'This is a Jython test!'
> I am on Java 1.5 (or 5.0.x). I have no idea what is causing the error, I
> am on windows xp. Can anyone help (am I doing something wrong) or is it
> a bug?
>
>
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Jython-users mailing list
> Jyt...@li...
> https://lists.sourceforge.net/lists/listinfo/jython-users
|