This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes classPath !!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "classPath !!!" Watch "classPath !!!" New topic
Author

classPath !!!

Manoj Singh
Ranch Hand

Joined: Aug 10, 2000
Posts: 41
Hi guys !
My application comprises of a conenction pooling class which reads the environment properties(Like driver url etc) from a properties file and an applet which uses this Connetion Pooling class for getting database connection. I am trying to run this in VAJ but it says that check if the properties file in the class path. HOw can I do it ???
Please help !!!
ThanX
Manoj
I know that this thread belongs to some other forum...but since I want teh answer asap I had to put it here(i feel this forum is accessed more frequently then the one which relates to IDE's)

Sun Certified Java 2 Programmer<BR>" Only those who will risk going too far can possibly find out how far one can go "
Terence Doyle
Ranch Hand

Joined: May 30, 2001
Posts: 328
HI,
On UNIX/LINUX type echo $CLASSPATH at the command line and it will print out all the files and directories that are configured to be included.
To edit the CLASSPATH you will have to edit a profile - but where to do it and if you have permission will depend on your setup.

On Windows open the autoexec.bat file and you will see lines like this:
set CLASSPATH=c:\dirname\subdirname;C:\anotherdir\anothersubdir;
other lines below the first one might set new values and then include the previous definition like this:
CLASSPATH=C:\newdir\newsubdir;%CLASSPATH%;
Hope that helps,
Terry
------------------
Terry Doyle
Sun Certified Programmer for Java 2 Platform


Raising Flares debut album 'Ignition' out now

http://www.raisingflares.com

Terry Doyle <br />SCPJ 1.4 , SCWCD , SCMAD(Beta)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: classPath !!!
 
Similar Threads
Connection Pooling in Hibernate
Spring and DAO
Class Path in VAJ !
Populating the value into dropdown box from .propertied file
properties file location