This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes servlet calls swing application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet calls swing application" Watch "servlet calls swing application" New topic
Author

servlet calls swing application

Tracey Currier
Ranch Hand

Joined: Feb 06, 2001
Posts: 50
can my servlet call an executable jar file which
has swing components, etc, if the jar file is stored on the same server? :roll:


MS,MS,SCJP,SCBCD Seize the day!
Roy Ben Ami
Ranch Hand

Joined: Jan 13, 2002
Posts: 732
i think it can.
but what will it help u?
it gets executed on the server side.
Tracey Currier
Ranch Hand

Joined: Feb 06, 2001
Posts: 50
I want the application to execute in the browser or from the browser. I didn't really want to use
an applet, but I have a fairly complex GUI application that I want accessible from the web.
Do I use RMI? I don't think I can use beans but
I can use J2EE and servlets.
Thanks for your response.
Roy Ben Ami
Ranch Hand

Joined: Jan 13, 2002
Posts: 732
u must realize that it is very hard to convert your application so a user can use it over the web.
first u can d/l the entire application to the client and let him execute it there.
second if u use rmi or servlets to invoke methods on the application u must know that all the gui wont be shown to the client. u need to transfer the gui to the client side which i think is impossible (but again there may be ways to do it, and maybe someone with more knowledge on the subject may instruct u).
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Tracy, you must use an applet. That is your only option if you want the Java code to execute in the browser itself.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Tracey Currier
Ranch Hand

Joined: Feb 06, 2001
Posts: 50
Thanks, it will mean some rewriting, but at
least I can use all my graphics. I read the article recommended by Roy Ben Ami the other day,
it looks pretty straightforward.
 
 
subject: servlet calls swing application
 
Similar Threads
About Updating JAR FILES
any good free component for capture Dates?
Netbeans 5 beta - Swing jar problem
jar not loaded .See Servlet Spec...
Main class not found