public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
From: "vedamaker at netscape dot net" <gcc-bugzilla@gcc.gnu.org> To: java-prs@gcc.gnu.org Subject: [Bug java/50007] New: org.eclipse.jdt.internal.compiler.batch.GCCMain not found Date: Sat, 06 Aug 2011 21:12:00 -0000 [thread overview] Message-ID: <bug-50007-8172@http.gcc.gnu.org/bugzilla/> (raw) 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.
next reply other threads:[~2011-08-06 21:12 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-08-06 21:12 vedamaker at netscape dot net [this message] 2011-08-08 9:53 ` [Bug java/50007] " rguenth at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-50007-8172@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=java-prs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).