Home » Newcomers » Newcomers » Problems and Questions While Installing Java(Java Development, JDK, Java_Home, Java Disappears)
Problems and Questions While Installing Java [message #1719244] |
Wed, 06 January 2016 09:18  |
Eclipse User |
|
|
|
Hi;
We've had some weird issues when trying to get Eclipse IDE up and running to develop code for USFirst Robotics where we program in Java and download to a roboRIO target. Instructions for installing Eclipse for C++, then Java development tools, then Java JDK, then FRC WPILib are located at wpilib.screenstepslive.com/s/4485/m/13503/l/145002-installing-eclipse-c-java.
My first mistake was that I selected and installed Java JRE instead of the Java JDK. This resulted in a compile error stating that Java_Home was undefined. I figured out that I wasn't pointing to the JDK, then installed it too. Then Select Windows from the menu bar, then Preferences. Choose Java preferences in the list on the left of the Preferences window, then Installed JREs, and selected the JDK. But that did not fix the issue. I still obtained an error that the environment variable JAVA_Home was not defined.
So I deleted all references to eclipse in my home directory, reinstalled Java JDK, settup eclipse again, and then reinstalled the sample program and everything compiled. Plus I was able to Select the Project, then right click and select "Run As" then select "WPILib Java Deployment". However I didn't have a roboRio to download too.
Then two weeks later, at our robotics meeting, we open eclipse, select our workspace, and obtained errors stating that no editor defined. Further our project will not build, nor clean. Java development tools was missing or deleted. We needed to reinstall Java development tools, JDK setup, FRC WPILib, and it still would not work, until we deleted the sample project and reloaded it. We have since exited eclipse and restarted eclipse and it worked again. But why did everything stop working once we had the Eclipse IDE setup the way we needed?
The only thing we had done on the computer was move the eclipse shortcut from my desktop to the start page. I'm running Win 8.1; eclipse Mars.1; java_1.8.0_65
|
|
|
Re: Problems and Questions While Installing Java [message #1719267 is a reply to message #1719244] |
Wed, 06 January 2016 11:51   |
Eclipse User |
|
|
|
On 01/06/2016 08:17 AM, Kurt Sanger wrote:
> Hi;
> We've had some weird issues when trying to get Eclipse IDE up and
> running to develop code for USFirst Robotics where we program in Java
> and download to a roboRIO target. Instructions for installing Eclipse
> for C++, then Java development tools, then Java JDK, then FRC WPILib are
> located at
> wpilib.screenstepslive.com/s/4485/m/13503/l/145002-installing-eclipse-c-java.
>
>
> My first mistake was that I selected and installed Java JRE instead of
> the Java JDK. This resulted in a compile error stating that Java_Home
> was undefined. I figured out that I wasn't pointing to the JDK, then
> installed it too. Then Select Windows from the menu bar, then
> Preferences. Choose Java preferences in the list on the left of the
> Preferences window, then Installed JREs, and selected the JDK. But that
> did not fix the issue. I still obtained an error that the environment
> variable JAVA_Home was not defined.
>
> So I deleted all references to eclipse in my home directory, reinstalled
> Java JDK, settup eclipse again, and then reinstalled the sample program
> and everything compiled. Plus I was able to Select the Project, then
> right click and select "Run As" then select "WPILib Java Deployment".
> However I didn't have a roboRio to download too.
> Then two weeks later, at our robotics meeting, we open eclipse, select
> our workspace, and obtained errors stating that no editor defined.
> Further our project will not build, nor clean. Java development tools
> was missing or deleted. We needed to reinstall Java development tools,
> JDK setup, FRC WPILib, and it still would not work, until we deleted the
> sample project and reloaded it. We have since exited eclipse and
> restarted eclipse and it worked again. But why did everything stop
> working once we had the Eclipse IDE setup the way we needed?
>
> The only thing we had done on the computer was move the eclipse shortcut
> from my desktop to the start page. I'm running Win 8.1; eclipse
> Mars.1; java_1.8.0_65
Did you check the sticky posts at forum's top? In particular, these two
might help:
https://www.eclipse.org/forums/index.php/t/198527/
https://www.eclipse.org/forums/index.php/t/1065514/
|
|
| | | | |
Re: Problems and Questions While Installing Java [message #1719560 is a reply to message #1719244] |
Fri, 08 January 2016 15:19  |
Eclipse User |
|
|
|
Thank you guys for your help;
So far I've only found the one eclipse.ini file in the C:\Program Folders\eclipse directory. Which is also the directory with eclipse.exe. So I have no idea why my Java settings were lost.
I have an opportunity to load software for robotics on another computer so I will check if the instructions result in eclipse being placed under "C:\Program Folders" or if I did that on my own. I'm familiar with having multiple eclipse versions for coding for android, and Linux. I had thought that specifying the workspace is when the IDE would set up the options being used.
|
|
|
Goto Forum:
Current Time: Wed Jul 23 16:07:28 EDT 2025
Powered by FUDForum. Page generated in 0.08714 seconds
|