another problem. I have already placed my Jython.jar into what my computer recognizes as the Java CLASSPATH. This done, importing anything from Org.Python is not found by the compiler! Do I need to have the Jar in the same folder as the java code as well?
Thanks to anyone who replies 😀
———————————————UPDATE——————————————-
Still not working
within CLASSPATH I have Jython.jar.
within the location of my code and batch-compiler, I have the jar.
and I have typed “import org.python.util.*;” and nothing else are the beginning of my code
and it is still giving me errors :C
Make sure that you spelled the package correctly! In java the convention is to have packages with small letters:
org.pythonIf you are using command line to compile and run your code then you will need to add the folder containing the given
Jyhton.jarfile.For more help take a look at: http://docs.oracle.com/javase/1.3/docs/tooldocs/win32/classpath.html
If you are using an IDE:
Eclipse:
Got the
Properties/Java Build Path/Libraries. From there you can add external Jars.Netbeans:
Go to the projects
Properties/Libraries/Compiletab and add all the JARs that you want to be included.