This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/24410] New: GIJ does not accept "/"-syntax for main class on the command line
- From: "thebohemian at gmx dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 17 Oct 2005 18:35:56 -0000
- Subject: [Bug java/24410] New: GIJ does not accept "/"-syntax for main class on the command line
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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