Normal user startup MyEclipse error in Linux environment

Source: Internet
Author: User

Installing MyEclipse in the/usr/local/myeclipse directory is not a problem when it is started by the root user, and the following failure occurs with a normal User:

' /usr/local/myeclipse/configuration ' is not writable.  ' -configuration ' command line option.

This means that /usr/local/myeclipse/configuration is not writable for ordinary users , and when it is possible to change/usr and all of its subdirectories into 777 permissions, it is not safe. In the back of this sentence, you can change the location of the configuration directory by configuring the config parameter. We want to have our own configuration directory when each user launches MyEclipse, so the following can be achieved with a simple script.

The script name is MyEclipse, you can configure the MyEclipse directly through the scripts, and then start MyEclipse.

#!/bin/Bashif["$USER"=="Root"]; ThenWorkpath=/root/MyEclipseElseWorkpath=/home/$USER/MyEclipsefiif[!-D"$workpath"]; Then  mkdir-P $workpathfi/usr/local/myeclipse/myeclipse-configuration $workpath

Place this myeclipse script in the/usr/local/bin directory so that any user can invoke it, and each user has its own configuration directory.

Normal user startup MyEclipse error in Linux environment

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.