problem in set the $PATH and $CLASSPATH in my .bashrc
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
problem in set the $PATH and $CLASSPATH in my .bashrc
Hi, I'm trying to communicate my j2eesdk -not openjdk- with mysql through mysql-connector-java, so I have to setup an specific data in my $PATH and $CLASSPATH vars in .bashrc, here it is:
after reboot my system, checking these vars, I've got this:
Code:
tamayo@gxa16b14:~$ $CLASSPATH
bash: /niit/j2eesas/lib/j2ee.jar:/niit/j2eesas/jdk/jre/lib/ext/mysql-connector-java-5.1.7-bin.jar: file or directory doesn't exist
I know that the file mysql-connector-java-5.1.7-bin.jar is in the correct directory -the directory that is written in the CLASSPATH var; but I don't understand why it didn't find, and obviously testing this config from within a JAVA program I got the same: ClassDefNotFound
My question is:
what am I doing wrong in setting my $CLASSPATH var? I have to point to mysql-connec-java.jar to communicate mysql and java and the correct setup of the CLASSPATH is very important. any suggestions are welcome
jar files aren't really folders, they are archives
if Bash supported extracting files from archives on the fly without explicit decompressing, that would be a nice feat, but as you can see, it doesn't
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.