Click to See Complete Forum and Search --> : Perl & Java


aliila
09-21-2004, 01:15 AM
I am taking perl up again after a long time.
I am writing a perl program that will have to access a function in Java applet. I am unable to find any example of it.

Any ideas?

Thanks,
Ali

aliila
09-21-2004, 03:51 AM
I thought about it. And I think it cant be done. Since i would have to start jvm on the client(?) machine. I am not sure how a script on server side would start jvm on client and then access an applet function.

Still I could be wrong.
:confused:

Ali

Jona
09-21-2004, 01:36 PM
You can use JavaScript, but Perl has no interaction with client-side code (except writing to it before it is created and sent to the client machine).

aliila
09-21-2004, 03:02 PM
Actually I dont need to run it on the client side. All I need is to get a value from from this java function. The java class can reside on the server and have no need to load on the client computer.

Supposing that I have jvm installed on the server, how do call a function in a java class from a perl program?

Any ideas? or am i faced with the same problem:(

thanks,
Ali

silent11
09-21-2004, 03:07 PM
could this be what you are looking for?


http://search.cpan.org/~metzzo/Java-4.7/Java.pm