- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Environment Variables
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2004 01:26 AM
01-30-2004 01:26 AM
"The JAVA_HOME environment variable is not defined correctly. This environment variable is needed to run this program."
Can somebody tell me the exact way to set this? I want the variable to be JAVA_HOME=/usr/java/j2sdk1.4.1
Thanks,
Kyle
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2004 02:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2004 02:18 AM
01-30-2004 02:18 AM
Re: Environment Variables
export JAVA_HOME=/usr/java/j2sdk1.4.1
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2004 02:23 AM
01-30-2004 02:23 AM
Re: Environment Variables
JAVA_HOME=/usr/java/j2sdk1.4.1
export JAVA_HOME
Done
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2004 05:04 AM
01-30-2004 05:04 AM
Re: Environment Variables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2004 05:10 AM
01-30-2004 05:10 AM
Re: Environment Variables
When i cd to $JAVA_HOME it works fine and goes to the correct directory. I'm not sure why it's displaying that error when trying to start tomcat....?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2004 11:23 AM
01-30-2004 11:23 AM
Re: Environment Variables
If you haven't restarted Tomcat's processes, you should, because generally speaking, applications and processes won't re-read system configuration files. So if you edited /etc/profile after starting Tomcat (which it sounds like is NOT the case), the changes would not be seen.
Since it sounds like you had the definitions in place before Tomcat was started, you might try to do some debugging in the environment where Tomcat is running. For example, if you start it with startup.sh, then put some debugging into it:
echo "before start, JAVA_HOME is ${JAVA_HOME}"
That way you'll see how things stand. Of course, it may be buried more deeply in other levels (calls) of scripts.
HTH,
Mic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2004 01:42 PM
01-31-2004 01:42 PM
Re: Environment Variables
first check which shell the account for Tomcat is using (info to be found in /etc/passwd). It might be it is not sourcing the file you changed.
Alternatively either change startup.sh (maybe not ideal since you have to do so everytime you install a new Tomcat version) or write a little wrapper script that sets the variable and then calls startup.sh.
Have a nice weekend,
Martin