Install Eclipse in Linux

zhaozj2021-02-16  54

Install the Eclipse in the / OPT directory, if there is no unzip, this directory is automatically established

Unzip -d / opt Eclipse-sdk-2.1.1-linux-gtk.zip After decompression, you will solve the eclipse this directory, if we have different versions of Eclipse installed on the same machine unless you are installed in different directories, otherwise Will override the previous version so unfaming to / opt / eclipse In order to let each Linux user can perform this Eclipse we can write a script # document name: Eclipse.sh # executation: Eclipse2.1 # beginexport java_home = / usr / Java / J2SDK1.4.1_05EXPORT CLASSPATH = /usR/JAVA/J2SDK1.4.1_05/lib/opt/eclipse//eclipse -vm /usr/java/j2sdk1.4.1_05/bin/java -data ~ / Workspace & # End- The VM parameter is used to specify which Java to execute the Eclipse-Data parameter to tell the Eclipse to tell the project stored in that directory to specify the user user home directory in the Workspace directory of the user user directory next to copy Eclipse.sh to / usr / local / BIN directory and set permissions cp eclipse.sh / usr / local / binchmod 755 / usr / local / bin / Eclipse can now start eclipse.sh started with Eclipse.sh in the program, you can also make a shortcut on the desktop On the desktop, right-click Select "New Enhancer" in the pop-up window to enter /usr/local/bin/eclipse.sh on the "Name" on the "Name" on the display, then press the icon. "The" No Icon "button in the column. This is an Eclipse icon on the desktop (testing in Linux8)

转载请注明原文地址:https://www.9cbs.com/read-20620.html

New Post(0)