|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Problem running Eclipse Code
Hey, I'm a programmer from team 4780 and I'm getting an error when I try to run a code I have in eclipse. I'm sorry if someone already posted this, but I couldn't find anything. I'm not sure what exactly this error means and I need advice on how to fix it. Thanks in advance!
Last edited by Jtbillick : 12-02-2015 at 22:35. Reason: Spelling error |
|
#2
|
||||
|
||||
|
Re: Problem running Eclipse Code
Quote:
http://www.gyazo.com/ http://www.take-a-screenshot.org/ Are your environment variables setup correctly? It seems like you may have an incorrect/no JAVA_HOME specified. https://stackoverflow.com/questions/...e-on-windows-7 |
|
#3
|
|||
|
|||
|
Re: Problem running Eclipse Code
It would appear that you are pointing your java home directory to a JRE (java runtime environment), not the JDK (java developer kit, I think). We had the same issue and once we downloaded and started using the JDK it was OK.
|
|
#4
|
|||||
|
|||||
|
Re: Problem running Eclipse Code
You'll need to set your JAVA_HOME environment variable to point to a Java JDK instead of a JRE. If you don't have a JAVE_HOME environment variable, create one and have it point to the JDK.
|
|
#5
|
|||
|
|||
|
Re: Problem running Eclipse Code
Quote:
Then I found the newest jdk in JRE home, clicked next and select it. This worked with out me even touching JAVA_HOME which I still do not even have in my system variables Last edited by Rakusan2 : 13-02-2015 at 11:16. Reason: missed couple of steps |
|
#6
|
|||||
|
|||||
|
Re: Problem running Eclipse Code
Quote:
|
|
#7
|
|||
|
|||
|
Re: Problem running Eclipse Code
Thou due to Eclipse using JREs, it does not look at the system variable JAVA_HOME so you still need to set the location of the JDK in the preferences of Eclipse if you want to compile the code for the bot in Eclipse using Java
|
|
#8
|
|||||
|
|||||
|
Re: Problem running Eclipse Code
Eclipse DOES look at JAVA_HOME; we had this same issue in the past, fixed our home variable, and everything has worked fine since.
|
|
#9
|
|||
|
|||
|
Re: Problem running Eclipse Code
Quote:
which states "Eclipse DOES NOT consult the JAVA_HOME environment variable." |
|
#10
|
|||||
|
|||||
|
Re: Problem running Eclipse Code
Quote:
|
|
#11
|
|||
|
|||
|
Re: Problem running Eclipse Code
Yes since Eclipse has its own path for JAVA_HOME and that is located in the preferences
|
|
#12
|
|||||
|
|||||
|
Re: Problem running Eclipse Code
Quote:
I'm outta here. |
|
#13
|
|||
|
|||
|
Re: Problem running Eclipse Code
Sorry I have just installed Eclipse on a new computer and found out that both methods work so go with with what ever you find the best |
|
#14
|
|||
|
|||
|
Re: Problem running Eclipse Code
Thanks for the help. Problem solved, I had Jre 8 instead of jdk in JAVA_HOME.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|