How to execute an external Java Application by Javascript?

S

sandyde2

Hi all,

I am writing a java application as a mozilla extension.
Because mozilla uses javascript for the frontend,
i need the javascript to call my external java application
and pass one parameter to it.

but... how to do it? any idea?

many thanks

sandy
 
K

kaeli

sandyde2 said:
Hi all,

I am writing a java application as a mozilla extension.
Because mozilla uses javascript for the frontend,
i need the javascript to call my external java application
and pass one parameter to it.

but... how to do it? any idea?

What do you mean by "call"?
From a web page, or from Mozilla itself somehow?

What does the java return/do?
Javascript alone doesn't really call server-side applications. But depending
on context, it can be fooled into it by returning mime-type text/javascript
and including it in a src attribute.

--
 
S

sandyde2

What do you mean by "call"?
From a web page, or from Mozilla itself somehow?

What does the java return/do?
Javascript alone doesn't really call server-side applications. But depending
on context, it can be fooled into it by returning mime-type text/javascript
and including it in a src attribute.

i expect that i can save my jar into a local disk,
and in the javascript code of mozilla, i can simply
write a function to execute this jar and pass it
a parameter. like...

function xcuteJava()
{
execute("java -jar my.jar", myparameter);
}

however, i wondered whether there is such a function
in javascript..
 
K

kaeli

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top