While the JDK, Kaffe etc allow running a Java app like this:

executable foo/bar/baz/MainClass

instead of

executable foo.bar.baz.MainClass

GIJ does only accept the second variant.

Eg for:

 gij de/bitecode/test/lazy/Bogus

GIJ outputs:

Exception in thread "main" java.lang.NoClassDefFoundError:
de/bitecode/test/lazy/Bogus
   at gnu.java.lang.MainThread.run (MainThread.java:99)
Caused by: java.lang.ClassNotFoundException: de/bitecode/test/lazy/Bogus
   at java.lang.Class.forName (natClass.cc:84)
   at gnu.java.lang.MainThread.run (MainThread.java:95)


-- 
           Summary: GIJ does not accept "/"-syntax for main class on the
                    command line
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: thebohemian at gmx dot net


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24410

Reply via email to