The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

How to call a java programme from an applet?

Hi,
I want to call a java program from an applet which is on a webpage.The java program we are using is placed on the client machine.
When we click on the applet i have the following code in the applet action .

But i am unable to run the java programme run2 on my PC. Please note i have successfully done the following.

1> Added the run2 class in the classpath.
2> Am able to run the claas run2 in command line from any location
3> If i run the above applet as a stand alone programme in the client machine, i am able to run the programme.

Problem : I am unable to run the java programme run2 when i put it in a JSP page and try running from the web browser like shown below:

Re: How to call a java programme from an applet?

By default, reading or writing files are not allowed for a normal applet, so you have to give appropriate permission to the applet by either using .java.policy file or sign the applet with a security certificate.