Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Applications
Reload this Page still in problem with setting environment var
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Applications I cant get "X" app to work... also discussion about linux programs.

Reply
 
Thread Tools Display Modes
Old 09-05-2005   #1 (permalink)
hassanLinux
Just Joined!
 
Join Date: May 2005
Posts: 44
still in problem with setting environment var

i am really frustated with this...i still couldnt set the environment variable... i need to set the PATH by my jdk;

i have tried the following code and put it at the beginning of the .bashrc file and also tried this code on the shell but yet no help.
Code:
export PATH=$PATH:/usr/java/JDK-1.5.0_04/bin/
still it tries to compile with gcj instead of taking the java command from the installation directory.

in the shell i have also tried with the setenv command by putting
Code:
setenv PATH /usr/java/JDK-1.5.0_04/bin/
setenv CLASSPATH $JMFHOME/lib/jmf.jar:.:${CLASSPATH}:
but it reports with 'command not found error'
now tell me what to do...
hassanLinux is offline   Reply With Quote
Old 09-05-2005   #2 (permalink)
Odd_Bloke
Linux User
 
Join Date: Aug 2005
Location: Peterborough, UK
Posts: 379
It sounds like you've got to a point half-way through this tutorial. Try following the remaining steps, and see if that works...
__________________
\"I am, after all,\" said Pooh, \"a bear of very little brain.\"
MY PC: Athlon XP64 3000+ on a Asus K8V-X mobo w/1GB of non-descript RAM. AGP - GeForce 2 MX400. PCI - Creative Live! 5.1 soundcard. 140 GB and 120 GB SATA WD drives.
Odd_Bloke is offline   Reply With Quote
Old 09-06-2005   #3 (permalink)
hassanLinux
Just Joined!
 
Join Date: May 2005
Posts: 44
how to set the class path

hey now i have succeeded setting environment variables. but still dont know how to set the Classpath...

can you tell? say i have a api at /root/software/jmf/jmf.jar
how can i include it into the class path?

please dont tell me to do anything into the .bashrc file. i have tried it already. it didnt work!
hassanLinux is offline   Reply With Quote
Old 09-11-2005   #4 (permalink)
Lost_scrib
Linux Newbie
 
Join Date: Sep 2005
Location: CZ
Posts: 132
OK, now try setting it within .bash_profile :P

If you want to try manually set the variable do:
VAR=$VAR:"your value"
echo $VAR

Lost_scrib is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 10:43 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0