Re: Backtrace with jar

2007-06-15 Thread Jörg Sommer
Hallo Andrew,

Andrew Haley <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Backtrace with jar

2007-06-13 Thread Andrew Haley
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 [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Backtrace with jar

2007-06-13 Thread Jörg Sommer
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.(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 <[EMAIL PROTECTED]>

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.(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-8)

% 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 <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]