Tag Archives: eclipse

Eclipse Open Error: “The Eclipse executable launcher was unable to locate its companion shared library”

This problem was encountered when I just learned Java. It took me several hours at that time. I was depressed for a long time, but I didn’t find the problem. It really depressed me for a long time. I tried many methods on the Internet, but I couldn’t solve this problem. Finally one day when CSDN reminded me to tie the post, I found the help post I sent at that time https://bbs.csdn.net/topics/392193961 , and recalled my memories again. I tried all the answers in the post, but they were not successful. So I searched Baidu again for methods. This time, I finally found a solution. Thank you all for your help

 

Solution:

There are holes on the Internet, and there are all kinds of solutions, but it seems that my 64 bit machine is not very face saving and can’t solve them<

as a result, I found a solution. To sum up, most of the software has problems. If it is uninstalled or reloaded, it is usually a residual problem in the registry:

open the path under – startup and — launcher. Library in the eclipse.ini configuration file with the file manager,
recursively look up the folder about eclipse, Delete it, and then continue to install eclipse again
the following are the solutions on the Internet
there are three solutions on the Internet:

1. Modify the eclipse.ini configuration file (a, b),
a. Change the path under — launcher.library and – Startup to the current correct path
B. delete – startup and plugins /… These two lines of data

2. Check whether the JDK environment is fully configured, and whether the JDK version and eclipse version correspond to 64 bit or 32-bit, Reconfigure the environment variables

3. Use win rar to extract the compressed files of eclipse and try to re install eclipse
3

 

I used to be a student in the Department of electronics, but I like programming. In my opinion, programming can use the Internet to get almost all the answers. Almost everyone has met every question. It’s like building blocks to build your code. No more

I use the first method of scheme B. I wish you all success

How to handle the eclipse error message the declared package does not match the expected package

After downloading an open source project from GitHub and importing it into eclipse, I encountered this annoying error message: the declared package “com. Sap. Smartservice” does not match the expected package “main. Java. Com. Sap. Smartservice”

This is my project file directory:

Solution: right click the project and select properties – > Build path, found SRC folder is set to build path.

First, right-click SRC folder and select remove from build path to remove it from build path:

Then select the Java folder under Src/main, set it to build path, and restart Eclipse:

Error disappears:

to get more original articles of Jerry, please pay attention to the official account of “Wang Zixi”:

The jar file rt.jar has no source attachment appears in eclipse

Original text: http://blog.csdn.net/u011514810/article/details/53196371

————————————————————————————————-

As a rookie, it is very important to check the Java source code. It’s very convenient to view the source code of a class in eclipse. Directly press and hold the CTRL + mouse click class or method, then the source code of this class or method will appear. However, before that, you need to import the source code src.zip into eclipse. This source code src.zip does not need to be downloaded. As long as you install JDK, there will be src.zip in the directory where JDK is installed. There is no need to unzip it. Let’s see how to import the source code into eclipse

1. In the eclipse interface, click window — preferences — Java — installed jres

2. Select d: Java. Lib. RT. Jar, and then select source attachment

3. Select external location, click external file, browse the directory where JDK is installed, find src.zip, click OK and finish

Eclipse Error:The selection cannot be launched, and there are no recent launches

I just installed eclipse and wanted to write a java program to test whether it could be used. As soon as I ran, I got an error, and debug was the same error. The error content was: the selection cannot be launched, and there are no recent launches, I couldn’t find this

Here’s the code

1 package test;
2 
3 public class test {
4 
5     static void main(String[] arg)
6     {
7         System.out.println("Hello World");
8     }
9 }

We found that we need to add a public before static, and the s of string must be uppercase, and main must be spelled correctly. The corrected code is as follows

package test;

public class test {

    public static void main(String[] arg)
    {
        System.out.println("Hello World");
    }
}

Found can run, successfully output results Hello world

Eclipse reports “there are no staged files” by using git submission code

When using eclipse, there may be a small problem when submitting code to git library. As follows, share the solution

Window — preferences — team — git — Commenting don’t check the part in the red box

So the familiar window will appear, OK

level is limited, if you have any questions, please leave a message

learn from each other and make progress together:) please indicate the source of the reprint, thank you

Eclipse SVN Error: unable to load default svn clien

unable to load default svn client

In Eclipse under Win7, subclipse 1.10.x is installed, subclipse and subversion Client Adapter have been selected. however, when creating a new SVN repository, the error unable to load default svn client appears. in

Help –> Install new Software –> Work with: (svn_1.10.x -http://subclipse.tigris.org/update_1.10.x) 选中subclipse 下的Subversion JavaHL Native Library Adpter OK.

 

Dubbo learning — import eclipse exception unbound classpath container (2)

Dubbo learning — import eclipse exception unbound classpath container (2)

Tags (space separated): Dubbo eclipse


[TOC]

1. Import eclipse

Import Dubbo to eclipse using the buildship plug-in

After success, there is a red exclamation mark on all projects, and the error is as follows:

Build path	Build Path Problem
Unbound classpath container: 'JRE System Library [JavaSE-1.5]' in project 'dubbo-xxxx'

2. Solutions

Window -> Preferences -> Java -> Installed JREs

Add a new standard JVM, define the JRE name as javase-1.5, and save it

Eclipse prompts that unhandled event loop exception is stuck

In eclipse, pressing crtl key to block and report unhandled event loop exception Java heap space solution

1. At the beginning, when you press crtl + C, MyEclipse always reports unhandled event loop exception Java heap space, so you increase the memory in the eclipse.ini file – vmargs

Adjustment

-Xms256m

-Xmx512m

-XX:PermSize=128m

-20: Maxpermsize = 256M (this can really solve the problem of insufficient memory in eclipse.).. But it can’t solve the problem of crtl key stuck)

After adjustment, it is found that crtl + C will still be stuck.. I found that after pressing and holding Ctrl in eclipse, you can click to jump to the variable definition, so when you press Ctrl, eclipse will generate this mapping. When the file is large, this behavior will take a lot of time, and it is easy to get stuck. Modification

Eclipse — Windows-> Preferences-> General-> Editors-> Text Editors-> Hyperlinking:

Remove this option: enable on demand hyperlinks style navigation.. Because I’m a JSP page (the crtl key is stuck)

OK, after a new crtl + C test, the problem is solved

Tomcat Startup Error: Server Tomcat v8.5 Server at localhost failed to start.

#Server Tomcat v8.5 Server at localhost failed to start.

1、 Investigation ideas

The most direct and effective way is to look at the console

2、 Specific solutions

As shown in the figure above, the reason for the error will be indicated in the exception information, generally in the following cases

    1. the workspace corresponding to Tomcat (for example, webapps or wtpwebapps in Tomcat installation directory) does not exist, as shown in the figure above
    1. solution: delete the corresponding folder and restart Tomcat. The project itself has errors or the project introduces jar package has problems
    1. solution: if it is built by maven, you can run as – & gt; Maven test to check if there is a problem with the dependent jar package and the servlet mapping definition is duplicate, web.xml Use

< url-pattern>/ url</ The servlet mapped by code> and the servlet class URL annotated by @ webservlet ("/ URL") are duplicated either