From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28789 invoked by alias); 21 Aug 2005 11:30:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 28654 invoked by uid 48); 21 Aug 2005 11:30:06 -0000 Date: Sun, 21 Aug 2005 14:53:00 -0000 Message-ID: <20050821113006.28653.qmail@sourceware.org> From: "sbodomerle at gmail dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050517214340.21635.sbodomerle@gmail.com> References: <20050517214340.21635.sbodomerle@gmail.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug swing/21635] GLib-GObject-WARNING with jython X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg02402.txt.bz2 List-Id: ------- 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 "", 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