From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2936 invoked by alias); 22 Apr 2009 10:53:24 -0000 Received: (qmail 2915 invoked by uid 22791); 22 Apr 2009 10:53:22 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_43,J_CHICKENPOX_44,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-fx0-f213.google.com (HELO mail-fx0-f213.google.com) (209.85.220.213) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 22 Apr 2009 10:53:18 +0000 Received: by fxm9 with SMTP id 9so3010789fxm.8 for ; Wed, 22 Apr 2009 03:53:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.218.19 with SMTP id v19mr4465931muq.46.1240397595074; Wed, 22 Apr 2009 03:53:15 -0700 (PDT) In-Reply-To: <49EEF4B4.1060402@redhat.com> References: <49EC70B7.9070301@redhat.com> <49EC7AF5.4000702@redhat.com> <49EEEB60.3060700@redhat.com> <49EEF4B4.1060402@redhat.com> Date: Wed, 22 Apr 2009 10:53:00 -0000 Message-ID: Subject: Re: gcj: error trying to exec 'ecj1': execvp From: David Michel To: Andrew Haley Cc: java@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2009-04/txt/msg00035.txt.bz2 just compiled it with $ /local/gcc-4_4-branch/install/bin/gcj -O0 -g0 "--classpath=3D./:" Tool.java -o Tool.out --main=3DTool and got: $ ./Tool.out $ $ so, 2 empty lines.... I would have expected something like gnu.java.awt.peer.gtk.GtkToolkit , which is what happens when I use gcj 4.2 already installed David. 2009/4/22 Andrew Haley : > David Michel wrote: >> But I did put use the options: >> $ ./configure --enable-languages=3Djava >> --prefix=3D/local/gcc-4_4-branch/install --enable-java-home >> --enable-java-awt=3Dgtk > > Oh. > >> although I didn't put --with-x >> >> Is that the problem ? > > I don't think so. > But the odd line is this: > > Caused by: java.lang.ClassNotFoundException: > > There should be a class name at the end of that line. > > Try this: > > import gnu.classpath.SystemProperties; > public class Tool > { > =A0private static String default_toolkit_name > =A0 =A0=3D gnu.classpath.Configuration.default_awt_peer_toolkit; > > =A0public static void main(String[] args) > =A0{ > =A0 =A0System.out.println(default_toolkit_name); > =A0 =A0System.out.println(SystemProperties.getProperty > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("awt.toolkit", > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0default_toolkit_name)); > =A0} > } > > Andrew. >