public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "jlpoole at pon dot net" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug java/42409]  New: org.eclipse.jdt.internal.compiler.batch.GCCMain not found
Date: Thu, 17 Dec 2009 17:54:00 -0000	[thread overview]
Message-ID: <bug-42409-18569@http.gcc.gnu.org/bugzilla/> (raw)

(This Bug follows 4205 which is not marked FIXED)

On armv5tel-unknown-linux-gnueabi I compiled gcj plus .../contrib/download_ecj.

Last Changed Rev: 155206                                                        
Last Changed Date: 2009-12-13 21:06:50 -0800 (Sun, 13 Dec 2009)           

installed with "DESTDIR=/usr/local/gcj"
set LD_LIBRARY_PATH=/usr/local/gcj/usr/local/lib

plug bin # ./gcj -v -I /usr/local/gcj/usr/local/share/java/libgcj-4.5.0.jar
/var
/work/gcj/HelloWorld.java        

produces:
...
Target: armv5tel-unknown-linux-gnueabi                                          
Configured with: ../trunk/configure --enable-languages=java : (reconfigured)
../
trunk/configure --enable-languages=java                                         
Thread model: posix                                                             
gcc version 4.5.0 20091214 (experimental) (GCC)                                 
COLLECT_GCC_OPTIONS='-fsaw-java-file' '-v'
'-fbootclasspath=/usr/local/gcj/usr/l
ocal/share/java/libgcj-4.5.0.jar:./:/usr/local/share/java/libgcj-4.5.0.jar'
'-g1
' '-shared-libgcc'                                                              

/usr/local/gcj/usr/local/bin/../libexec/gcc/armv5tel-unknown-linux-gnueabi/4.5.
0/ecj1 /var/work/gcj/HelloWorld.java -g1
-fbootclasspath=/usr/local/gcj/usr/loca
l/share/java/libgcj-4.5.0.jar:./:/usr/local/share/java/libgcj-4.5.0.jar -g1
-fso
urce=1.5 -ftarget=1.5 -fzip-dependency /tmp/ccEAvqtm.zip -fzip-target
/tmp/ccgLw
7My.jar                                                                         
Exception in thread "main" java.lang.NoClassDefFoundError:
org.eclipse.jdt.inter
nal.compiler.batch.GCCMain                                                      
   at gnu.java.lang.MainThread.run(MainThread.java:100)                         
Caused by: java.lang.ClassNotFoundException:
org.eclipse.jdt.internal.compiler.b
atch.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)                          
plug bin # 

Here's the test code:

    plug bin # cat /var/work/gcj/HelloWorld.java                                
    class HelloWorld {                                                          

        public static void main(String args[]){                                 

            System.out.println("Hello World!");                                 
        }                                                                       
    }                                                                           

    plug bin #     

I really feel badly having to come to you with my struggling; however, I have a
good deal of experience with Perl and some Java and find myself gated by what
members of this team think trivial.  Please keep in mind when someone comes to
try installing the gcc compiler and getting it to run, they do not have the
experience and day-to-day exposure you have, so something simple as an
incorrect path can be confounding. 

I'm not sure which class is missing (or not pointed to with the class path)
from the above output.


-- 
           Summary: org.eclipse.jdt.internal.compiler.batch.GCCMain not
                    found
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jlpoole at pon dot net
 GCC build triplet: armv5tel-unknown-linux-gnueabi
  GCC host triplet: armv5tel-unknown-linux-gnueabi
GCC target triplet: armv5tel-unknown-linux-gnueabi


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


             reply	other threads:[~2009-12-17 17:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-17 17:54 jlpoole at pon dot net [this message]
2009-12-24 16:23 ` [Bug java/42409] " jlpoole at pon dot net
2010-01-03 18:21 ` jlpoole at pon dot net
2010-01-03 18:23 ` jlpoole at pon dot net
2010-01-03 18:30 ` jlpoole at pon dot net
2010-01-03 18:43 ` jlpoole at pon dot net
2010-01-03 18:55 ` jakub at gcc dot gnu dot org
2010-01-04  1:51 ` jlpoole at pon dot net
2010-01-04 11:32 ` ramana at gcc dot gnu dot org
2010-01-04 14:20 ` jakub at gcc dot gnu dot org
2010-01-05  2:31 ` jlpoole at pon dot net
2010-01-05  2:34 ` jlpoole at pon dot net
2010-01-07 14:26 ` jlpoole at pon dot net
2010-03-20  0:10 ` ramana at gcc dot gnu dot 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-42409-18569@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: link
Be 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).