aspose file tools*
The moose likes Servlets and the fly likes getting java home or jvm version?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "getting java home or jvm version??" Watch "getting java home or jvm version??" New topic
Author

getting java home or jvm version??

soloooo solo
Greenhorn

Joined: Jun 15, 2005
Posts: 1
hello members,
how do i get the java home path and/or jvm version of both client(from where the sevlet called and server(where servlet exist/running).

how do i compare both client and jvm version , if they are not equal then i want to popup a window with new upgraded files to be download from server to client. how can i do this.
submit your code plz

looking forward and regards,
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Why does the client's JVM matter, or indeed if they have one at all?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

For the server System.getProperties will return an enumeration containing lots of information, including JVM and version.

For the client, if you're using the OBJECT tag, instead of the APPLET tag, you can specify the plugin version. The browser will prompt the user to download the correct one if they don't already have it. There is a jsp:plugin tag that will take care of writing the object tag for you.



Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

PS: Welcome to Java Ranch.

It is the policy here that we all display our real names.
At some point a moderator will ask you to change yours to fit this policy (if you don't beat them to it).
http://www.coderanch.com/forums/user/edit
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

"soloooo solo",

There aren't may rules that have been put into place here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: getting java home or jvm version??
 
Similar Threads
Class directories for network mode
Writing a remote client to access EJBs
Applet in J2EE application
Error: no `server’ JVM at … jvm.dll
Calling Entity Bean from SessionBean