This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug swing/21635] GLib-GObject-WARNING with jython
- From: "sbodomerle at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 21 Aug 2005 11:30:06 -0000
- Subject: [Bug swing/21635] GLib-GObject-WARNING with jython
- References: <20050517214340.21635.sbodomerle@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From sbodomerle at gmail dot com 2005-08-21 11:30 -------
(In reply to comment #1)
> I tried to run this under JamVM+Classpath:
>
> $ jamvm -Dpython.home="/home/fitzsim/jython-2.1" -classpath
> "/home/fitzsim/jython-2.1/jython.jar" "org.python.util.jython"
> Jython 2.1 on java1.4.2 (JIT: )
> >>> import javax.swing as swing
> Traceback (innermost last):
> File "<console>", line 1, in ?
> ImportError: no module named javax
> >>>
>
> Any idea what I'm missing?
>
Seems that jython cant make its cache directory - try adding something like
this:
-Dpython.cachedir="/tmp"
Seems that this is not enough on my ubuntu machine and i have to add rt.jar to
the classpath. I managed to fire up jamvm with the following:
jamvm -Dpython.cachedir="/tmp" -Dpython.home="/usr/lib/python2.1" -classpath
"/usr/share/java/jython.jar:/usr/lib/jvm/java-gcj/jre/lib/rt.jar"
"org.python.util.jython"
Jython 2.1 on java1.4.2 (JIT: )
>>> import javax.swing
>>>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21635