Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

trying to get suncertify.db classes to compile

 
Randy Valadez
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should be c:\scjd\starting
not c:\scjd\starting\suncertify\db
Try this.
 
Randy Valadez
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks very much srilatha that fixed the problem.
have a nice day randy
 
srilatha malip
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No Problem, Glad I can help
 
jeff bay
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic