Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting java home or jvm version??

 
soloooo solo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why does the client's JVM matter, or indeed if they have one at all?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic