2

Looks like a common issue, but facing issues inspite of searching around.

My environment: Win7 64.

Downloaded: Java from here and Eclipse from Here After installing Java & extracting eclipse, I try to run Eclipse from unzipped folder and get the error. enter image description here.

My background: C# .net / C++ - windows development. I would prefer to use C#. But not that adventurous to try going mono on android (unless recommended - unlikely). So trying to go Eclipse & Java the recommended way, although i have zero Java experience, so far.

Here is what I have tried.

  1. Created env variables as per this thread. Didnt help. Java Install folder was - 'C:\glassfish3\jdk' Tried referencing both environment path with both these locations - 'C:\glassfish3\jdk\bin' and 'C:\glassfish3\jdk\jre\bin'. (I presume i should reference the latter - jre being the runtime environment?)

  2. Modifying eclipse.ini - from this link (I dont think i am doing this right. I am not sure how to go about this. How to modify this file. Didnt try experiment much. Also, Do i need to remove the environment variables from previous step before attempting this?)

Could there be problem with the java i installed? There was some configuration items which popped up while installation. I just continued without configuring. (I thought it wes the additional items which i didnt need - glassfish)

Community
  • 1
  • 1
ShaQ.Blogs
  • 1,264
  • 4
  • 17
  • 30

2 Answers2

5

First, you shouldn't have installed Java 6. It is EOL'ed. Install Java 7 instead. And I recommend that you install a JDK not a JRE because that will give you the option of running Java development commands outside of Eclipse.

Next, when you install Java, it will ask you where you want to install it:

  1. Make a note of that directory location.
  2. When the Java install has completed, look in the "bin" subdirectory, and you should see the javaw.exe file.
  3. Check the system %PATH% environment variable, and if necessary change it to add the Java installation's "bin" subdirectory.

(Note that this is basically what the Java release's installation instructions tell you to do ...)


If you don't want to do a reinstall, then use Windows search to find the javaw.exe file from your existing install, and add its parent directory to %PATH%.

Stephen C
  • 698,415
  • 94
  • 811
  • 1,216
0

Try searching for the javaw.exe and add the location to your PATH.

azzurroverde
  • 567
  • 5
  • 18