Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Appletviewer doesn't open the embedded applet from browser.

802421Oct 1 2010 — edited Oct 2 2010
Hi folks,

I am having the difficulties to launch the embedded applet in the browser (both IE and firefox) by appletviewer.exe (from sdk6).
Here is the stacks I have tried on the cmd line on the windows machines (xp sp3 and w2k8 sp2) and please note that the url has no .htm/.html extension:

appletviewer.exe -debug http://%targeting_address%
Initializing jdb ...
run
run sun.applet.Main http://%targeting_address%
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
>
VM Started:
The application exited

appletviewer just simply exit out without any errors.

Here is the dump from JavaConsole and does show that the embeded applet is up and alive at the running instance of browser:
"thread applet-xx/yy/zz/someaction.class-24" prio=4 tid=0x06c62c00 nid=0x1650 in Object.wait() [0x06e1f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:485)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
- locked <0x2391eda0> (a java.lang.Object)
at java.lang.Thread.run(Unknown Source)


I also tried to include the class path and jar path inito CLASSPATH param in the environment but no help.

I try the other free published samples java applet in browser from the internet seach and they are all working with appletviewer. However, I do notice that the delta between theirs and mine, which is the applet code path.
Here is theirs, for instance:
<applet code="blah.class".....></applet>

mine:
<applet code="xx/yy/zz/someaction.class".....></applet>

If the issue is the path, I don't know the reason why appletviewer can't find the class, even though I have set the path in the CLASSPATH.

I am stucked now and please help!!!

Edited by: user5483109 on Oct 1, 2010 9:32 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 30 2010
Added on Oct 1 2010
5 comments
690 views