Java Learning-Basic knowledge the next day--eclipse software use

Source: Internet
Author: User
Tags win32

1. Use of Eclipse

1.1 Eclipse's official website download (2016/7/11)

Enter www.eclipse.org in the Address bar to enter the official website homepage, as shown in:

Click the Download button in the top right corner to go to the download page

The Eclipse website contains a number of technologies that you can choose to go to the download page of the Eclipse development tool, as shown in the Red box, click Downloads Packages to download the version of Eclipse and the number of system bits, as shown in:

Download and get two versions, install and green version respectively.

Installation version:

Green version:

These two versions are recommended to use the Green decompression version, the installation of the direct decompression can be used, uninstall directly remove the extracted files is to implement the uninstallation.

1.2 How to solve failed to load the jnishared library

The number of installed Eclipse bits must match the number of JDK bits, 32-bit to 32-bit, 64-bit to 64-bit. Someone asked me today when I opened Eclipse. Failed to load the JNI shared library, ask me how to do, this problem is usually eclipse and JDK number is different, ask him how many bits of Eclipse and JDK, he did not know, So how do you know that Eclipse and JDK are not the same number, how to solve this problem? First look at the number of bits for the two software, then uninstall one, install the same software as the other number of bits.

Steps:

(1) See how many bits the JDK is.

Open a command-line window, enter java-version on the command line, see how many bits the JDK is, and generally show that 64-bit is 64 jdk, not a typical 32-bit JDK. 64 bits are displayed in the description is 64-bit JDK.

(2) Determine how many bits of eclipse are.

We open the installation directory for Eclipse and right-click the Eclipse.ini file to open it in Notepad. Look at the line below--launcher.library, if the win32.x86 is displayed, it indicates that Eclipse is 32 bits, and if the win32.x86_64 is displayed, it is 64 bits. This eclipse is 32-bit, so the JDK is incompatible with Eclipse and the failed to load the JNI shared library will appear.

(3) solve the problem.

There are two ways to solve this problem, one is to reinstall the JDK, and the second is to reinstall Eclipse. Because installing the JDK is cumbersome, we typically choose the second method of reinstalling Eclipse.

1.3 Report Java Virtual machine launcher error

The reason for this error is that the JDK version is too low to meet the requirements for the JDK version of the eclipse version. For example, the above error is reported in the 64-bit Neon version (Eclipse-java-neon-r-win32-x86_64.zip) that launched Eclipse, which requires JDK1.8, and my JDK version is only 1.7.

Workaround: Change to an earlier version of Eclipse to accommodate the JDK version, or replace the newer version of the JDK to accommodate the requirements of the JDK version of Eclipse, as it is cumbersome to replace the JDK version, it is recommended that you choose to replace eclipse with a lower version.

1.4 Shortcut keys Copy the current line's shortcut key (ctrl+alt+↑) cannot be used

The reason you can't use this is because the shortcut keys and the screen flips in the operating system conflict, modify these shortcut keys for the operating system.

Right click on the desktop, e.g. (WIN10 system for example)

Select Graphic Properties

Select options and Support

If the red-boxed part of the diagram conflicts with the shortcut key (ctrl+alt+ direction) that duplicates the current row, the conflicting two keys are modified. Note that even if disabling these shortcuts is sometimes not possible, it must be modified.

1.5 Shortcut keys alt+/Content helper keys cannot be used

Eclipse does not have the automatic prompt function, the press "alt+/" key will be invalid, mainly has the following several methods to solve:

1. This method is used for situations where there is no hint: Open the windows->preferences->java--editor->content assist->advanced above eclipse in turn, there is a row above " Select the proposal kinds contained in the ' Default ' content assist list, tick the Java prolosals check box to save the exit.

2, this method is used to play the word abbreviation without prompting the situation (for example: Hit SYSO no hint): Turn on Eclipse windows->preferences->java--editor->content Assist, Find "Auto activation triggers for Java" in the lower right section, followed by a text box, enter the letter ABCD in the following text box, then click Applay-->ok Save to exit, select Export file-- General--export Select Preferences and then select the Export all check box (not required below) and specify the name and path of the exported file (note that you can only export. epf format files). Then, under the path you specify, locate the file EPF file that you just exported, (you can use Notepad) to open it, find the ABCD (or ABC) you just entered, and then add the remaining 22 letters later, save it, and then import the file into eclipse with Eclipse's import function. You can implement the Word association prompt function.

3. This method opens the Windows--preferences--general--keys above eclipse in turn, there is a search box under scheme, enter "Content Assist" in the search box (My eclipse in this search box can not be entered, the following button preempted the focus, so I chose to copy and paste, pay attention to the case when searching), select "Content asist" This item, the binding item is changed to "alt+/" (Press the "/" key to change), Select the When item as editing text;

4. This method turns on Windows--preferences--java--editor--content assist--advanced and selects the template proposals of the lower right check box.

  

Java Learning-Basic knowledge the next day--eclipse software use

Related Article

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.