public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/24410]  New: GIJ does not accept "/"-syntax for main class on the command line
@ 2005-10-17 18:35 thebohemian at gmx dot net
  2005-10-17 18:47 ` [Bug java/24410] " thebohemian at gmx dot net
  2005-10-17 20:50 ` [Bug libgcj/24410] " pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: thebohemian at gmx dot net @ 2005-10-17 18:35 UTC (permalink / raw)
  To: java-prs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug java/24410] GIJ does not accept "/"-syntax for main class on the command line
  2005-10-17 18:35 [Bug java/24410] New: GIJ does not accept "/"-syntax for main class on the command line thebohemian at gmx dot net
@ 2005-10-17 18:47 ` thebohemian at gmx dot net
  2005-10-17 20:50 ` [Bug libgcj/24410] " pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: thebohemian at gmx dot net @ 2005-10-17 18:47 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from thebohemian at gmx dot net  2005-10-17 18:47 -------
Possible fix: Take the class name as it is given on the command line and
replace all "/" with "." .


-- 


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libgcj/24410] GIJ does not accept "/"-syntax for main class on the command line
  2005-10-17 18:35 [Bug java/24410] New: GIJ does not accept "/"-syntax for main class on the command line thebohemian at gmx dot net
  2005-10-17 18:47 ` [Bug java/24410] " thebohemian at gmx dot net
@ 2005-10-17 20:50 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-17 20:50 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from pinskia at gcc dot gnu dot org  2005-10-17 20:50 -------
Confirmed, gij problems are considered libgcj problems (the library issues) and
not front-end issues (which is what java component is for).


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-10-17 20:50:24
               date|                            |


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-10-17 20:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-17 18:35 [Bug java/24410] New: GIJ does not accept "/"-syntax for main class on the command line thebohemian at gmx dot net
2005-10-17 18:47 ` [Bug java/24410] " thebohemian at gmx dot net
2005-10-17 20:50 ` [Bug libgcj/24410] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).