It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Invoking Java program using Javascript

Invoking Java program using Javascript

Postby mmjanjust on Thu Jan 14, 2010 12:53 pm

Hi all,
I want to call a standalone Java program through Javascript .

am calling using the below statement in Javascript,
my java class file is present in the folder with my javascript,

the Java program contains a main() method. and the program execution needs to start with the main() method.
but how to call Java program via javascript ? Can someone please help me out?

Thanks
minjust
mmjanjust
 
Posts: 1
Joined: Thu Jan 14, 2010 12:41 pm

Re: Invoking Java program using Javascript

Postby harrierdh on Thu Jan 14, 2010 3:37 pm

This can't be done. Javascript security won't allow you to run anything executable. You could turn your java program into an applet though.
harrierdh
50+ Club
 
Posts: 51
Joined: Wed Dec 16, 2009 7:04 pm


Who is online

Users browsing this forum: No registered users and 7 guests