gcj: error trying to exec 'ecj1': execvp

David Michel dmichel76@googlemail.com
Wed Apr 22 10:53:00 GMT 2009


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 <aph@redhat.com>:
> 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.
>



More information about the Java mailing list