• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javac compile error

 
kumar hai
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..Please find the below error details...while compiling java file using javac i am getting the below error...


compile:
[javac] Compiling 4 source files to c:\ant\class
[javac] c:\ant\java.class\LogHelper.java:16: package commonj.sdo does not exist
[javac] import commonj.sdo.DataObject;
[javac] ^
[javac] c:\ant\java.class\LogHelper.java:106: cannot find symbol
[javac] symbol : class DataObject
[javac] location: class AMSLib.LogHelper
[javac] public String logMessage(DataObject bo1) throws Exception{
[javac] ^
[javac] 2 errors

BUILD FAILED
C:\ant\javac.xml:34: Compile failed; see the compiler error output for details.



urgent.please help to resolve this issue...


 
Zandis Murāns
Ranch Hand
Posts: 174
Java Java ME Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"package commonj.sdo does not exis"
In common cases means that jar file containing such package is not found by compiler. Please provide compiler with this jar file (either by copying it in class path or specifying via javac parameter -classpath)
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If Zandis' suggestion doesn't help you solve the problem, please post the contents of your build.xml file, and give the full path name for either the commonj.sdo.DataObject class file of the JAR containing that class file.
 
Siva Masilamani
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try placing these jar file inthe classpath

commonj-sdo-2.0.jar
rwsf-sdo-java.jar
sqldas.jar
<jdbc_driver>.jar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic