LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-18-2005, 10:15 AM   #1
rael_kid
Member
 
Registered: Mar 2005
Location: Holland
Distribution: Ubuntu
Posts: 37

Rep: Reputation: 15
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
 
Old 03-18-2005, 10:33 AM   #2
houdelou
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Ubuntu
Posts: 44

Rep: Reputation: 15
look for the file /etc/profile and add your line to the end of it.
 
Old 03-19-2005, 03:38 AM   #3
rael_kid
Member
 
Registered: Mar 2005
Location: Holland
Distribution: Ubuntu
Posts: 37

Original Poster
Rep: Reputation: 15
Thanks for your reply, but this doesn't do the trick...
 
Old 03-19-2005, 03:44 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,050

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
did you logout and log back in ??
 
Old 03-19-2005, 03:47 AM   #5
rael_kid
Member
 
Registered: Mar 2005
Location: Holland
Distribution: Ubuntu
Posts: 37

Original Poster
Rep: Reputation: 15
Never thought I could be so stupid, thanks!
 
Old 03-26-2005, 10:29 AM   #6
rael_kid
Member
 
Registered: Mar 2005
Location: Holland
Distribution: Ubuntu
Posts: 37

Original Poster
Rep: Reputation: 15
I've installed Ubuntu rather than Mandrake. Now this trick doens't work anymore. Any other ideas?
 
Old 03-26-2005, 02:47 PM   #7
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
do the same thing but in your ~/.bashrc or ~/.bash_profile
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
creating partitions simcox1 Mandriva 1 04-22-2005 06:49 AM
Creating Live CD gsrikanth Fedora 11 02-03-2005 01:44 PM
LVM Bootscript Problems kvanblijderveen Mandriva 0 07-07-2004 07:04 AM
Creating A new file rodbuh Programming 3 05-12-2004 09:33 AM
creating X.25 network how? mchitrakar Linux - Networking 0 05-12-2004 04:37 AM


All times are GMT -5. The time now is 05:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration