Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
7.9k views
by (440 points)
Hi!

I just bought the licensed version, and I am now trying to implement it in my system.
I have previously built some code around the trial version (some previous version probably), but now I am playing with the 4.0.1 version.

The error I get is during init of the IntegralFTP.jar, and the callback OnInitialize do not get called. This is what the Java Console says:

java.lang.ClassFormatError: Incompatible magic value 1008813135 in class file com/enterprisedt/net/ftp/applet/FTPApplet
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Undantag: java.lang.ClassFormatError: Incompatible magic value 1008813135 in class file com/enterprisedt/net/ftp/applet/FTPApplet

Do you have any idea what could lay behind?


Regards,
Matts

1 Answer

0 votes
by (162k points)
Your Java class file is corrupted. The magic value (first 4 bytes) for a Java class file should be 0xCA 0xFE 0xBA 0xBE.

You aren't getting these, and if I convert yours to ASCII, it gives me "<!DO"

This means that an XML document is being loaded instead of a class file somehow.

Try clearing out your temporary files via Java Control Panel -> General -> Temporary Internet Files -> Settings -> Delete Files.

Also ensure you don't have two versions of Java installed, and that the jar file is actually being found.

regards

Bruce Blackshaw
EnterpriseDT

Categories

...