This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

classPath !!!  RSS feed

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!