Hi Giovanni,  

Thanks for the quick turnaround.

On Sun, 15 Jun 2008, Giovanni Mascellani wrote:
> > $ JAVACMD=/usr/bin/jamvm josm
> > Using /usr/bin/jamvm to execute josm.
> > Couldn't find Main-Class attribute in /usr/share/josm/josm.jar Manifest.
>
> Quite strange! What is the content of Main-Class when you do these
> commands?
>
> $ jar xf /usr/share/josm/josm.jar META-INF/MANIFEST.MF
> $ cat META-INF/MANIFEST.MF

[EMAIL PROTECTED]:~$ jar xf /usr/share/josm/josm.jar META-INF/MANIFEST.MF
[EMAIL PROTECTED]:~$ cat META-INF/MANIFEST.MF
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 4.3.1 20080420 (prerelease) (Free Software Foundation, Inc
 .)
Main-class: org.openstreetmap.josm.gui.MainApplication
Class-Path: /usr/share/java/gettext-commons.jar /usr/share/java/metada
 ta-extractor.jar

> Can you find org/openstreetmap/josm/gui/MainApplication.class (the
> correct Main-Class) or org/openstreetmap/josm/Main.class (the class not
> found by gij-4.1) in josm.jar?
>
> $ jar tf /usr/share/josm/josm.jar | grep Main

[EMAIL PROTECTED]:~$ jar tf /usr/share/josm/josm.jar | grep Main
org/openstreetmap/josm/Main$1.class
org/openstreetmap/josm/Main.class
org/openstreetmap/josm/gui/MainApplet$1.class
org/openstreetmap/josm/gui/MainApplet$MainCaller.class
org/openstreetmap/josm/gui/MainApplet$UploadPreferencesAction.class
org/openstreetmap/josm/gui/MainApplet.class
org/openstreetmap/josm/gui/MainApplication$1.class
org/openstreetmap/josm/gui/MainApplication$2.class
org/openstreetmap/josm/gui/MainApplication.class
org/openstreetmap/josm/gui/MainMenu$1.class
org/openstreetmap/josm/gui/MainMenu$2.class
org/openstreetmap/josm/gui/MainMenu.class


> > $ JAVACMD=/usr/bin/gij-4.1 josm
> > Using /usr/bin/gij-4.1 to execute josm.
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > org.openstreetmap.josm.Main at
> > java.lang.Class.initializeClass(libgcj.so.70)
> >    at java.lang.Class.initializeClass(libgcj.so.70)
> > Caused by: java.lang.ClassNotFoundException:
> > java.util.concurrent.Executor not found in
> > gnu.gcj.runtime.SystemClassLoader{urls=[file:/usr/share/josm/josm.jar],
> > parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} at
> > java.net.URLClassLoader.findClass(libgcj.so.70)
> >    at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.70)
> >    at java.lang.ClassLoader.loadClass(libgcj.so.70)
> >    at java.lang.ClassLoader.loadClass(libgcj.so.70)
> >    at java.lang.Class.initializeClass(libgcj.so.70)
> >    ...1 more
>
> The strangest thing here is that the both jamvm and gij-4.1 fail, but
> with different errors. gij-4.1 finds the Main-Class, but not another
> class in the JAR.

Whilst javmv does work on i386, I get a similar error when running with 
gij-4.1 on i386 as well:

[EMAIL PROTECTED]:~$ JAVACMD=/usr/bin/gij-4.1 josm
Using /usr/bin/gij-4.1 to execute josm.
Exception in thread "main" java.lang.NoClassDefFoundError: 
org.openstreetmap.josm.Main
   at java.lang.Class.initializeClass(libgcj.so.70)
   at java.lang.Class.initializeClass(libgcj.so.70)
Caused by: java.lang.ClassNotFoundException: java.util.concurrent.Executor not 
found in 
gnu.gcj.runtime.SystemClassLoader{urls=[file:/usr/share/josm/josm.jar], 
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.70)
   at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.70)
   at java.lang.ClassLoader.loadClass(libgcj.so.70)
   at java.lang.ClassLoader.loadClass(libgcj.so.70)
   at java.lang.Class.initializeClass(libgcj.so.70)
   ...1 more

> I think we'll need to ask for help to someone more confident with Java
> on PowerPC platforms!

Sorry, I know nothing about java, so am of little use, but am happy to provide 
whatever test results you would like.

> Thank you again, Giovanni.

Thanks,
Mark

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel

Reply via email to