gcj: error trying to exec 'ecj1': execvp

Andrew Haley aph@redhat.com
Wed Apr 22 10:43:00 GMT 2009


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

AltStyle によって変換されたページ (->オリジナル) /