Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Applet Works in IDE not command prompt

Thread Tools

Applet Works in IDE not command prompt

Posts: n/a
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

-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.ja r;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:\j2 sdk1.4.2\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2\jre\ lib\ext\dnsns.jar;C:\j2sdk1.4.2\jre\lib\ext\ldapse c.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:

<APPLET CODE="Spc.class"
width=400 height=400>

All help wud be appreciated in gunning down this one

Thanking in anticipation
Reply With Quote

Thread Tools

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
javac command not working in command prompt chrisdude911 Java 10 03-10-2009 09:55 AM
prompt to save on exit - disable prompt on save button Mel ASP .Net 10 02-13-2009 05:32 AM
How to open a shell prompt from an existing shell prompt gaurav kashyap Python 3 10-31-2008 04:41 AM
How to open a shell prompt from an existing shell prompt gaurav kashyap Python 2 10-30-2008 09:18 AM
Access Denied when i type command at command prompt calvin MCDST 0 03-08-2006 06:33 AM