Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PHP_applet not loading

 
Rakesh Kumar
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Dear friends,

I am developing one php application. In this application i am loading applets as below



<html><body>

<applet name = "eventApp" archive="./Applet/event/event.jar" code="EventMonitoring.class" width="500" height="440">
</applet>

</body>
</html>


But th eproblem is applet not loading and sjowing t eerrro like "classformatexception Incompatible Magic value is in class file".

This code come sin .php file and we installed the php in this httpd apache server.

Please share your views regarding this and help me in solving the issue.


Thanks in advance
Rakesh
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds as if the jar file might be damaged. Is it byte-for-byte identical to your working local copy? Maybe you transferred it via ASCII FTP instead of binary FTP?

Also, remove the "./" from the archive attribute.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic