LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Creating bootscript (https://www.linuxquestions.org/questions/linux-newbie-8/creating-bootscript-303167/)

rael_kid 03-18-2005 09:15 AM

Creating bootscript
 
Hey all!
I've just installed Java on my computer, because I have to do some programming. But I want to compile and run my programs via the terminal, using:

javac bla.java
and
java bla.

But what I found out that everytime I close and re-open my terminal I have to do this:

export PATH=/usr/java/jdk1.5.0_01/bin:$PATH

and I don't want that. Can anyone help me write a bootscript that does this for me?

Thanks in advance,

Lex

houdelou 03-18-2005 09:33 AM

look for the file /etc/profile and add your line to the end of it.

rael_kid 03-19-2005 02:38 AM

Thanks for your reply, but this doesn't do the trick...

syg00 03-19-2005 02:44 AM

did you logout and log back in ??

rael_kid 03-19-2005 02:47 AM

Never thought I could be so stupid, thanks!

rael_kid 03-26-2005 09:29 AM

I've installed Ubuntu rather than Mandrake. Now this trick doens't work anymore. Any other ideas?

Oliv' 03-26-2005 01:47 PM

do the same thing but in your ~/.bashrc or ~/.bash_profile


All times are GMT -5. The time now is 01:59 PM.