Ant : Unable to find package java.lang in classpath or bootclasspath
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   tj_lee
Posted On:   Wednesday, October 25, 2006 06:53 AM

Why do i keep on getting this error? I've set JAVA_HOME = C:Program FilesJavajdk1.5.0_09 ANT_HOME = C:ant CLASSPATH is blank at the moment Where did I go wrong? please help me. It's driving me nuts. [javac] C:jxme-2.1.3-binproxylessprotosrc etjxtautilWatchedStrea m.java [javac] Fatal Error: Unable to find package java.lang in classpath or bootcl asspath BUILD FAILED C:jxme-2.1.3-binproxylessproto uild.xml:82: Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:933) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757) at org.apache.too   More>>

Why do i keep on getting this error?
I've set
JAVA_HOME = C:Program FilesJavajdk1.5.0_09
ANT_HOME = C:ant
CLASSPATH is blank at the moment

Where did I go wrong? please help me. It's driving me nuts.


[javac] C:jxme-2.1.3-binproxylessprotosrc
etjxtautilWatchedStrea
m.java
[javac] Fatal Error: Unable to find package java.lang in classpath or bootcl
asspath

BUILD FAILED
C:jxme-2.1.3-binproxylessproto uild.xml:82: Compile failed; see the compiler
error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:933)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Total time: 4 seconds

   <<Less

Re: Ant : Unable to find package java.lang in classpath or bootclasspath

Posted By:   Jani_Kaarela  
Posted On:   Thursday, October 26, 2006 03:49 AM


Try running java -version to see that your JDK installation is working ok. Also, your JAVA_HOME has a space in the path, this could cause problems - which you would already know, if you had read the f**king manual, more specifically the page Platform Issues.



Also, you should always provide the version of the program (in this case, Ant) you're running, and the OS you're running it on!

About | Sitemap | Contact