• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

newbie question- do I need to add import suncertify.db.*

 
Tony AZ
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, all,
When trying to compile the provided classes in suncertify.db packege, I got error messages of not beting able to find classes such or such.....
Question,
Do I need to add
import suncertify.db.*;
in front of all the classes that need to invoke other classes in the package, or there is some other way to solve this.
plz help, thanks in advance.
Tony
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have your path and classpath correctly set up.
If you have your classes in a directory called c:\devexam
whereas the files are in the
c:\devexam\suncertify\db directory
then you want to be at the c:\devexam directory
giving this directory as the classpath
so you will have this command
javac -classpath c:\devexam suncertify.db.Data.java
to compile the Data class.
All the classes that they give you can be compiled, well except for the deprecated methods, but as far as classes it imports all it needs.
If you have create a class that creates instances of these classes. Either this class needs to be part of the suncertify.db package or it will have to import those files.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic