Java variables in linux

Source: Internet
Author: User
Java variables in linux-Linux Enterprise applications-Linux server application information. For details, refer to the following section. Today, when a common user executes another STARTUP script, the error message "java variable cannot be found" is displayed.
Because after jdk is installed, the root user can find the existence of this command.
# Java-version
Java version "1.6.0 _ 17"
Java (TM) SE Runtime Environment (build 1.6.0 _ 17-b04)
Java HotSpot (TM) 64-Bit Server VM (build 14.3-b01, mixed mode)
The java command cannot be found when switching to a common user.
Then, run the which command under the root user to find the location of the java command, and then go to the path to see who the java soft connection is, to see if it is the java in/bin under your jdk installation directory
If not, you need to delete the java path and then re-establish a soft connection.
Ln-s original path target path

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.