I'm trying to make a JAR-File from my classes. That's fine so far but
when I try to start the class with the main-method I get the following
message:
Exception in thread "main" java.lang.ClassFormatError: --------/-------
:-)
(Bad magic number)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Can anyone tell what this means and/or how to avoid it?
--
-----------------------------------------------------------
Thorsten Krebs mailto:tho...@informatik.uni-bremen.de
Uni Bremen
FB3 Informatik http://www.informatik.uni-bremen.de/~thoddy
http://developer.java.sun.com/developer/bugParade/bugs/4151665.ht
ml
Bug report not found
Thnx! ;-)
Sorry!
>Bad magic number
see error messages in the Java glossary.
--
Answers to the four most frequent questions:
Please consult the Java glossary:
1) for conversion problems, see "conversion". .
2) for I/O problems, see the "File I/O Amanuensis" and "File".
3) if you want to create a *.exe, see "native compiler".
4) if you are new to Java, see "getting started"
For the JAVA GLOSSARY see http://mindprod.com/jgloss.html
or http://209.153.246.39/jgloss.html
--
Roedy Green, Canadian Mind Products
Custom computer programming since 1963