From: habenicht <hab...@ac...> - 2001-08-22 14:47:59
|
hi @ll, i have installed jython-2.1a3 and console works fine, got some problems = with the .\jython\Demo\javaclasses, i cant get a .java file here my code: D:\jython\Demo\javaclasses>jythonc --package pygraph Graph.py processing Graph D:\jython\Demo\javaclasses>javac pygraph/PythonGraph.java pygraph/PythonGraph.java:10: cannot resolve symbol symbol : class Graph location: class pygraph.PythonGraph Graph graph; ^ pygraph/PythonGraph.java:16: cannot resolve symbol symbol : class Graph location: class pygraph.PythonGraph graph =3D new Graph(expr); ^ 2 errors D:\jython\Demo\javaclasses> could someone tell me whats wrong????? PLLLZZZZZZ!! cheers and regards andy |
From: Robert W. B. <rb...@di...> - 2001-08-22 16:45:44
|
Hello Andy, On Wed, 22 Aug 2001, habenicht wrote: > hi @ll, > i have installed jython-2.1a3 and console works fine, got some problems > with the .\jython\Demo\javaclasses, i cant get a .java file > here my code: > D:\jython\Demo\javaclasses>jythonc --package pygraph Graph.py > processing Graph This looks promising so far, but did the rest of the jythonc process complete without error? If it did you should find the following files in .\jython\Demo\javaclasses\pygraph: Graph.class Graph$_PyInner.class If these were not created, something failed in the jythonc step. Check the jythonc output to look for clues. If all is well at this point- see below. > D:\jython\Demo\javaclasses>javac pygraph/PythonGraph.java > pygraph/PythonGraph.java:10: cannot resolve symbol > symbol : class Graph > location: class pygraph.PythonGraph > Graph graph; > ^ > pygraph/PythonGraph.java:16: cannot resolve symbol > symbol : class Graph > location: class pygraph.PythonGraph > graph = new Graph(expr); > ^ > 2 errors > > D:\jython\Demo\javaclasses> The CWD and the jython.jar file should be in the classpath. Assuming all classes exist as they should in the pygraph\PythonGraph directory, running "javac -classpath .;\path\to\jython.jar" from within the .\jython\Demo\javaclasses directory should work. -robert |