Calling a Java application from javascript

Posted on 2004-08-27
Last Modified: 2010-03-31
Hi guys,

I am trying to call a standalone java application(not an applet) from an external javascript.
My application works fine as standalone. But I dont know how to call it from an external javascript.  Please help me.

Question by:ParikhPrerak
LVL 35

Accepted Solution

girionis earned 125 total points
ID: 11915055
You can't do that. BTW why you would like to do that?
LVL 86

Expert Comment

ID: 11915069
Make it an applet then you can
LVL 92

Expert Comment

ID: 11918458
why do you need to call an app from js?
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

LVL 15

Expert Comment

ID: 11918905
The JavaScript language was carefully engineered to make it impossible to do that (code in a webpage should have absolutly no acces to the users filesystem).

Expert Comment

ID: 12036520
There is no way you can call java application from javascript
LVL 92

Expert Comment

ID: 12037146
Isn't that what girionis said?
LVL 35

Expert Comment

ID: 12041676
It is indeed :)

Anyway as long as the user is happy and the answer is valid it does not make much differece.
LVL 35

Expert Comment

ID: 12046162

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
egit plugin on eclipse 8 82
tomcat not starting 6 69
servlet web applications   metadata-complete="true" or false 3 131
runtime exception 2 42
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question