A small trap encountered when using Ubuntu12.04

Source: Internet
Author: User
I recently deployed the android development environment on ubuntu12.04, except for a few problems when installing jdk7.0, when I set variables such as JAVA_HOMEJRE_HOMEPATH and tried to run eclipse, I encountered a problem that made me puzzled. I ran it from shell. /eclipse...
I recently deployed the android development environment on ubuntu12.04, except for a few problems when installing jdk7.0, when I tried to run eclipse after setting variables such as JAVA_HOME JRE_HOME PATH, there was a problem that made me puzzled. I ran it from shell. /eclipse, everything is normal, but when I click eclipse to run, the prompt is as follows:
After www.2cto.com is restarted, the problem persists. I guess the environment variable does not take effect, so I opened shell echo $ PATH and the output result was normal: www.2cto.com, so I used another method to create a run. sh #! /Bin/bashecho $ PATH a.txtafter saving, double-click operation, open a.txt www.2cto.com in the output a.txt, cannot find the java path I set, and finally find the problem, the variable does not take effect in the graphic interface, I tried again at/etc/profile and ~ /. Set the variable in profile, which takes effect in both cases ~ /. Bashrc does not take effect. the first time you use the graphical interface, you will find a small trap. I hope you will pay attention to it when using ubuntu12.04.

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.