We need a new class gnu.gcj.runtime.Main that handles the same set of non-jvm options handled by the java command. Then gij.cc could use the invocation API to parse out the jvm options, create a jvm, set up the java argument list and call gnu.gcj.runtime.Main.main. This would allow us to easily create a proper "java" command, using the invocation API. Also, it would eliminate the need for libgij. Instead, one could do:
gcj --main=gnu.gcj.runtime.Main -D... -- Summary: gij should be implemented in Java Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P2 Component: libgcj AssignedTo: fitzsim at redhat dot com ReportedBy: fitzsim at redhat dot com CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20090