#jython IRC Log

Index

IRC Log for 2015-06-22

Timestamps are in GMT/BST.

[2:47] * koo6 (~sirdancea@236.152.broadband3.iol.cz) Quit (Ping timeout: 246 seconds)
[4:26] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[5:15] * gopar (~gopar@2601:642:c001:f5b9:a6db:30ff:fea2:873) Quit (Quit: Leaving)
[6:13] * lheuer (~Adium@unaffiliated/lheuer) Quit (Read error: Connection reset by peer)
[6:16] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[7:48] * lheuer (~Adium@unaffiliated/lheuer) Quit (Read error: Connection reset by peer)
[7:50] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[8:15] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Excess Flood)
[8:16] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[10:43] * 21WACH2MB (eaaltone@kapsi.fi) Quit (*.net *.split)
[10:53] * koo6 (~sirdancea@236.152.broadband3.iol.cz) has joined #jython
[11:03] * lheuer (~Adium@unaffiliated/lheuer) Quit (Ping timeout: 264 seconds)
[13:28] * koo6 (~sirdancea@236.152.broadband3.iol.cz) Quit (Quit: Ragequit)
[13:28] * koo6 (~sirdancea@236.152.broadband3.iol.cz) has joined #jython
[13:36] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[13:38] * xemdetia (xemdetia@nat/ibm/x-dzofnxxmpnyvpsqr) has joined #jython
[13:49] * lheuer (~Adium@unaffiliated/lheuer) Quit (Quit: Leaving.)
[14:04] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) has joined #jython
[15:48] * ebarrett_ is now known as ebarrett
[16:18] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) Quit (Quit: enebo)
[16:24] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) has joined #jython
[18:38] * ahmed_ (sid14086@gateway/web/irccloud.com/x-routhlgartofsscq) has joined #jython
[18:39] <ahmed_> hi guys. im trying to start off a new project and ive installed java and jython and compiled a java project im using down to a jar so i can use it in jython. however after adding it to the classpath i still cant seem to import it
[18:39] <ahmed_> any ideas?
[18:39] <agronholm> ahmed_: adding it <- what's "it" here?
[18:39] <ahmed_> the jar file ive got
[18:40] <ahmed_> CLASSPATH=/root/Exchanger/; jython -v -Dpython.path=/root/Exchanger <- im running it like that
[18:40] <ahmed_> the jar file is in /root/Exchanger
[18:40] <agronholm> that's not how you add jars to the class path
[18:40] <ahmed_> oh? i guess im confused then
[18:41] <ahmed_> how are you supposed to add them?
[18:41] <agronholm> if you want to add all jars in a directory to the class path, use CLASSPATH=/root/Exchanger/*
[18:41] <ahmed_> ahh
[18:41] <agronholm> otherwise add each jar separately
[18:42] <ahmed_> so CLASSPATH=/root/Exchanger/*; jython -v should work fine
[18:42] <ahmed_> then i should be able to do: import com.xeiam.xchange.Exchange
[18:44] <agronholm> if everything else is right
[18:44] <agronholm> just be careful, * might expand to a bunch of names in your shell
[18:45] <ahmed_> hmmm nope: ImportError: No module named xeiam
[18:45] <agronholm> check what is actually set to the value of CLASSPATH
[18:45] <ahmed_> im using this library: http://xeiam.com/xchange-example-code/ which i used maven to compile it into a jar
[18:46] <agronholm> and you checked that the import error comes from this library and not something else?
[18:47] <ahmed_> it comes from jython when i even try and import the library
[18:48] <agronholm> does this library have dependencies?
[18:48] <ahmed_> it all should be compiled into the one jar
[18:50] <ahmed_> export CLASSPATH=/root/Exchanger/*; jython Overview.py
[18:50] <ahmed_> Classpath: /usr/local/lib/jython/jython.jar:/root/Exchanger/xchange.jar
[18:50] <ahmed_> ImportError: No module named xeiam
[18:50] <ahmed_> so it is on the classpath
[18:50] <agronholm> check the contents of that jar
[18:51] <ahmed_> what should i be looking for inside of it?
[18:51] <agronholm> that the classes are where they should be
[18:51] <ahmed_> ah hm.
[18:52] <ahmed_> everythings there but theyre .java files not .class
[18:52] <agronholm> eh
[18:52] <agronholm> then you didn't compile anything
[18:53] <ahmed_> time to try again i guess
[18:53] <ahmed_> not used maven in a long time
[18:57] * VSpectrum (~VSpectrum@190.213.19.27) has joined #jython
[19:10] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 272 seconds)
[20:14] * nickmbai` is now known as nickmbailey
[21:55] * siel (~siel@unaffiliated/motley) Quit (Ping timeout: 272 seconds)
[21:56] * siel_ (~siel@unaffiliated/motley) has joined #jython
[21:57] * siel_ is now known as siel
[23:16] * xemdetia (xemdetia@nat/ibm/x-dzofnxxmpnyvpsqr) Quit (Ping timeout: 264 seconds)

Index

These logs were automatically created by JythonLogBot on irc.freenode.net using a slightly modified version of the Java IRC LogBot.