Click here to Skip to main content
12,503,964 members (57,899 online)
Rate this:
Please Sign up or sign in to vote.
See more: Java
Unable to find packages java.lang in classpath or bootclasspath. NetBeans 7.2.1. Please help, can't google any helpfull info..
Posted 30-Jan-13 9:56am
Richard MacCutchan 30-Jan-13 17:35pm
The compiler is just telling you that you have not set the classpath to the location of your Java libraries. I don't use Netbeans so I am not sure how you do that, but I would expect it to be done automatically when you install netbeans. Use the menu to find the netbeans options and see what you can find.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

There are two probable reason :
1. Already told by Richard
2. or jdk is not installed properly. So remove it and reinstall it properly.
halabella 31-Jan-13 6:18am
Reinstalled jdk - not helped.
halabella 6-Feb-13 13:00pm
In NB version 6.9 all works.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160919.1 | Last Updated 31 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100