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


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

Re: JDK 8 is there

From Wayne <nospam@all.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: JDK 8 is there
References <JDK-8-20140318234830@ram.dialup.fu-berlin.de> <quuhi9p4ni256behe2ec9rhakk0q9oc3sj@4ax.com>
Message-ID <q%9Wu.67353$Bm2.20516@fx29.iad> (permalink)
Organization Newshosting.com - Highest quality at a great price! www.newshosting.com
Date 2014-03-19 01:34 -0400

Show all headers | View raw


On 3/18/2014 10:09 PM, Roedy Green wrote:
> On 18 Mar 2014 22:51:11 GMT, ram@zedat.fu-berlin.de (Stefan Ram)
> wrote, quoted or indirectly quoted someone who said :
> 
>>  Looks as if JDK 8 has just made it to the official download page
> 
> I tried installing it.  Then I typed:
> 
> [C:\Program Files (x86)\Java\jre8\bin]java.exe -version
> java version "1.7.0_51"
> Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
> Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
> 
> What the heck? Is it somehow grabbing 1.7 or did they bundle a 1.7 as
> 1.8?
> 

Sorry I don't have a definite answer for you, but I've run into
similar issues in the past.  Here's some things you can look for:

On Windows, PATH is not always used to locate the JVM; a registry
setting is.  When you install multiple versions, that setting can
get confused.  Note the setting is used for applets, webstart, etc.
I find that by uninstalling all previous JDK and JRE versions first,
then installing the new version, I don't have that problem.  It's
a similar issue if you install both the 32-bit and 64-bit versions;
if you install the 64-bit version last, Applets and WebStarts will
use that even from a 32-bit browser.

From the command line, I think PATH is used, so in your case the
results are strange.  But, based on your prompt, PATH shouldn't be
used; Windows looks in the current directory before resorting to
PATH.  So the results are very strange.

You might need to reboot (required somtime at least through Vista),
or double-check the PATH setting.  (Since WinXP, the PATH won't
expand other environment variables, so make sure you don't
have something like ";%JAVA_HOME%\bin;" in there.)

Make sure java.exe really is in the current folder (use dir).  In
spite of the name, make sure you installed java 8 there and not
elsewhere.  If so, it probably is a PATH issue.  Try using a
pathname and see if you run ther correct JVM:  .\java.exe -version

(Tip: manage PATH and other environment variables for Windows
using Rapid Environment Editor.)

-- 
Wayne

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


Thread

Re: JDK 8 is there Roedy Green <see_website@mindprod.com.invalid> - 2014-03-18 19:09 -0700
  Re: JDK 8 is there Arne Vajhøj <arne@vajhoej.dk> - 2014-03-18 22:11 -0400
  Re: JDK 8 is there Roedy Green <see_website@mindprod.com.invalid> - 2014-03-18 19:49 -0700
  Re: JDK 8 is there Wayne <nospam@all.invalid> - 2014-03-19 01:34 -0400
    Re: JDK 8 is there Roedy Green <see_website@mindprod.com.invalid> - 2014-03-19 02:27 -0700
      Re: JDK 8 is there lipska the kat <lipskathekat@example.com> - 2014-03-19 20:30 +0000
        Re: JDK 8 is there Arne Vajhøj <arne@vajhoej.dk> - 2014-03-24 21:38 -0400
      Re: JDK 8 is there Wayne <nospam@all.invalid> - 2014-03-24 23:02 -0400
        Re: JDK 8 is there Roedy Green <see_website@mindprod.com.invalid> - 2014-03-25 04:18 -0700
          Re: JDK 8 is there Knute Johnson <eternal@knutejohnson.com> - 2014-03-25 08:58 -0700
            Re: JDK 8 is there Wayne <nospam@all.invalid> - 2014-03-25 13:33 -0400
            Re: JDK 8 is there Arne Vajhøj <arne@vajhoej.dk> - 2014-03-25 18:26 -0400

csiph-web