LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-04-2003, 06:07 PM   #1
digitized_funk
Member
 
Registered: Sep 2002
Location: Australia
Distribution: Suse 8.0
Posts: 50

Rep: Reputation: 15
suse 8.0 & global classpath


I am trying to set my java classpath amongst a few other variables, I would like to set these globally for all users. I read to do it in /etc/profile but when I go to that file it has this:
-----------------------------------------------
# /etc/profile for SuSE Linux
#
# PLEASE DO NOT CHANGE /etc/profile. There are chances that your changes
# will be lost during system upgrades. Instead use /etc/profile.local for
# your local settings, favourite global aliases, VISUAL and EDITOR
# variables, etc ...
----------------------------------------------
but there is no file profile.local in the /etc/ directory so I made one and just added the line:

export $CLASSPATH=.:/usr/local/junit3.8.1/junit.jar:$JAVA_HOME/lib/tools.jar

restarted and it didn't work. Am I supposed to add some other script code somewhere, maybe at the start of the profile.local file? Is there a better way to globally set these variables?

thanks a lot

Rich.
 
Old 04-04-2003, 06:16 PM   #2
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
if you do an export CLASSPATH= it won't survice a reboot, better add that line to ~/bash_profile or ~/bashrc
 
Old 04-04-2003, 06:28 PM   #3
digitized_funk
Member
 
Registered: Sep 2002
Location: Australia
Distribution: Suse 8.0
Posts: 50

Original Poster
Rep: Reputation: 15
won't that just set it for 1 user?
 
Old 04-07-2003, 09:20 AM   #4
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
yes, if you want it system-wide, add the line to /etc/profile
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
setenv CLASSPATH ? mickeyboa Fedora 1 07-24-2005 04:26 PM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
DISCUSSION: Edit the Global KDE Menu Items from a console for SUSE Linux cdabb LinuxAnswers Discussion 0 02-09-2005 01:17 PM
Classpath Hiper1 Linux - Software 3 11-25-2004 09:18 AM
Swing 1.1 or 1.2 and CLASSPATH jboo Linux - Software 0 02-07-2003 11:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:13 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