Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #7045

Re: How to find out if I use java.exe from a jdk, a jre or a javaEE installation?

From markspace <-@.>
Newsgroups comp.lang.java.programmer
Subject Re: How to find out if I use java.exe from a jdk, a jre or a javaEE installation?
Date 2011-08-12 08:20 -0700
Organization A noiseless patient Spider
Message-ID <j23gcu$jsh$1@dont-email.me> (permalink)
References <4e45399c$0$6627$9b4e6d93@newsspool2.arcor-online.net>

Show all headers | View raw


On 8/12/2011 7:33 AM, Robin Wenger wrote:
> How can I find out (in Win) WHICH java.exe I used in detail?

It's "where java" on windows, and I think whereis on *nix.

If you mean programatically, just access the class/sdk component or 
other service.  If you get an exception, it wasn't installed.  Some 
programs (like ant) require you to set the JAVA_HOME environment 
variable to identify which SDK you want to use (some users have more 
than one).  I prefer using command line arguments or cofig files; 
polluting the environment with lots of tedious variables is a last resort.


Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

How to find out if I use java.exe from a jdk, a jre or a javaEE installation? rob@wenger.net (Robin Wenger) - 2011-08-12 14:33 +0000
  Re: How to find out if I use java.exe from a jdk, a jre or a javaEE installation? kedar mhaswade <kedar.mhaswade@gmail.com> - 2011-08-12 07:51 -0700
  Re: How to find out if I use java.exe from a jdk, a jre or a javaEE installation? markspace <-@.> - 2011-08-12 08:20 -0700
  Re: How to find out if I use java.exe from a jdk, a jre or a javaEE installation? Lew <lewbloch@gmail.com> - 2011-08-12 14:48 -0700
  Re: How to find out if I use java.exe from a jdk, a jre or a javaEE installation? Luuk <Luuk@invalid.lan> - 2011-08-13 12:42 +0200
    Re: How to find out if I use java.exe from a jdk, a jre or a javaEE installation? Luuk <Luuk@invalid.lan> - 2011-08-13 12:44 +0200
  Re: How to find out if I use java.exe from a jdk, a jre or a javaEE installation? Steve <tinker123@gmail.com> - 2011-08-18 09:56 -0400
    Re: How to find out if I use java.exe from a jdk, a jre or a javaEE installation? Lew <lewbloch@gmail.com> - 2011-08-18 11:37 -0700

csiph-web