aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes trying to get  suncertify.db classes to compile 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 "trying to get  suncertify.db classes to compile" Watch "trying to get  suncertify.db classes to compile" New topic
Author

trying to get suncertify.db classes to compile

Randy Valadez
Greenhorn

Joined: Feb 08, 2001
Posts: 21
getting the java files to compile in suncertify.db package
Question Regarding FBN I have attempted to compile all
classess they cant find classes but when I remove the
package statements and use default package they
compile find.. How can I keep the package statements
entact and get these files to compile in one package
suncertify.db
Thanks in advanced
Randy
Douglas Kent
Ranch Hand

Joined: Oct 06, 2000
Posts: 171
Make sure you have your suncertify.db classes in a directory path named suncertify/db. Use -classpath (current dir) when u compile.
Good luck.
Rudy Yeung
Ranch Hand

Joined: Dec 27, 2000
Posts: 183
I can compile without providing the -classpath option, but I need to specify the current path i.e. . in the classpath of the config.sys under window environment.
Randy Valadez
Greenhorn

Joined: Feb 08, 2001
Posts: 21
I am still having problems
I tryed this echo <%classpath%> it responds access denied my own network.
heres my class path
SET PATH=%PATH%;%JAVAHOME%\BIN
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK1.2.2\BIN;C:\scjd;
SET CLASSPATH=.;C:\scjd;C:\examples\network;C:\rmiserver;C:\advancedjava;C:\;C:\jdk1.2.2\lib\tools.jar,%CLASSPATH%
My path to the file is C:\scjd\starting\suncertify\db
Thanks in Advance Randy
srilatha malip
Greenhorn

Joined: Feb 08, 2001
Posts: 21
It should be c:\scjd\starting
not c:\scjd\starting\suncertify\db
Try this.
Randy Valadez
Greenhorn

Joined: Feb 08, 2001
Posts: 21
Thanks very much srilatha that fixed the problem.
have a nice day randy
srilatha malip
Greenhorn

Joined: Feb 08, 2001
Posts: 21
No Problem, Glad I can help
jeff bay
Greenhorn

Joined: Jul 18, 2001
Posts: 2
Argh, I can't get this to work. I'm tried everything. I can get javac to run correctly, but I can't get java to run my program without throwing a NoClassDefFoundError. I'm not using the ".java" extension, and I've tried using the -classpath option for all sorts of directories, most notably the one right above the suncertify directory.
What is going on? Why does javac work but java not on the same object and the same -classpath option?
Vladan Radovanovic
Ranch Hand

Joined: Mar 20, 2000
Posts: 216
Because You are using packages. Remmember that if you have package statement on the top, then the full class name is...PackageName.ClassName
Therefore in this case the full name of the class is suncertify.db.ClassName, so you type in java suncertify.db.ClassName and it will work. Remmember to do it from the directory that contains suncertify directory.
Vladan
jeff bay
Greenhorn

Joined: Jul 18, 2001
Posts: 2
Originally posted by Vladan Radovanovic:
Because You are using packages. Remmember that if you have [b]package statement on the top, then the full class name is...PackageName.ClassName
Therefore in this case the full name of the class is suncertify.db.ClassName, so you type in java suncertify.db.ClassName and it will work. Remmember to do it from the directory that contains suncertify directory.
Vladan[/B]


Can I kiss you? That was the ticket exactly. Wow... that was supremely frustrating. Programming, 10 minutes. Stuck on stupid thing, 6 hours.

Brad Manning
Greenhorn

Joined: Jun 01, 2001
Posts: 6
Thanks guys (Vladen and Jeff), i had the exact same problem and the exact same frustrations. i thought i had tried everything, but i guess not.
Thanks again
Brad
 
Consider Paul's rocket mass heater.
 
subject: trying to get suncertify.db classes to compile