Jump to content

setenv?


Recommended Posts

I've to write the settings below.....but I don't understand where to put them..

they are for JMF ( java API ) but I think that the right place should be .bashrc .

Unfortunatly it doesn't work ! Many thanks :wall:

 

 

setenv JMFHOME /home/lando/JMF-2.1.1e

 

setenv CLASSPATH $JMFHOME/lib/jmf.jar:.:${CLASSPATH}

 

setenv LD_LIBRARY_PATH $JMFHOME/lib:${LD_LIBRARY_PATH}

 

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

Hi Lando,

 

you wrote:

 

I've to write the settings below.....but I don't understand where to put them..

they are for JMF ( java API ) but I think that the right place should be .bashrc .

Unfortunatly it doesn't work ! Many thanks :wall:

 

 

setenv JMFHOME /home/lando/JMF-2.1.1e

 

setenv CLASSPATH $JMFHOME/lib/jmf.jar:.:${CLASSPATH}

 

setenv LD_LIBRARY_PATH $JMFHOME/lib:${LD_LIBRARY_PATH}

 

The syntax you presented above reminds me of tcsh. Bash is different in treating variables. Please try the following pattern:

 

#$> JMFHOME=/home/lando/JMF-2.1.1e

...

 

You can check by

 

#$> echo $JMFHOME

 

HTH,

 

scoonma

Link to comment
Share on other sites

You can also use the EXPORT function

 

export JMFHOME /home/lando/JMF-2.1.1e

 

etc.

 

It works only if I use the form >>>

JMFHOME /home/lando/JMF-2.1.1e

export $JMFHOME

Then echo are OK >>>>>

[lando@localhost ~]$ echo $JMFHOME

/home/lando/JMF-2.1.1e

 

[lando@localhost ~]$ echo $CLASSPATH

/home/lando/JMF-2.1.1e/lib/jmf.jar:.::/home/lando/j2sdk1.4.2_10:/home/lando/j2sdk1.4.2_10

 

[lando@localhost ~]$ echo $LD_LIBRARY_PATH

/home/lando/JMF-2.1.1e/lib:

 

 

Though when I open a terminal all of the bash variables are shown on the screen and

this warning....-

bash: export: `/home/lando/JMF-2.1.1e/lib/jmf.jar:.::/home/lando/j2sdk1.4.2_10:/home/lando/j2sdk1.4.2_10': not a valid identifier

bash: export: `/home/lando/JMF-2.1.1e/lib:': not a valid identifier

 

:mellow:

Link to comment
Share on other sites

Though when I open a terminal all of the bash variables are shown on the screen and

this warning....-

bash: export: `/home/lando/JMF-2.1.1e/lib/jmf.jar:.::/home/lando/j2sdk1.4.2_10:/home/lando/j2sdk1.4.2_10': not a valid identifier

bash: export: `/home/lando/JMF-2.1.1e/lib:': not a valid identifier

 

:mellow:

...jmf.jar:.::/home... You only need one : between the library paths so the correct is jmf.jar:/home

Link to comment
Share on other sites

The instructions suggested this entry ,that gave the last problem...>>>

CLASSPATH=$JMFHOME/lib/jmf.jar:.:${CLASSPATH}

export $CLASSPATH

 

I've changed them as below and it work >>>>>

 

 

CLASSPATH=$JMFHOME/lib/jmf.jar:.

export CLASSPATH

 

:thumbs:

Edited by Lando
Link to comment
Share on other sites

It will work but i think it is not a good idea to install something in your home directory.

I installed JMF and the Java MP3 plugin yesterday in /usr/java, where also the Java Runtime Environment is installed. It works just the same but it is more safe.

 

To set the environment variables i created a file jmf.sh and placed it in directory /etc/profile.d.

The commands i put in this fale are:

export JMFHOME=/usr/java/JMF-2.1.1e

export CLASSPATH=$JMFHOME/lib/jmf.jar:.:${CLASSPATH}

export LD_LIBRARY_PATH=$JMFHOME/lib:${LD_LIBRARY_PATH}

 

In this way JMF is also available to ALL users on the PC.

 

Regards,

Luc

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...