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 14:18 |
Kurt Sanger Messages: 6 Registered: January 2016 |
Junior Member |
|
|
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 16:51 |
|
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 #1719403 is a reply to message #1719400] |
Thu, 07 January 2016 16:25 |
|
On 01/07/2016 09:14 AM, Kurt Sanger wrote:
> I've checked that the eclipse icon on the start page starts up in
> C:\Program Files\eclipse. If I go to c:\Program Files\eclipse and right
> click on eclipse.exe it too starts up in C:\Program Files\eclipse. If I
> create a shortcut and place it on the desktop it starts in the same
> place. If I right click on the eclipse.exe and pin it to the taskbar it
> starts in the same place. So I do not see how deleting the shortcut on
> the desktop or the taskbar icon and using the icon on the start page
> deleted Java developer settings.
>
> Searching for eclipse.ini doesn't show up any files in my user
> directory. Actually it shows no files as I have to change Win 8.1
> search setting to search my hard drive...
>
> Have to figure out how to get Win 8.1 to search my entire hard drive.
> Currently it ignores Data, App Data, and isn't showing eclipse.ini at
> all. Argh. Search should find everything. Shouldn't take a rocket
> scientist. So I don't know if I have multiple ini files for eclipse yet.
I advise against putting Eclipse in C:\Program Files. It's
personal-productivity software and it creates some access troubles on
versions past Windows XP. Put it instead on a path like C:\Users\kurt.
Cheers.
|
|
| | |
Goto Forum:
Current Time: Fri Sep 20 08:24:34 GMT 2024
Powered by FUDForum. Page generated in 0.09339 seconds
|