Java development learning Eclipse project has a red exclamation point solution

  • 2020-06-19 10:12:51
  • OfStack

Today a reader asked me about an error that occurred after the source code download for Android called Webservice to achieve weather forecasting
Could not find class 'org.ksoap2.transport.HttpTransportSE

The problem solution is: (excerpt from http: / / blog csdn. net/wangygang/article/details / 7652838)

After upgrading SDK to R17, the original normal program was out of order and the jar package referenced in the error message was clearly referenced
Prompt Could not find class 'org. ksoap2. transport. HttpTransportSE'
Problem solved. Version of R17, the external jar must be placed in a specific libs directory. Create a new Folder called libs and copy the jar package to the libs folder.

Then I opened my Eclipse project 1 and there was a big red exclamation mark. Unable to brush the project onto the simulator to see what went wrong, baidu 1, the following is the solution :(from Eclipse project red exclamation mark solution)

[Problem cause] : The packet path pointed to in classpath is wrong in the project

[Solution] : Right click project name BuildPath -- > Configure Build Paht... , and then several tabs above find the packet with the Red Cross in Libraries to be the packet with the wrong path. Go to classpath to modify the current path of the corresponding package. Then go back to F5 refresh project in eclipse.

The following two paragraphs are for reference materials I found on the Internet when solving this problem:

When you create a new web project with myeclipse, a.classpath profile will be generated in the project directory, which contains the jar configuration referenced in your project. This.ES68en has no effect on your web project. It is actually identified for myeclipse. You are saying this because the configuration in the.classpath file refers to some jar, but in fact your lib doesn't have this jar in it so you get the red prompt.

You don't have to take the.classpath file and your jar1 to find each one, you now open MyEclipse and right click on your web project to find Build Path > Configure Build Paht... > Then there are several tabs above to find Libraries. Here are all the jar references in your project. Is there a small yellow exclamation point on one of the jar ICONS?

If so, select jar and click Remove to the right > Click OK and wait for a few seconds. Now the red XX on web project is gone.

jar is referenced in the classpath configuration file but is not actually in lib.


Related articles: