Linux / UNIX Tech Support Forum
This is a discussion on How can I set Path in bash shell within the Shell scripting forums, part of the Development/Scripting category; hi, I've installed JDK in Linux. As I'm a beginner to Linux, I need to how can I set path ...
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
hi,
I've installed JDK in Linux. As I'm a beginner to Linux, I need to how can I set path in bash shell so that all users can run java. |
| Sponsored Links | ||
|
|
|
||||
|
Use export command as follows at command prompt:
Code:
export PATH=$PATH:/usr/lib/j2sdk1.4-sun/bin You can also add variable JAVA_HOME Code:
export JAVA_HOME=/usr/lib/j2sdk1.4-sun
__________________
Vivek Gite Linux Evangelist |
|
|||
|
I made this little script file that will change your path. it will add or remove a directory from your path. it is pathchanger. Here is a link
icecoolcorey.net |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bash not working! | Mwalimugini | Getting started tutorials | 4 | 24-03-2008 09:52 PM |
| split files by specifying a string (bash shell) | vikas027 | Shell scripting | 4 | 01-11-2007 04:22 PM |
| -bash: /bin/ps: Cannot allocate memory | kasimani | Linux software | 1 | 12-10-2007 09:00 PM |
| SCP with a bash shell password linux and unix servers | jerry | Networking, Firewalls and Security | 1 | 09-06-2007 05:53 PM |
| linux setting system-wide path | Linux software | 1 | 28-01-2006 11:19 AM | |