File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 1951

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
It's not a secret anymore!