LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-17-2005, 11:57 PM   #1
shizzles
LQ Newbie
 
Registered: Jun 2005
Location: Chicago
Distribution: Ubuntu Server & Debian 6
Posts: 23

Rep: Reputation: 1
setting path for app n libraries install


Just wanted to know how to configure the "set" value. For example the set path for java is /bin/lib/java, how would I be able to change that to say /usr/local/java. . . . .
 
Old 07-18-2005, 08:10 AM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
If I understand you correctly, I think you want to use a different copy of java (or whatever) than the one that runs when you type java. The way to do this is using the PATH variable. The way it works is that when you run a command, linux will search the PATH variable, looking in each of the specified directories for an executable file matching the name you typed.

So, if you want to use /usr/local/java instead of /bin/lib/java, then make sure that /usr/local appears in the path before /bin/lib.
 
Old 07-18-2005, 11:34 AM   #3
shizzles
LQ Newbie
 
Registered: Jun 2005
Location: Chicago
Distribution: Ubuntu Server & Debian 6
Posts: 23

Original Poster
Rep: Reputation: 1
Basically the issue I'm having is that I'm trying to install Open-Xchange-0.8. . . . it searches for mail.jar, activation.jar . . . . in the /bin/lib/javac directories. So how do I set it so it checks the proper directory that java was installed in. Is this something I have to configure with Open-Xchange or is this something to do with PATH variable as you mentioned above. Thanx
 
Old 07-18-2005, 12:26 PM   #4
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Ah right, I understand now. It's similar to what my earlier post said, but it's the CLASSPATH variable you need to adjust (the CLASSPATH variable controls where java looks for it's libraries & class files). You need to adjust the CLASSPATH so that it searches the correct directories. You can use the command

Code:
echo $CLASSPATH
to view what it's currently set to. To change it, use the command

Code:
export CLASSPATH=/usr/local/lib
or whatever the correct directories are; if there is more than one directory, separate them with a colon. (eg /usr/local/lib:/usr/lib).

If you want this setting to persist, you'll need to put the export statement into your shell init file (probably .bashrc).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help setting right environment variables:configure scripts can't find libraries. z-vet Linux - Newbie 4 08-16-2004 05:10 PM
Setting up shortcut to app on desktop aikempshall Slackware 3 06-01-2004 02:46 PM
Installing an App on Linux - wrong path? Rory in Toronto Linux - Newbie 6 03-30-2004 11:15 AM
app.path in linux? mvendramini Programming 10 12-02-2003 01:13 PM
New app install, or, I've d/l'd the app, now what? Dani Linux - Newbie 4 01-06-2002 08:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration