openSUSE Forums > Archives > SF Archives > ARCHIVES - Software » Setting Envirement Variables?

Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Software
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Software Questions about use, installation, or configuration of software running on SUSE Linux

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-Oct-2006, 14:27
micke_b
Guest
 
Posts: n/a
Default

Hi, Im trying to install the JMF, but I have to set classpath etc ...The docs at javas homepage says that there should be a command called "setenv" but I haven't got that one??

How do I set enviroment variables in linux?


/Micke
  #2 (permalink)  
Old 02-Oct-2006, 14:50
verxa
Guest
 
Posts: n/a
Default

Quote:
Hi, Im trying to install the JMF, but I have to set classpath etc ...The docs at javas homepage says that there should be a command called "setenv" but I haven't got that one??

How do I set enviroment variables in linux?
/Micke
[/b]
If you run zsh, say

export VAR=/my/path

If you run bash, tcsh or similar, say

setenv VAR /my/path


You can check the result by saying

echo $VAR

or

export

  #3 (permalink)  
Old 02-Oct-2006, 15:16
EclipseAgent
Guest
 
Posts: n/a
Default

And since variables are single session, you will want to add it to ~/.profile if you want it to be a global change
  #4 (permalink)  
Old 02-Oct-2006, 15:30
verxa
Guest
 
Posts: n/a
Default

Quote:
And since variables are single session, you will want to add it to ~/.profile if you want it to be a global change
[/b]
That's for one user only.

For system-wide permanent setting, the setting of environment variables shall be added to /etc/profile.local
  #5 (permalink)  
Old 02-Oct-2006, 15:48
EclipseAgent
Guest
 
Posts: n/a
Default

Quote:
That's for one user only.

For system-wide permanent setting, the setting of environment variables shall be added to /etc/profile.local
[/b]
Yes, you are right.. sorry what I ment for "Global" was Globally to ~ (Or currently setup user).
And verxa is correct about the location for all users env.
  #6 (permalink)  
Old 02-Oct-2006, 15:53
micke_b
Guest
 
Posts: n/a
Default

ok, tanks for the info, so I added this in my .profile:

export JMFHOME=/home/micke/JMF-2.1.1e
export CLASSPATH=$JMFHOME/lib/jmf.jar:.:${CLASSPATH}
export LD_LIBRARY_PATH=$JMFHOME/lib:${LD_LIBRARY_PATH}


but JMF still dont work??

suns site says this:

http://java.sun.com/products/java-media/jm...etup-linux.html


I tryed the applet an it says no jmf, I dont get why?
  #7 (permalink)  
Old 02-Oct-2006, 16:06
verxa
Guest
 
Posts: n/a
Default

Quote:
ok, tanks for the info, so I added this in my .profile:

export JMFHOME=/home/micke/JMF-2.1.1e
export CLASSPATH=$JMFHOME/lib/jmf.jar:.:${CLASSPATH}
export LD_LIBRARY_PATH=$JMFHOME/lib:${LD_LIBRARY_PATH}
but JMF still dont work??

suns site says this:

http://java.sun.com/products/java-media/jm...etup-linux.html
I tryed the applet an it says no jmf, I dont get why?
[/b]
It looks like you have set the variables wrong.

What shell are you running? Have you checked the variables, possibly after rebooting?

  #8 (permalink)  
Old 03-Oct-2006, 03:47
micke_b
Guest
 
Posts: n/a
Default

Quote:
It looks like you have set the variables wrong.

What shell are you running? Have you checked the variables, possibly after rebooting?
[/b]

gonome.

Quote:
It looks like you have set the variables wrong.

What shell are you running? Have you checked the variables, possibly after rebooting?
[/b]

gonome, or thats not my shell right? hmm Im a totally noob. Ive installed suse 10.1 pretty "standard". just onen a terminal when I set the vars.
  #9 (permalink)  
Old 03-Oct-2006, 12:16
micke_b
Guest
 
Posts: n/a
Default

when I write "echo $JMFHOME" I get the correct path, but not when I write "echo JMFHOME"???
  #10 (permalink)  
Old 03-Oct-2006, 12:58
verxa
Guest
 
Posts: n/a
Default

Quote:
when I write "echo $JMFHOME" I get the correct path, but not when I write "echo JMFHOME"???
[/b]
If you got correct answer with

echo $JMFHOME

and with other

echo $MY_VARIABLES

then you have set the environment variables correctly.
"echo JMFHOME" is a wrong command.

gonome or gnome is not a shell; it is window manager - a higher level application. To find out your shell, look in Yast, Security and users, User management, Edit, Detail, Login shell. There you will see something like /usr/bin/zsh. Hence your shell will be zsh. Another way, which sometimes works, is to issue a wrong command from consloe, and get a responce that looks like

bash: nonocommk: command not found

Hence your shell would be bash.

Sorry I cannot help with JMF. If you get an error, post the error here, maybe somebody knowledgeable can say something. Essentialy: did you manage to install and it does not function; or you couldn't install?

 

Bookmarks

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 On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2