7

when i was starting eclipse, i first got this error dialog: enter image description here

After this error,i researched and found a solution here.

this solution asked me to give this line in eclipse.ini:

-vm C:\Program Files (x86)\Java\jdk1.7.0_25\bin\javaw.exe 

but after adding this, i found another kind of error dialog:

enter image description here

after this error,i researched alot, and found these solutions sol1 ,sol2 after following these, error is not resolved. does anyone know why i am facing this problem.

note: i know this is kind of duplicate question, but all those duplicate question are not resolved yet, so do not mark this as duplicate!

8
  • considering your reputation, you must have already done it :P, but then again.. did u check your path variable???... have you installed JDK and JRE and set the paths for then?? Commented Dec 16, 2013 at 6:11
  • 1
    i would rather uninstalling java, removing anything reletaed to java in system variables/paths, then install a new JDK. i would download a new eclipse, besause there is(maybe) corrupted settings in the old allready installed eclipse package Commented Dec 16, 2013 at 6:15
  • @Rami.Q - Ya.. I had to do the same when I had this issue.. Commented Dec 16, 2013 at 6:17
  • What about: stackoverflow.com/questions/4945178/… or stackoverflow.com/questions/9635506/… ? Commented Dec 16, 2013 at 6:18
  • 4
    Check your PATH environmental variable and make sure you have an up-to-date JDK. Possibly redownload your JDK. Also make sure your Eclipse and JDK are the same bit version (32 bit and 32 bit or 64 bit and 64 bit). Commented Dec 16, 2013 at 6:27

3 Answers 3

8

You're trying to run a 64-bit Eclipse with a 32-bit Java Runtime. They have to match.

Sign up to request clarification or add additional context in comments.

3 Comments

Amazing! it really solved my problem, and it is common we never try to understand these errors shown in dialogs, and we hit our head with walls and pull our hairs that why this error is coming before reading the error properly :)
@nitind, what do you mean by 64-bit Eclipse? if we want to download Eclipse we have two choices windows 32 and 64, For me i have a windows 64 but i need to run JVM 32-bit because i must install Jboss tools, what should i do ?
The JVM and Eclipse must match because the JVM has to load native DLLs for the UI controls, and on Windows you can't mix 32-bit and 64-bit code in the same process. If you require a 32-bit JVM, you must use a 32-bit download of Eclipse.
0

If you have recently updated your java then please uninstall that update. It worked in my case. Hope it will help.

Comments

-1

first of all remove line in eclipse.ini:

-vm C:\Program Files (x86)\Java\jdk1.7.0_25\bin\javaw.exe 

then

right click::my computer

select: properties

click on : advanced system setting

click on: environments variable

select: path

click: edit

copy on : your java(jdk) path eg.[C:\Program Files\Java\jdk1.7.0\bin]

paste on edit user variable dialog box: eg. [;C:\Program Files\Java\jdk1.7.0\bin.;]

ok/apply

then start ur eclipse and enjoy..........

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.