Updates:
        Status: Available
        Labels: -Pri-2 -Area-Misc Pri-1 Area-WebKit Area-Plugins Java

Comment #3 on issue 8936 by [email protected]: REGRESSION: JAVA applet gives  
error
http://code.google.com/p/chromium/issues/detail?id=8936

The applet is loaded by this HTML:
<APPLET CODE="SpeedTest.class" ARCHIVE="applet/applet.jar" width="400"
height="160"></APPLET>

The W3 spec for the applet tag is at http://www.w3.org/TR/1999/REC-html401-
19991224/struct/objects.html#h-13.4

According to this,  
http://forums.sun.com/thread.jspa?threadID=705179&tstart=120 this
error is due to the jar file appearing to not start with #CAFEBABE.   
Looking at
myself I see the first four bytes of the class SpeedTest.class are correct.

C:\tmp>curl -O http://assistenza.libero.it/angolo_pc/applet/applet.jar
   % Total    % Received % Xferd  Average Speed   Time    Time     Time   
Current
                                  Dload  Upload   Total   Spent    Left   
Speed
100  9850  100  9850    0     0   9714      0  0:00:01  0:00:01 --:--:--  
26439

C:\tmp>java -jar applet.jar SpeedTest
Failed to load Main-Class manifest attribute from applet.jar

I can see that this somehow works in IE and FF so I am at a loss to explain  
the
problem.

Looking at http://www.java.com/en/download/help/testvm.xml everything  
appears to be
fine.  However, some of the demo applets at  
http://java.sun.com/applets/jdk/1.4/index.html fail.  That seems odd.  Their
formatting of the applet tag varies which may be a clue.

Specifically, the test  
http://java.sun.com/applets/jdk/1.4/demo/applets/ArcTest/example1.html  
works on
Safari 4 for Mac, in Firefox on Windows and Mac but not in Chromium for  
Windows.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to