Samuele Pedroni <pedroni@...>:
> > sorry, my fault, the current directory is not added per default
> > by the sun and derived JVMs at least, so the above should
> > be
> > dinu% java -cp jython-2.1/jython.jar:. PyInterpTest
> > or
> > dinu% java -cp jython-2.1:. PyInterpTest
> > if you have the compiled jython runtime classes not in a jar
> > but down the org hierarchy insinde jython-2.1 ...
> [related to Finn post] which you shouldn't that means
> it is better to compile things using
> javac -classpath jython-2.1/jython.jar ...
> so you avoid to generate a spurious copy of the
> jython runtime classes down the sources hierarchy,
> you should consider that javac compiles
> all the *.java files found where in the hierarchy a needed
> *.class file is absent or older than the java source.
Thanks, it works fine now! I didn't know I needed the current direc-
tory on the classpath, too. Your answer also reveiled to me that the
org.python.* hierarchy is itself included in the jython.jar file.
I first tried with both, thinking the jar file contained only some
runtime stuff, but not the "library". Glad to see this is not the case.