Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unable to launch the Java Virtual Machine

KeithWilliamsJan 19 2010 — edited Oct 6 2011
I just moved to Windows 2008 Server 64-bit and installed the latest 64-bit JDK.

I just installed the latest Jdeveloper (11.1.1.2.0) and I an error when I try to launch JDeveloper:

Unable to launch the Java Virtual Machine
Located at path:
C:\Program Files\Java\jdk1.6.0_18\jre\bin\server\jvm.dll

Any insight is appreciated.

Thanks, Keith

Comments

Ajit Kumar Singh

Thanks  Nice Article.

Parikshit Kumar Singh

It would be create if you could enrich it with code through github URL etc.

Good explanation.

sun_certified

Actually, @JosePaumard, in the "Optionals: First Patterns" section where you have...

     Optional<Person> opt = ...;    
     if (opt.isPresent()) {       
          int value = opt.get(); // there is a value   
     } else {       
          // decide what to do   
     }

... the line with the comment "// there is a value" would fail compilation with a "incompatible types: Person cannot be converted to int" error.

3381266

You wrote that

The Optional class could have been returned by the map.get() method

could be used to distinguish between having a  'null' value stored in the map and not having the given key. This does not work since Optional does not allow 'null'  as a value (at least under Java 8) - 'null' is used to flag the empty Optional (no value present)!

sun_certified

@JosePaumard In the code in the "Calculating the Inverse of a Square Root, Second Version" section, the inverse operation is done first, and then the result of that inverse operation is passed to the sqare root operation. So that code is actually calculating the square root of the inverse...

Function<Double, Stream<Double>> invSqrt =

    d ‐> OptionalMath.inv(d).flatMap(OptionalMath::sqrt)

                       .map(Stream::of)

                       .orElseGet(Stream::empty);

Java- it is my like programme

1 - 7
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 3 2011
Added on Jan 19 2010
24 comments
39,106 views