My Linux crashes-general Linux technology-Linux technology and application information. The following is a detailed description. Eclipse under my Fedora 7 is always inexplicably exited. Later I found that the jdk version may be too low (1.5), So I downloaded the 1.7 version, decompress the package and install it in usr/local/jdk1.7.0. After installation, configure the java environment and modify/etc/profile.
JAVA_HOME =/usr/local/jdk1.7.0/
PATH = $ JAVA_HOME/bin: $ PATH
CLASSPATH = $ JAVA_HOME/lib/tools. jar: $ JAVA_HOME/lib/dt. jar
Export JAVA_HOME, PATH, CLASSPATH
Then modify/root/. bashrc
Set JAVA_HOME =/usr/local/jdk1.7.0/
Export JAVA_HOME
Set PATH = $ JAVA_HOME/bin: $ PATH
Export PATH
Set CLASSPATH = $ JAVA_HOME/lib/tools. jar: $ JAVA_HOME/lib/dt. jar
Export CLASSPATH
After the cancellation, I found that it was unsuccessful and I had a hard time tossing it again ~ /. Bashrc added the content, and restarted again to enter Xwindow. There was nothing on the screen. There was only a strange shell window, and many commands did not recognize it. It was not useful to enter the text mode, it is estimated that an error occurred while reading the configuration file of bash shell and shell interaction could not be performed correctly. The error message is as follows:
Sh:/usr/local/jdk1.7.0/bin: is a directory
Sh:/usr/local/jdk1.7.0/lib/dt. jar: Permission denied
Sh: export: 'java _ HOME, PATH, CLASSPATH ': not a valid identifier
Then, except for the cd command, even the ls command cannot be used. I want to change the profile back,
Dear heroes, how can I help you? Thank you ~!!!!
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