Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

accessing java class from javascript

 
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any guide me how to access the java class methods from javascript ?
thanks in advance
 
Ranch Hand
Posts: 1704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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



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.
 
Ranch Hand
Posts: 429
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In any case, what exactly are you trying to accomplish?

-Yuriy
[ August 10, 2005: Message edited by: Yuriy Zilbergleyt ]
 
rubbery bacon. crispy tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic