• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Javac compile error

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...


 
Ranch Hand
Posts: 174
Java ME Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic