Issue1400245

classification
Title: execute .jar in jython
Type: rfe Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: elsa_petit, kzuberi
Priority: normal Keywords:

Created on 2006-01-09.10:20:51 by elsa_petit, last changed 2006-01-11.23:07:39 by kzuberi.

Messages
msg3020 (view) Author: Laure (elsa_petit) Date: 2006-01-09.10:20:51
I am new to Jython and Java. I would like to execute 
a .jar file in jython once I have started jython in 
the shell cygwin, what is the command, and where 
should I have my .jar file for Jython to find it?
msg3021 (view) Author: Khalid Zuberi (kzuberi) Date: 2006-01-11.23:07:39
Logged In: YES 
user_id=18288


For general help on using jython, please ask on the
jython-users mailing list:

  http://lists.sourceforge.net/lists/listinfo/jython-users

For this question, if i understand correctly, you want to
access some classes in a given jar file from within jython.
to do this, you should add the jar file to your CLASSPATH
environment variable before starting the jython interpreter.
If you are doing this from cygwin, you'll also have to be
careful in the way you specify the classpath, ie escaping
backslashes as in 'CLASSPATH=c:\\tar.jar' etc. After that
you can import the class within jython using its fully
qualified name .

- kz
History
Date User Action Args
2006-01-09 10:20:51elsa_petitcreate