Re: gcj: error trying to exec 'ecj1': execvp

Andrew Haley <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.