Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Learning what CLASSPATH is about
Message
 
To
27/11/2003 00:04:18
General information
Forum:
Java
Category:
Databases
Miscellaneous
Thread ID:
00853953
Message ID:
00854067
Views:
25
Hi John,

Yes, one of the time consuming task when using java is to get env
paths setup correctly. Also, the class path may need to be provided
when running some apps. Here is the command I used in a desktop
launcher, so I could click on the Hello World icon on my desktop
to run the Hello World app.
java -classpath /home/leland/jbproject/HelloWorld/classes helloworld.HelloWorldClass
Another problem I had was that JBuilder insisted on installing its
JSK jdk1.4, which I directed to my home directory. I'm evaluating
JBuilder completely out of my home directory, along with several
other things, so when I'm done I can easily find everything to
cleanup.

Anyways, I had already download the Sun J2sdk1.4.2 which is one or
two versions ahead of the JBuilder j2sdk1.4.

After fooling around with paths for awhile, I was able to run
JBuilder using its sdk from the IDE, but I use the Sun version of
j2sdk1.4.2 to run everything outside the IDE. Here are my path
statements per /home/leland/.bash_profile, which sets my environment
paths each time I log in as leland:
# User specific environment and startup programs
                                                                                                      
PATH=/komodo_personal:/j2sdk_nb/j2sdk1.4.2/bin:$PATH:$HOME/bin
                                                                                                      
####PATH=$HOME/JBuilder9/jdk1.4/bin:$PATH.  Uncomment if needed
                                                                                                      
export JAVA_HOME=/j2sdk_nb/j2sdk1.4.2
                                                                                                      
export JDK_HOME=/j2sdk_nb/j2sdk1.4.2
                                                                                                      
export CLASSPATH=/j2sdk_nb/j2sdk1.4.2/lib/tools.jar:/j2sdk_nb/j2sdk1.4.2/jre/lib/rt.jar
                                                                                                      
export PATH
                                                                                                      
unset USERNAME
The postgres JDBC driver is in the postgres directory as a standard
part of installing postgres. I copied the driver to my j2sdk1.4.2
folder where it could be found withing the env paths. I'm not sure
exactly which postgres directory the JDBC driver resides or to which
j2sdk1.4.2 folder it was copied. <bg>.


I think java will become much easier as I learn where everything is
and what everything does, which is not unlike what was required to
become productive in VFP.

Regards,



LelandJ
Leland F. Jackson, CPA
Software - Master (TM)
smvfp@mail.smvfp.com
Software Master TM
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform