View Full Version : Netbeans cannot access java.lang
Infinite
18-01-2014, 17:00
Everything was working well until I updated my Netbeans to 2014. Since the update, I've been getting the following error message:
cannot access java.lang
Fatal Error: Unable to find package java.lang in classpath or bootclasspath
I've tried reinstalling Netbeans.
Thanks
Team3266Spencer
18-01-2014, 17:22
Is Java properly installed on your computer? If not there may be some kind of path issue with where Netbeans is looking for Java.
Infinite
18-01-2014, 19:45
Is Java properly installed on your computer?
I believe so. I use BlueJ and it works fine. It does indeed seem like a path issue as you described, though.
BradAMiller
19-01-2014, 08:33
I'm not sure if you've done this, but you might try installing the Netbeans and Java co-bundle. It will install both the java runtime system and netbeans at the same time and should make sure the paths are set correctly.
http://wpilib.screenstepslive.com/s/3120/m/7885/l/79405-installing-the-java-development-tools
Then install the WPILib FRC plugins.
Infinite
19-01-2014, 19:35
excellent, I'll try this. thanks.
Bryan Herbst
19-01-2014, 19:43
Everything was working well until I updated my Netbeans to 2014. Since the update, I've been getting the following error message:
cannot access java.lang
Fatal Error: Unable to find package java.lang in classpath or bootclasspath
I've tried reinstalling Netbeans.
Thanks
I encountered the same problem when I tried to use Netbeans to update the FRC plugins.
You must uninstall the plugins and delete the sunspotfrcsdk directory, then reinstall the plugins. Updating will not work.
This is mentioned (though not emphasized enough) in the Installing the Java development tools documentation (http://wpilib.screenstepslive.com/s/3120/m/7885/l/79405-installing-the-java-development-tools).
Infinite
20-01-2014, 01:45
Wow, that fixed it. I wasted so many hours on this problem...thanks a ton.
EDIT: This was directed to Tanis
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.