Re: gcj: error trying to exec 'ecj1': execvp
David Michel <[email protected]>
| Newsgroups | gmane.comp.gcc.java.devel |
|---|---|
| Message-ID | <[email protected]> |
just compiled it with $ /local/gcc-4_4-branch/install/bin/gcj -O0 -g0 "--classpath=./:" Tool.java -o Tool.out --main=Tool 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 <[email protected]>: > David Michel wrote: >> But I did put use the options: >> $ ./configure --enable-languages=java >> --prefix=/local/gcc-4_4-branch/install --enable-java-home >> --enable-java-awt=gtk > > 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 > { > private static String default_toolkit_name > = gnu.classpath.Configuration.default_awt_peer_toolkit; > > public static void main(String[] args) > { > System.out.println(default_toolkit_name); > System.out.println(SystemProperties.getProperty > ("awt.toolkit", > default_toolkit_name)); > } > } > > Andrew. >