Reputation: 1228
I usually do all my java development on linux, using fedora package manager setting up a development environment is easy and fast.
Now I have to start using windows but I never used it for java development and im having a few difficulties having it setup.
So I downloaded and installed thye java 6 JDK (just the standard edition, not the EE) and installed it.
Next I downloaded eclipse classic package, which doesnt have an installer, you just unzip it and run it.
I had to add the java bin directory to the PATH variable, which I did.
But when I start eclipse.exe
I get this:
http://img02.imagefra.me/img/img02/1/12/12/f_12c33ivd2m_c79c09f.jpg
I already made a new environment variable called CLASSPATH and add the d:/java sdk/lib directory to it, but it the same thing. Am I missing something?
Thanks.
UPDATE: so i wrote the path to the java.exe on the eclipse.ini file (linking to jvm.dll didnt work) and now it just opens a console window for a few seconds and then closes (doesnt output anything).
also launching it like: java -jar plugins/org.eclipse.equinox.launcher_1.0.0.v20070208a.jar make the vm work for about 1-2 seconds and then it returns, with no outputs.
UPDATE2: i didnt know it was writting a log file, found it and read it and it said i was using GWT x32 libraries on a x64 VM, so i just downloaded an eclipse x64 version and it worked. i still had to use the .ini trick to say where the JVM is installed.
thanks a lot for the help.
Upvotes: 1
Views: 2800
Reputation: 1323223
Try referencing the JVM in the eclipse.ini setting file, rather than an environment variable.
See this eclipse.ini
-vm
c:/path/to/your/jdk1.6.0_17/jre/bin/client/jvm.dll
See Finding a VM, Using JNI Invocation or Executing Java on the eclipse wiki for more
Here is a copy of a more general answer (since then deleted) on Eclipse installation:
Having a simple JRE is enough for eclipse to run.
Eclipse will try to launch with the default "java.exe" (the first one referenced by your PATH)
Three things to remember:
Upvotes: 4
Reputation: 114757
A simple workaround: create a directory names 'jre' directly under 'eclipse' and copy the jre files into that directory, so that it looks like:
.../eclipse
/features
/jre
/bin
/java.exe
/plugins
(most files are missing in this tree, it't just to give you an idea)
Eclipse should start with the java runtime located in that folder.
Upvotes: 0
Reputation: 570295
If available under the
eclipse/jre
directory, the Eclipse JRE will be used; otherwise the launcher will consult the system path variable. Eclipse will NOT consult the JAVA_HOME environment variable.
In your case, I suspect the system path to be incorrectly set (because of a space in the path to the Java binaries for example). Does this work?
C:> java -version
Could you update your question with the content of your PATH
?
c:> path
c:> set path
Upvotes: 1
Reputation: 39733
Perhaps the blank in d:/java sdk/lib
does cause the problems. You should try to rename the directory.
Upvotes: 0
Reputation: 19443
Try setting the JAVA_HOME variable in your system environment variables to point to where your JDK is installed. You might need to point it to the jre subdirectory (in the JDK kit) if that does not work.
Upvotes: 0