Home
Find the answer to your question
I am getting the build error when using execute Java SDK code generate script :
ant -buildfile sdkCodeGen.xml.
What is the cause and how to correct it? I am using JDK 1.5
compileSdkCore:
[javac] Compiling 817 source files to C:\ebaysdk\source\core\classes
[javac] Fatal Error: Unable to find package java.lang in classpath or bootclasspath
Detailed Description
CAUSE
The possible cause for this error is:
-- The java.lang package is not found in the CLASSPATH environment variable. The java.lang package is bundled in rt.jar in the stardard JDK ( java.sun.com version) while it is defined in other jar in some other JDK.
RESOLUTION
The workaround for this issue is to download the attached rt.jar.zip file, unzip it and add the rt.jar to the director as below:
${JDK_HOME}/jre/lib/rt.jar