• Post Reply Bookmark Topic Watch Topic
  • New Topic

any fast method to know is the client has j2dk or j2re?  RSS feed

 
peter tong
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there any fast method which can know a client has installed j2dk or just j2re?
can java -version do this task?
what is the result like if just j2re is installed after running java -version?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One distinguishing feature is the presence (or absence) of the compiler. So if just the JRE is installed, entering "javac" on the command line should result in an error message.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!