1

我正在使用 Jythonc 将文件编译*.py*.class文件。但是,每当我尝试从命令行编译文件时,都会出现以下错误:

Required packages:
  java.lang

Creating adapters:

Creating .java files:
  StringParser module
    StringParser extends java.lang.Object

Compiling .java to .class...
Compiling with args: [';e:\\Program Files\\Java\\jdk1.7.0_04\\bin\\javac', '-cla
sspath', 'E:\\Program Files\\jythonRelease_2_2alpha1\\jython.jar;;.\\jpywork;;E:
\\Program Files\\jythonRelease_2_2alpha1\\Tools\\jythonc;E:\\Program Files\\jyth
onRelease_2_2alpha1\\.;E:\\Program Files\\jythonRelease_2_2alpha1\\Lib;E:\\Progr
am Files\\jythonRelease_2_2alpha1', '.\\jpywork\\StringParser.java']
1  java.io.IOException: Cannot run program ";e:\Program Files\Java\jdk1.7.0_04\b
in\javac": CreateProcess error=2, The system cannot find the file specified

Consider using the -C/--compiler command line switch, or setting
the property python.jythonc.compiler in the registry.
ERROR DURING JAVA COMPILATION... EXITING

我知道这与 jythonc 找不到 javac 有关,但即使是类似的东西也会jythonc -C <my jdk path> foo.py给出相同的错误。我试过谷歌搜索,但没有什么清楚地写在设置编译器路径的地方。有任何想法吗?提前致谢!

4

0 回答 0