且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

NetBeans IDE 7.2.1无法访问java.lang致命错误:无法在类路径或bootclasspath中查找包java.lang

更新时间:2023-11-18 23:18:52

我刚刚发现了什么问题是


  1. 我将此路径更新为正确的路径 sdk.dir = E:\\\项目文件 local.properties 中的\\ANDROID\\\Eclipse371\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ b $ b

  2. 我更新了 project.properties 文件#Project target.target = android-8 ,目标8我有7之前显然不支持这个版本的SDK。


我成功构建我的项目:)


I need help with android project inside NetBeans. I Just opened project which is created in NetBeans and I have some issues with "cannot access java.lang Fatal Error: Unable to find package java.lang in classpath or bootclasspath" This is sample of one my file which have issues:

package Helpers;
import PreglednikLogika.Clanak;
import android.content.Context;

The first line package Helpers; is underlined and produce "cannot access java.lang Fatal Error: Unable to find package java.lang in classpath or bootclasspath"

I am new with netbeans and I tried some fixes but not success. Can somebody help me ? I think this is adding reference library or something like that issue... but not sure.

I just found what the problem was.

  1. I updated this path to my correct path sdk.dir=E:\\ANDROID\\Eclipse371\\android-sdk in project file local.properties.

  2. I updated project.properties file # Project target.target=android-8, to target 8 I had 7 before that obviously does not supported in this version of SDK.

and I successfully build my project :)