Re: javascript to execute java program



On Sep 30, 2:32 am, Thomas 'PointedEars' Lahn <PointedE...@xxxxxx>
wrote:
moongeegee wrote:
Thomas 'PointedEars' Lahn wrote:
1. Neither programming language, including ECMAScript implementations
   like JavaScript, is restricted to the client or the server.

2. If the Java program is an applet, LiveConnect/XPConnect can be used
   to access it from JavaScript.

3. If the Java program is a servlet, a HTTP request can trigger it.
   HTTP requests can be initiated with JavaScript using an
   external API (e.g., DOM or XHR).
[snipped quoted signature]

would you please give me some example how to execute the myjava.class
via javascript.

That depends on where it runs and what the type of program it is.

I have tried so many differnt, it doesn't seem working.

<http://jibbering.com/faq/#FAQ2_3>

Thanks so much.

You are welcome.

PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
    navigator.userAgent.indexOf('MSIE 5') != -1
    && navigator.userAgent.indexOf('Mac') != -1
)  // Plone, register_function.js:16

If he's executing the program via the java command, then it's actually
some sort of either desktop or headless application, and neither a
servlet nor an applet. The other question remains "Where does this
application lie?". Is it on the server or the client?

If it's on the client, then I know of no way to execute a java
application via javascript. For you gurus out there who want to chime
in, it would be just like running any other application installed on
the client pc....

If the java application is on the server, then you will have to write
a servlet that executes the java application, and have the javascript
call the servlet to ask it to do so.
.



Relevant Pages

  • Re: Tier3 today - And Flex-it like NASDAQ (*Only better!*)
    ... FlexBuilder, or just working on the FABridge functionality in general, you ... ArrayCollections are completely accessible via the Javascript in ... Broadcasted server to client messages, ...
    (comp.os.vms)
  • Re: Visual Studio only debugs javascript in .js files not .aspx fi
    ... An ASPX page is a class that generates HTML ... from the server. ... including any literal JavaScript in the page code, ... is used by the client browser to execute JavaScript on the client side, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Tier3 today - And Flex-it like NASDAQ (*Only better!*)
    ... Bootcamp) and then click on "Interactive Charts". ... are laid bare and fully accessible by your Javascript. ... Broadcasted server to client messages, ...
    (comp.os.vms)
  • Re: Generate a unique ID that identifies the client?
    ... that will identify the client. ... consider an AJAX request that got the info from a server. ... Javascript I've been considering whether it might be possible to use ... you can use UUID for your ...
    (comp.lang.javascript)
  • Re: Help ZFS FreeBSD 8.0 RC2 Write performance issue
    ... by a Commit RPC to force them to disk, done by the client when it ... When you set this sysctl, the NFSv3 server (sys/nfsserver, not the ... - The client may then choose to not bother with a Commit RPC. ...    though, since if it does make a significant difference, it ...
    (freebsd-current)