Applet Works in IDE not command prompt

P

phantom

Hi all,

I have an applet that writes to a file (on the server side itself),
when i run this applet class thru an IDE (IntelliJ) it picks up all
the policy stuff for me and runs the applet perfectly fine. However
when I execute the same command (as that is displayed by the IDE) from
the command prompt it gives me an error Main class not found Program
will exit.

Heres the command that IntelliJ uses when running the applet

C:\j2sdk1.4.2\bin\javaw.exe
-Djava.security.policy=C:/IntelliJ-IDEA-3.0.4/bin/appletviewer.policy
-classpath C:\j2sdk1.4.2\lib\tools.jar;C:\mydir;C:\j2sdk1.4.2\jre\lib\charsets.jar;C:\j2sdk1.4.2\jre\lib\jce.jar;C:\j2sdk1.4.2\jre\lib\jsse.jar;C:\j2sdk1.4.2\jre\lib\plugin.jar;C:\j2sdk1.4.2\jre\lib\rt.jar;C:\j2sdk1.4.2\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.2\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.2\jre\lib\ext\localedata.jar;C:\j2sdk1.4.2\jre\lib\ext\sunjce_provider.
ar sun.applet.AppletViewer file:/C:/mydir/Spc.html

The Spc.html file looks as below:

<HTML>
<HEAD>
<TITLE>APPLETS</TITLE>
</HEAD>
<BODY>
<APPLET CODE="Spc.class"
width=400 height=400>
</APPLET>
</BODY>
</HTML>

All help wud be appreciated in gunning down this one

Thanking in anticipation
S
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top