public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/50007] New: org.eclipse.jdt.internal.compiler.batch.GCCMain not found
@ 2011-08-06 21:12 vedamaker at netscape dot net
  2011-08-08  9:53 ` [Bug java/50007] " rguenth at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: vedamaker at netscape dot net @ 2011-08-06 21:12 UTC (permalink / raw)
  To: java-prs

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

           Summary: org.eclipse.jdt.internal.compiler.batch.GCCMain not
                    found
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: java
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: vedamaker@netscape.net


Not able to compile simple Java source file to bytecode.

* Sample Java source file (HelloWorld.java):


public class HelloWorld {

    public int print()
    {
        System.out.println("Hello world!");     
    }

}

* When I run "gcj-4.6 -C -c HelloWorld.java" I get the following results:


Exception in thread "main" java.lang.NoClassDefFoundError:
org.eclipse.jdt.internal.compiler.batch.GCCMain
   at gnu.java.lang.MainThread.run(MainThread.java:100)
Caused by: java.lang.ClassNotFoundException:
org.eclipse.jdt.internal.compiler.batch.GCCMain not found in
gnu.gcj.runtime.SystemClassLoader{urls=[],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(URLClassLoader.java:531)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:452)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:387)
   at gnu.java.lang.MainThread.run(MainThread.java:96)


My understanding is that "main" only needs to be defined when linking which is
not what I am trying to do.  I just want to compile Java source file to a
.class file.


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

* [Bug java/50007] org.eclipse.jdt.internal.compiler.batch.GCCMain not found
  2011-08-06 21:12 [Bug java/50007] New: org.eclipse.jdt.internal.compiler.batch.GCCMain not found vedamaker at netscape dot net
@ 2011-08-08  9:53 ` rguenth at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-08-08  9:53 UTC (permalink / raw)
  To: java-prs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-08-08 09:52:17 UTC ---
You need to put ecj.jar somewhere.  Please read GCC install instructions.


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

end of thread, other threads:[~2011-08-08  9:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-06 21:12 [Bug java/50007] New: org.eclipse.jdt.internal.compiler.batch.GCCMain not found vedamaker at netscape dot net
2011-08-08  9:53 ` [Bug java/50007] " rguenth at gcc dot gnu.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).