Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 4th, 2001, 06:05 AM
Luis Martínez Luis Martínez is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Madrid, Spain
Posts: 0 Luis Martínez User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Trying to start tomcat at startup, cannot do it because I have manually write $ JAVA_HOME=/usr/local/jdk; export JAVA_HOME in a console window everytime I restart the machine.
Linked tomcat.sh to rc.d and rc3.d, and renamed it as S96tomcat, but at startup, it cannot "see" java interpreter.
How can I tell bash where to look for /usr/java/jdk. I did it in /etc/profile, /root/.bash_profile, but cannot see the path until I write JAVA_HOME everytime.

Thanks,

Reply With Quote
  #2  
Old January 5th, 2003, 11:14 PM
cliffyman cliffyman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Washington DC, USA
Posts: 156 cliffyman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 7 sec
Reputation Power: 8
Send a message via AIM to cliffyman
I'm having the same problem myself - set JAVA_HOME and CATALINA_HOME in the same files and Tomcat doesn't want to recognize them when I run the bin/startup.sh script. Can anyone help with this simple problem? I'm stumped!

Reply With Quote
  #3  
Old January 7th, 2003, 02:57 AM
rayz rayz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: europe
Posts: 255 rayz User rank is Lance Corporal (50 - 100 Reputation Level)rayz User rank is Lance Corporal (50 - 100 Reputation Level)rayz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 17 h 20 m 21 sec
Reputation Power: 7
put this into ur /home/user/.bashrc or /home/user/.profile
export JAVA_HOME='/path/to/java'
then
'source ~/.bashrc'
try
'echo $JAVA_HOME'
to test if it is available

java is used by users but normally not by root
-on windows i dont know-

Reply With Quote
  #4  
Old January 7th, 2003, 07:13 AM
cliffyman cliffyman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Washington DC, USA
Posts: 156 cliffyman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 7 sec
Reputation Power: 8
Send a message via AIM to cliffyman
That appeared to be the problem - I wasn't exporting the variables in my profile! Thanks a bunch.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Java_home


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway