Dear all,
in our company we have special java packages for our inhouse applications.
The following is an extract from an inhouse cookbook to use some of
these packages in Java Programs:
package org.ara.[your name];
import org.ara.araque.preparation.*;
public class FirstExample extends AbstractUserPreparation
{
public void go()
{
sendCommand("[command 1]");
sendCommand("[command 2]");
}
}
I wanted to use these classes in Jython also, therefore I entered various
import statement
in the jython shell. These are the results
>>> import org.ara.araque
Traceback (innermost last):
File "<console>", line 1, in ?
ImportError: No module named ara
>>> import org
>>> import org.ara
Traceback (innermost last):
File "<console>", line 1, in ?
ImportError: No module named ara
>>> import org.ara.araque.preparation.*
Traceback (innermost last):
(no code object) at line 0
File "<console>", line 1
import org.ara.araque.preparation.*
^SyntaxError: invalid syntax
>>> import org.ara.araque.preparation
Traceback (innermost last):
File "<console>", line 1, in ?
ImportError: No module named ara
>>>
... and so on.
I can -however- import other classes normally,e.g. import java or import
javax.swing
is accepted without problems.
Probably I have to pass some infomation to Jython where to look for these
packages, but how??
There seem to be hundreds of paths, classpaths ...
Remark: I am a Jython novice ;-)
Maybe it is important that I use Jedit with the Jython Plugin as IDE; the
Plugin is my interactive Jython shell.
Unfortunately, this makes the situation even more complicated for me.
Any advice for a desparate beginner?
Thank you
Markus
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
|