Go to Post When faced with large problems, I always see it as an opportunity to dream big. Really big. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 18-01-2014, 17:00
Infinite Infinite is offline
Registered User
None #1178
 
Join Date: Jan 2014
Location: U.S.
Posts: 4
Infinite is an unknown quantity at this point
Netbeans cannot access java.lang

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
Reply With Quote
  #2   Spotlight this post!  
Unread 18-01-2014, 17:22
Team3266Spencer's Avatar
Team3266Spencer Team3266Spencer is offline
Team Captain and Lead Programmer
AKA: Spencer Lanman
FRC #3266 (Robots-R-US)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Richmond, Indiana
Posts: 280
Team3266Spencer is an unknown quantity at this point
Re: Netbeans cannot access java.lang

Is Java properly installed on your computer? If not there may be some kind of path issue with where Netbeans is looking for Java.
__________________
2012: Buckeye Regional, Queen City Regional, Human Player
2013: Queen City Regional, Buckeye Regional, Crossroads Regional
Shooter Operator
2014: Crossroads Regional, Queen City Regional
Catapult Operator
2015: Georgia Southern Classic Regional (Winner), Queen City Regional
Chainsaw Operator
Want to talk? TeamSpeak: team3266.noip.me
Reply With Quote
  #3   Spotlight this post!  
Unread 18-01-2014, 19:45
Infinite Infinite is offline
Registered User
None #1178
 
Join Date: Jan 2014
Location: U.S.
Posts: 4
Infinite is an unknown quantity at this point
Re: Netbeans cannot access java.lang

Quote:
Originally Posted by Team3266Spencer View Post
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 19-01-2014, 08:33
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Netbeans cannot access java.lang

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/...elopment-tools

Then install the WPILib FRC plugins.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #5   Spotlight this post!  
Unread 19-01-2014, 19:35
Infinite Infinite is offline
Registered User
None #1178
 
Join Date: Jan 2014
Location: U.S.
Posts: 4
Infinite is an unknown quantity at this point
Re: Netbeans cannot access java.lang

excellent, I'll try this. thanks.
Reply With Quote
  #6   Spotlight this post!  
Unread 19-01-2014, 19:43
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is offline
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 545
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: Netbeans cannot access java.lang

Quote:
Originally Posted by Infinite View Post
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.
__________________
Team 2052- KnightKrawler
Mentor and volunteer
Reply With Quote
  #7   Spotlight this post!  
Unread 20-01-2014, 01:45
Infinite Infinite is offline
Registered User
None #1178
 
Join Date: Jan 2014
Location: U.S.
Posts: 4
Infinite is an unknown quantity at this point
Re: Netbeans cannot access java.lang

Wow, that fixed it. I wasted so many hours on this problem...thanks a ton.

EDIT: This was directed to Tanis

Last edited by Infinite : 20-01-2014 at 01:46. Reason: clarification
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:05.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi