I thought I had done that. But apparently the server I tried it on
didn't have a classpath environment variable, just a PATH environment
variable. I had edited the PATH variable.
I hadn't tried it on my laptop. I downloaded everything and edited the
CLASSPATH variable which it already had. Probably due to playing with
Scala a few months back.
Anyway, once I added the path to the CLASSPATH variable and opened a
Jython interpreter. It loaded right away.
Thanks for helping with a simple clueless non-Java guy question.
On 10/27/2009 8:06 PM, Josh Juneau wrote:
> Please try to put the JAR file in your CLASSPATH. Once you have
> placed the file in your CLASSPATH you should be able to invoke the
> Jython interpreter and import the necessary classes.
> I'd use something such as the following if I were you:
> from com.tictactec.ta.lib import Classname # Of course replacing
> Classname with the name of the class you need
> Hope this helps.
> Josh Juneau
> juneau001@... <mailto:juneau001@...>
> Twitter ID: javajuneau
> On Tue, Oct 27, 2009 at 6:01 PM, Jimmie Houchin <jlhouchin@...
> <mailto:jlhouchin@...>> wrote:
> I am fairly clueless about Java. I have searched the mailing list, but
> this isn't an easy thing to narrow down. So I haven't discovered my
> answer, or have simply overlooked.
> I have a 3rd party jar file which contains libraries that I need to
> import into my Jython application.
> This is the ta-lib-0.4.0.jar from http://www.ta-lib.org .
> I have downloaded the file. I don't know where to put the file in my
> directories in order for Jython to successfully import.
> I naively put it into a directory and started the Jython
> interpreter in
> that directory.
> import os
> sees the file just fine.
> import com.tictactec.ta.lib
> fails with a "no module named tictactec"
> from com.tictactec import ta.lib
> SyntaxError: mismatched input '.' expecting NEWLINE
> Details: Jython 2.5.1, Vista, Java 1.6.0_14-b08
> Any help in getting this library available greatly appreciated.
> Where to put the file, any Windows classpath editing. etc.
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year.
> Jumpstart your
> developing skills, take BlackBerry mobile applications to market
> and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> Jython-users mailing list