Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-20-2008, 03:15 PM
Senior Member
 
Join Date: Dec 2007
Location: Spain
Posts: 199
willemjav is on a distinguished road
Incompatible magic value 1008821359
Dear Java friends
The image slideshow applet works on a web browser (hardwired was wright one should use URL for file download for applets) but once uploaded at the server I get the following message:

java.lang.ClassFormatError: Incompatible magic value 1008821359 in class file Imgslides
at java.lang.ClassLoadeethod)
at java.lang.ClassLoader.defineClass(ClassLoader.java :620)
at java.security.SecureClassLoader.defineClass(Ser.de fineClass1(Native McureClassLoader.java:124)
at sun.applet.AppletClassLoader.findClass(AppletClass Loader.java:163)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
at sun.applet.AppletClassLoader.loadClass(AppletClass Loader.java:119)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 51)
at sun.applet.AppletClassLoader.loadCode(AppletClassL oader.java:591)
at sun.applet.AppletPanel.createApplet(AppletPanel.ja va:723)
at sun.plugin.AppletViewer.createApplet(AppletViewer. java:1863)
at sun.applet.AppletPanel.runLoader(AppletPanel.java: 652)
at sun.applet.AppletPanel.run(AppletPanel.java:326)
at java.lang.Thread.run(Thread.java:613)

The applet consists of one single file called Imgslides.class and the netbeans 5.5.1 ide generates four more according some inner classes (called Imgslides$1.class, Imgslides$EventHandler.class, Imgslides$ImageDisplay.class, Imgslides$Img.class). The applet downloads stuff from a folder (called Imagestore) that sits on
the base folder of my web page. The htm tag of the applet is the following:
<applet align="left" code="Imgslides.class" width="350" height="390"></applet> (I uploaded all mentioned classes)
(All this works fine when viewing at several of my macbook web browsers) What is missing here???

saludos willemjav
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-21-2008, 06:00 AM
roots's Avatar
Moderator
 
Join Date: Jan 2008
Location: Dallas
Posts: 258
roots is on a distinguished road
which java version are you using ?
__________________
dont worry newbie, we got you covered.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 03-21-2008, 10:41 AM
Senior Member
 
Join Date: Dec 2007
Location: Spain
Posts: 199
willemjav is on a distinguished road
I do not know what
JVM runs on the server machine that
generates the java.lang.ClassFormatError: Incompatible magic value 1008821359 in class file Imgslides
on my machine I found the following:
java 1.5.0_13 / netbeans 5.5.1
OS X (macbook) 10.4.11
Java 1.3.1 Plugin Settings
Java 1.4.2 Plugin Settings
J2SE 5.0
Java SE 6
Java SE 6 (for J2SE 5.0)
Input Method Hotkey

saludos willemjav
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
'Incompatible operand' fault fatnic388 New To Java 3 12-01-2007 08:05 PM
problem with scanner class:incompatible types fred New To Java 1 07-20-2007 08:02 AM
Error: incompatible types, found: int required: boolean silvia New To Java 1 07-19-2007 08:33 PM


All times are GMT +3. The time now is 12:33 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org