Blogghete
2015-02-19 06:04 deepin
Hi TOWWTC,
please, can you tell me if you have edited /etc/profile as root by adding the following line of code?
Copy the CodeI guess you wanted to add the /opt/jdk1.8.0_31 to your path revert to your previous version .profile and enter at the end of the line export PATH = /opt/jdk1.8.0_31.
If yes, you shouldn't edit the profile in /etc. You should make changes in your home directory, to the file ".profile". Then, if you mess up, it's easier to fix, and if you ever have more than one user, it won't affect all users. Next thing is that you need to be careful with spaces for any command. Spaces are what separates parts of the command, so if you actually have a space in your path or filename, you need to either use double-quotes, or a backslash in front of the space, like this: file\ name\ with\ spaces. This is called "escaping the space".
You will probably need to boot from a live CD, either the original or a repair disk. Once booted, you can find your installation on the hard drive, change to the /etc directory and edit the file, preferably by removing your changes (assuming you have made changes) and making them correctly in your home directory.
Select recovery mode at the GRUB bootloader provided by the Deepin suite and then it will give you a menu.
Select the dpkg menu item.
Type "Yes" when it asks you if you want to continue.
This will fix some problems. You can safely ignore most of the 'errors' there.
It will say
"Finished, press enter"
press enter and then it will be in r/w mode so you can then select root prompt and edit your stuff; then reboot.
Now, to add it to your $PATH, add the following to your ~/.profile.
Copy the Codeand then log out, log back in and you should be good to go.
Regards.
please, can you tell me if you have edited /etc/profile as root by adding the following line of code?
- export PATH = /opt/my jdk 8 path/bin:$PATH
If yes, you shouldn't edit the profile in /etc. You should make changes in your home directory, to the file ".profile". Then, if you mess up, it's easier to fix, and if you ever have more than one user, it won't affect all users. Next thing is that you need to be careful with spaces for any command. Spaces are what separates parts of the command, so if you actually have a space in your path or filename, you need to either use double-quotes, or a backslash in front of the space, like this: file\ name\ with\ spaces. This is called "escaping the space".
You will probably need to boot from a live CD, either the original or a repair disk. Once booted, you can find your installation on the hard drive, change to the /etc directory and edit the file, preferably by removing your changes (assuming you have made changes) and making them correctly in your home directory.
Select recovery mode at the GRUB bootloader provided by the Deepin suite and then it will give you a menu.
Select the dpkg menu item.
Type "Yes" when it asks you if you want to continue.
This will fix some problems. You can safely ignore most of the 'errors' there.
It will say
"Finished, press enter"
press enter and then it will be in r/w mode so you can then select root prompt and edit your stuff; then reboot.
Now, to add it to your $PATH, add the following to your ~/.profile.
- PATH=/opt/jre1.8.0_31/:$PATH
Regards.
Reply Like 0 View the author