LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 09-18-2003, 01:35 AM   #1
djinniyah
LQ Newbie
 
Registered: Sep 2003
Posts: 5

Rep: Reputation: 0
Question Startup Script


Hello again...

I still can't set the JAVA_HOME. When I 'ls' the /etc in the terminal as root, the 'profile' is not a directory. There's a 'profile.d' directory though. Are they the same? I tried in bash and tcsh shell, both can't work.
Instead of unpacking in /usr/local (I did that too, I tried /etc/rc.d/init.d also.

[root@localhost /]# cd/etc/rc.d/init.d
[root@localhost init.d]# chmod +x j2sdk-1_4_1_05-linux-i586.bin
[root@localhost init.d]#./j2sdk-1_4_1_05-linux-i586.bin
[root@localhost init.d]# /etc/rc.d/init.d/j2sdk1.4.1_05/bin/java -version
java version "1.4.1_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_05-b01)
Java HotSpot(TM) Client VM (build 1.4.1_05-b01, mixed mode)

When I #which java and #which javac, it returns no java and javac.
Ok, now I set the path.

[root@localhost init.d]# PATH="$PATH:/etc/rc.d/init.d/j2sdk1.4.1_05/bin:." export PATH

i test the path i set just now, and which java and which javac, all is ok. But when I close the terminal and open a new one, it's gone! The set path command was suppose to be set in /etc/profile, but as there's no such directory, I set it in /etc/rc.d/init.d
There's no '~/.bashrc' or bash_profile thing anywhere. I did all of that in terminal. If I access through the desktop, I can find the profile and bashrc but they are normal files not directories.
Please please help me!!!

Thank you.
 
Old 09-18-2003, 04:05 AM   #2
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31
I've tried to answer this in your other post. PLEASE don't double post!

Cheers
 
Old 09-18-2003, 05:06 AM   #3
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Yeah, the least you could do is give a little feedback when someone trys to help.
 
Old 09-18-2003, 05:20 AM   #4
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31
Just for clarity; of your THREE (that I've seen as yet) posts on the same problem, I answered here, and /bin/bash answered here.
 
  


Reply



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
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 02:53 AM
How to call a script from a system startup script? jonatito Linux - Newbie 7 11-11-2005 09:40 PM
startup script rockwell_001 Linux - General 4 04-21-2005 04:22 PM
startup script ... again. Vindane Linux - Wireless Networking 2 03-04-2005 02:57 AM
Script at startup rohde Linux - Newbie 2 09-12-2004 09:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:56 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
Open Source Consulting | Domain Registration