This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "invoking applet from javascript " Watch "invoking applet from javascript " New topic
Author

invoking applet from javascript

Sanket Band
Greenhorn

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
Bartender

Joined: Mar 10, 2008
Posts: 1752
    
    7

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
Greenhorn

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: invoking applet from javascript
 
Similar Threads
how can i call a applet from a javascript functions???
Applets, JavaScript and Internet Explorer
To what applet context info does the getParent() method give access?
detecting browser name/version from an Applet
java to javascript communication