Help!

Backtrace with jar


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Java RSS
Next:  contemptuous axle  
Author Message
Jörg
External


Since: Dec 02, 2004
Posts: 67



PostPosted: Wed Jun 13, 2007 12:50 pm    Post subject: Backtrace with jar
Archived from groups: linux>debian>maint>java (more info?)

Hi,

is this a bug in java or in the application?

% java -jar Puck.jar -ec
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at jamvm.java.lang.JarLauncher.main(JarLauncher.java:49)
Caused by: java.lang.NoSuchMethodError: getenv
at logging.Log.getComputername(Log.java:209)
at logging.Log.log(Log.java:90)
at logging.Log.debug(Log.java:69)
at newdnd.FragmentImage.getThisJar(FragmentImage.java:153)
at system.GUI.<init>(GUI.java:282)
at system.GUI.getInst(GUI.java:124)
at system.GUI.main(GUI.java:161)
at java.lang.reflect.Method.invokeNative(Native Method)
...2 more

% java -version
java version "1.4.2"
JamVM version 1.4.4
Copyright (C) 2003-2006 Robert Lougher <rob RemoveThis @lougher.org.uk>

The file is available here:
http://www.uni-jena.de/img/unijena_/faculties/minet/casio/Puck/Puck_2.4.zip

With gij it crashes on another point:
% gij-4.1 -jar Puck.jar
Exception in thread "main" java.lang.NoClassDefFoundError: system.FileMenuAL
at java.lang.Class.initializeClass(libgcj.so.71)
at system.GUI.makeMenuWithShortcuts(GUI.java:424)
at system.GUI.initGUI(GUI.java:350)
at system.GUI.<init>(GUI.java:268)
at system.GUI.getInst(GUI.java:124)
at system.GUI.main(GUI.java:161)
Caused by: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.ImageFormatException not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:Puck.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.71)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.71)
at java.lang.ClassLoader.loadClass(libgcj.so.71)
at java.lang.ClassLoader.loadClass(libgcj.so.71)
at java.lang.Class.forName(libgcj.so.71)
at java.lang.Class.initializeClass(libgcj.so.71)
...5 more

% gij-4.1 --version
java version "1.5.0"
gij (GNU libgcj) version 4.1.3 20070518 (prerelease) (Debian 4.1.2-Cool

% unzip -l Puck.jar |grep system/FileMenuAL
23882 08-30-06 14:29 system/FileMenuAL.class

It's not my project. I'm only alpha tester.

Bye, Jörg.
--
Es ist außerdem ein weit verbreiteter Irrtum das USENET ‚helfen' soll.
Tatsächlich wurde USENET nachweislich zur persönlichen Belustigung
seiner Erfinder geschaffen.
Jörg Klemenz <joerg RemoveThis @gmx.net>, <b4ai4o$1u8vmt$2@ID-21915.news.dfncis.de>


--
To UNSUBSCRIBE, email to debian-java-REQUEST RemoveThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster RemoveThis @lists.debian.org
Back to top
Andrew Haley
External


Since: Nov 14, 2005
Posts: 17



PostPosted: Wed Jun 13, 2007 1:00 pm    Post subject: Re: Backtrace with jar [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jörg Sommer writes:

> is this a bug in java or in the application?

> Caused by: java.lang.NoSuchMethodError: getenv

getenv was deprecated, removed, and then re-added in Java 1.5.

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4199068

> Caused by: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.ImageFormatException not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:Puck.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}

com.sun.image.codec.jpeg.ImageFormatException is not part of the Java
API.

Andrew.

--
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903


--
To UNSUBSCRIBE, email to debian-java-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Jörg
External


Since: Dec 02, 2004
Posts: 67



PostPosted: Fri Jun 15, 2007 10:50 am    Post subject: Re: Backtrace with jar [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hallo Andrew,

Andrew Haley <aph.TakeThisOut@redhat.com> wrote:
> Jörg Sommer writes:
>
> > is this a bug in java or in the application?
>
> > Caused by: java.lang.NoSuchMethodError: getenv
>
> getenv was deprecated, removed, and then re-added in Java 1.5.
>
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4199068
>
> > Caused by: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.ImageFormatException not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:Puck.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
>
> com.sun.image.codec.jpeg.ImageFormatException is not part of the Java
> API.

Thanks for this infos.

Bye, Jörg.
--
> Definiere ‚Demokratie' …
… eine Mehrheit beweist einer Minderheit, dass Widerstand zwecklos ist.


--
To UNSUBSCRIBE, email to debian-java-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Java All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum