Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Learning what CLASSPATH is about
Message
From
27/11/2003 00:04:18
 
 
To
All
General information
Forum:
Java
Category:
Databases
Title:
Learning what CLASSPATH is about
Miscellaneous
Thread ID:
00853953
Message ID:
00853953
Views:
51
Hi,
The good news is I got Postgres working. The bad news is took me 3 hours. The problem lies in the use of "CLASSPATH" environment variable and the fact I could not figure out how to run a simple program from the Borland IDE. I still don't know how to run a program (like hello world) that uses a single file. Borland is always expecting that I have a project and a app file that contains a "jframe". In other words a program that uses swing.

Anyway, back to the Postgres thing. I downloaded a sample java program to access Postgres. I then used a command line to compile the program. I recieved no error messages. But the program would not run because it could not find the required postgres jdbc driver. I finally found an email message (google) that suggested "export CLASSPATH=.:postgres.jar". The Postgres.jar is the driver and is in the same folder as the program. That worked. But of course that does not work for all programs. That's when I discovered that I could place the driver into the "usr/lib/java/lib/jre/lib/ext" folder. Believe me for a novice this was not easy information to find. I'm using SUSE 8.2 and that's where my runtime is located. I at first assumed that the file should go into the SDK but that does not work. It still makes sense but I could not make it work. So maybe that will help others (Leland).
John
John Fabiani
Woodland, CA
Next
Reply
Map
View

Click here to load this message in the networking platform