This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes accessing java class from javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "accessing java class from javascript" Watch "accessing java class from javascript" New topic
Author

accessing java class from javascript

kamesh aru
Ranch Hand

Joined: Mar 16, 2002
Posts: 150
can any guide me how to access the java class methods from javascript ?
thanks in advance
Kj Reddy
Ranch Hand

Joined: Sep 20, 2003
Posts: 1697
Originally posted by kamesh aru:
can any guide me how to access the java class methods from javascript ?
thanks in advance


Have a look in the following link:

http://webreference.com/javascript/reference/core_ref/packages.html

Hope it helps to you
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35442
    
    9


That link is about the Rhino JavaScript engine, which is written in Java, and not to my knowledge used in any browser. I assume you're talking about JavaScript in the context of a browser. In that case you're looking for a technology called LiveConnect, which enables two-way communication between Java applets and JavaScript within a web page. Unfortunately, LiveConnect is not supported by all browsers. Here is a test page you can use to check your browser.


Android appsImageJ pluginsJava web charts
Yuriy Zilbergleyt
Ranch Hand

Joined: Dec 13, 2004
Posts: 429
In any case, what exactly are you trying to accomplish?

-Yuriy
[ August 10, 2005: Message edited by: Yuriy Zilbergleyt ]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: accessing java class from javascript
 
Similar Threads
assign return value of function from javascript to variable in jsp
can we call a javaclass from a javascript function?
Call javascript from Java
calling java class file from javascript
BigDecimal in JavaScript