Lando Posted August 15, 2006 Report Share Posted August 15, 2006 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 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] Quote Link to comment Share on other sites More sharing options...
scoonma Posted August 15, 2006 Report Share Posted August 15, 2006 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 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 Quote Link to comment Share on other sites More sharing options...
Gowator Posted August 15, 2006 Report Share Posted August 15, 2006 You can also use the EXPORT function export JMFHOME /home/lando/JMF-2.1.1e etc. Quote Link to comment Share on other sites More sharing options...
Lando Posted August 15, 2006 Author Report Share Posted August 15, 2006 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: Quote Link to comment Share on other sites More sharing options...
dexter11 Posted August 15, 2006 Report Share Posted August 15, 2006 Though when I open a terminal all of the bash variables are shown on the screen andthis 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 Quote Link to comment Share on other sites More sharing options...
Lando Posted August 15, 2006 Author Report Share Posted August 15, 2006 (edited) 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 Edited August 15, 2006 by Lando Quote Link to comment Share on other sites More sharing options...
hovel Posted August 17, 2006 Report Share Posted August 17, 2006 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.