TCLUG Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG-DEVEL:110] classpaths



It might help if i actually import the packages into my program.

Erick Stohr wrote:

[java, bash shell]

Am I doing class paths right?
 First., I have some set in .bashrc in my home directory, this file
looks like this:

*snip*

#class paths

export JAVA_HOME=":/usr/jdk1.2.2/bin:"

export
CLASSPATH=":/usr/jdk1.2.2/lib/mysql_comp.jar:/usr/jdk1.2.2/lib/gnu-regexp.jar:/usr/jpda.jar:/usr/jdk1.2.2/lib/jaxp.jar:/usr/lib/netscape/java/classes/java40.jar:/usr/jdk1.2.2/lib/dt.jar:

/usr/jdk1.2.2/lib/tools.jar:/usr/jdk1.2.2/lib/servlet.jar:/usr/jdk1.2.2/lib/DB.jar:/usr/jdk1.2.2/lib/Pagelab.jar:"

*snip*

the JVM cannot seem to find classes in a program I am writing from teh
DB.jar and Pagelab.jar files.

So... I have tried using the -classpath <path> option when I compile and
it seems to make no difference.  I have no idea what is wrong. Is there
another main file for the system I need to set my paths instead? Is
there
something wrong with the currenty way (probably). Any help would be
appreciated, little simple things are tough for me for some reason.

I have read the Java docs on Sun's site numerous times and still can't
seem to get it right. I am using a bash shell.
I did read teh email today earlier about not needing the ":"'s, how do i
seperate the paths then?

Thanks,

Erick

--

--

Erick Stohr - PageLab Network, Inc.
mailto:erick@pagelab.net http://pagelab.net

Your search-to-sale global e-commerce solution!

Toll free 1-800-447-0607
Voice 612-362-9224
Fax 612-362-9227
43 Main Street SE, Suite 228
Minneapolis, Minnesota 55414

-- 

Erick Stohr - PageLab Network, Inc.
mailto:erick@pagelab.net  http://pagelab.net

Your search-to-sale global e-commerce solution!

Toll free 1-800-447-0607
Voice 612-362-9224
Fax 612-362-9227
43 Main Street SE, Suite 228
Minneapolis, Minnesota 55414