Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java application to Javascript  RSS feed

 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a question:
Is it possible to access Java application(Not applet) in Javascript? If yes, how?
Please let me know,
Thanks
Angela
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends what you are using to run your JavaScript. If you are running JavaScript on the server (using SSJS or a JavsScript JSP, for example) then you have access to all the usual Java resources and can run or communicate with applications on the server.
If you are running JavaScript in a browser you are limited in many ways by the browser capabilities and the Java sandbox. It should be possible to sign and trust a simple applet which will proxy your JavaScript through LiveScript to the applet and in turn to an application running on the client, but I can't imagine it will be a simple or robust process.
May I ask what you need this for? We may be able to help with an alternative way of achieving what you require.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!