• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

Java application to Javascript

 
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic