Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (7k points)

I am getting the following error on startup:

"A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations:

C:\Program Files\eclipse\jre\bin\javaw.exe

javaw.exe in your current PATH"

I am really trying to get back the “default” setup without messing stuff up.

I am running windows 7, Eclipse Helios, and Java 1.6.0_26.

1 Answer

0 votes
by (13.1k points)

In your eclipse.ini file make sure you are pointing -vm to your JDK installation. Make sure to add -vm before the -vmargs section.

Pass in the vm flag from the command line.

http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F#Find_the_JVM

Wanr to learn Java? Check out the Java course from Intellipaat.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Oct 26, 2019 in Java by Anvi (10.2k points)
0 votes
1 answer
asked Apr 2, 2021 in Java by dev_sk2311 (45k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...