aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes newbie question- do I need to add import suncertify.db.* Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "newbie question- do I need to add import suncertify.db.*" Watch "newbie question- do I need to add import suncertify.db.*" New topic
Author

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

Tony AZ
Greenhorn

Joined: Nov 11, 2002
Posts: 1
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

Joined: Feb 05, 2001
Posts: 17260
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: newbie question- do I need to add import suncertify.db.*