• 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

trying to get suncertify.db classes to compile

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No Problem, Glad I can help
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic