This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Applets and the fly likes invoking applet from javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "invoking applet from javascript " Watch "invoking applet from javascript " New topic

invoking applet from javascript

Sanket Band

Joined: Feb 05, 2011
Posts: 3
i have made an applet that imports some classes from AR api. i have invoked this applet from a javascript code. but when i execute this i get a class not found exception. it is not getting the classes which i import. can anyone help on this.
Jelle Klap

Joined: Mar 10, 2008
Posts: 1950

Hello and welcome to JavaRanch!

Could you provide us with some more information?
You mentioned an AR api, which doesn't ring any bells with me.
Also, a stack trace could be useful, as would be information regarding packaging of the Applet.

Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Sanket Band

Joined: Feb 05, 2011
Posts: 3
hello Jelle

am using an Action Request API(AR API).
What i exactly do is , i make an applet which uses this api. i bundle this applet and other classes that i have written in a jar file.
I use this jar in javascript. Now my problem is :- in my applet i import some classes of the Action Request API( I have kept the jar file for this Action Request API in the original java classpath).When i execute this applet in the browser, i get a class not found exception indicating that it is not able to get the classes that i import from the AR API.
I hope this clarifies the problem.
thanks Jelle for looking into my problem
I agree. Here's the link:
subject: invoking applet from javascript
jQuery in Action, 3rd edition