It's not a secret anymore!
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "getting java home or jvm version??" Watch "getting java home or jvm version??" New topic

getting java home or jvm version??

soloooo solo

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

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

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

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).
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

"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.

Forum Bartender

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: getting java home or jvm version??
jQuery in Action, 3rd edition