Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to make a complete green version of Eclipse+MyEclipse

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

The editor will share with you how to make a complete green version of Eclipse+MyEclipse. I hope you will get something after reading this article. Let's discuss it together.

Here, Elephant uses Eclipse3.3.1 and MyEclipse_6.0.1GA_E3.3.1_Installer versions as examples, and other versions do the same.

Step 1: download Eclipse3.3.1 and MyEclipse_6.0.1GA

Here I would like to remind you: download version 3.2, because of the support of version 3.3 or above, and the plug-in version of download MyEclipse6.0.1 is

2Eclipse3.3.1

Put the D disk under the root directory.

Make this green version and put it in the root directory because it is very convenient. Here, the elephant takes the D disk as an example to illustrate the production method.

Step 3: install MyEclipse6.0.1GA

Double-click "MyEclipse_6.0.1GA_E3.3.1_Installer.exe" to install MyEclipse. In step 3: "Choose Eclipse Folder", pay attention to "Please Choose Existing Eclipse Installation Folder" and click "Choose...". Please select the Eclipse folder you extracted, as shown in the following figure:

Click "Next", appear "Where Would You Like to Install MyEclipse 6.0.1?", click "Choose...", select the eclipse folder above, and remember to add a directory name after eclipse, otherwise, all the installation files of MyEclipse will be placed in the root directory of eclipse. This is not what we want to see, as shown below:

There is nothing to say about the following installation, but Next all the way. After the installation, you can see a "MyEclipse 6.0.1GA" folder in the eclipse directory. Go in and have a look. Is there two folders and two files?

OK, now that the MyEclipse plug-in has been installed, let's make our green plug-in.

Step 4: plug-in production

Under the eclipse directory, create a new folder and name it "ThirdPlugins" (you can choose another name, but it must be the same as the path in the configuration file in the links directory, which will be explained later). Copy the "MyEclipse 6.0.1GA" folder to the "ThirdPlugins" directory. Don't cut it. This is the directory where MyEclipse was installed just now. You will have to install MyEclipse later. If this directory is gone, you will not be able to load it. Don't blame the elephant if something goes wrong.

After MyEclipse is installed, a links folder is generated in the eclipse directory with a "com.genuitec.eclipse.MyEclipse.link" file in it. We delete it and create a new "MyEclipse 6.0.1GA.ini" file with the following contents: path=ThirdPlugins/MyEclipse 6.0.1GA

After saving, our plug-in production is also over, and then is to unload MyEclipse, do not delete that folder directly, but should upload it.

In fact, all plug-ins can be done in this way, and the advantage of this is that you can put it in if you want to use it, and delete it if you don't want to use it. If you put it into features and plugins of eclipse, it will be very difficult to manage.

Step 5: configure parameters

Although the plug-in has been installed, we can't start it at this time. We should set the startup parameters of eclipse to improve its startup speed and runtime stability. Right-click on eclipse.exe, select "create Shortcut", right-click on the shortcut, select "Properties", add a space after "D:\ eclipse\ eclipse.exe", and add these parameters after:

-vmargs-Xverify:none-XX:+UseParallelGC-XX:PermSize=20M-XX:MaxPermSize=128M-Xms256M-Xmx512M

-Xms256M-Xmx512M: this is the heap, which is set according to the memory size. For example, if the memory of an elephant is 1G, I will set it to 256g and 512g, which is generally enough.

Of course, you can set nothing, but Elephant still recommends setting these parameters, which can greatly improve the startup speed of eclipse. After installing MyEclipse, a backup file of eclipse.ini will be generated. This is not necessary. Delete it. We can modify the eclipse.ini file. The original file is as follows:

-showsplash

Com.genuitec.myeclipse.product

-- launcher.XXMaxPermSize

256m

-vmargs

-Xms128m

-Xmx512m

-Dosgi.splashLocation=D:\ eclipse\ MyEclipse6.0.1GA\ eclipse\ MyEclipseSplash.bmp

-Duser.language=en

-XX:PermSize=128M

-XX:MaxPermSize=256M

In fact, it doesn't matter if this file is empty. Elephants have tried it, deleted it all, and made no mistakes, but I still suggest that you at least keep these things in it.

-vmargs

-Xms256m

-Xmx512m

I changed 128to 256. if you want to start it with the "MyEclipse 6.0.1" shortcut in the MyEclipse plug-in, you can write it like this

-vmargs

-Xms256m

-Xmx512m

-Dosgi.splashLocation=D:\ Eclipse-3.3.1\ ThirdPlugins\ MyEclipse6.0.1GA\ eclipse\ MyEclipseSplash.bmp

The bottom line is the startup, showing the picture of MyEclipse, if there is no such sentence to run the "MyEclipse 6.0.1" shortcut, it will show the startup screen of eclipse, in fact, the "MyEclipse 6.0.1" shortcut is still connected to the eclipse.exe implementation program, right-click on "MyEclipse 6.0.1", select the properties, and you can see it in the target.

Step 6: register for MyEclipse

MyEclipse6.0 registration must be disconnected from the network, otherwise it will not be successful!

6.0.1GA registration code

Subscriber: administrator

Subscription Code: nLR7ZL-655342-54657656405281154

Here is a bit of elephant to remind you that if you have a MyEclipse that is already registered on your computer, there will be a ".myeclipse.properties" file in the C:\ Documents and Settings\ "your user name" directory. At this time, please back up this file, then delete it, disconnect the network, and then register MyEclipse6.0.1. The success is as follows:

Step 7: package eclipse

All the work has been done by now, is it fast to start eclipse? All right, it's time to do * one-step operation. Delete all the contents under the "configuration" folder except the "config.ini" file, and then delete the workspace folder. The elephant will generally put the workspace under the eclipse root directory. The method is to delete all the previous directories when you start to select the path for the * time, leaving only workspace (do not keep anything before). It's easy to manage, and you have to put it anywhere else, depending on what everyone likes. After completing these two steps, * create a txt text file in the eclipse directory, put the registration code above in it, and add a sentence: "be sure to disconnect the network when you register, otherwise the registration will not be successful!" In this way, you can remind yourself when you use it later. There is a registration code in it, which is very convenient to use.

Right-click on the eclipse folder and select "add to eclipse.rar". When the compression is complete, it is finally done!

After reading this article, I believe you have a certain understanding of "how to make a complete green version of Eclipse+MyEclipse". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report