0

I have some jar files to be added in my project.

Add those jar files as External Jar files in Java Build Path for my project but it has java.lang.VerifyError when I run the project:

Could not find class 'com.sforce.ws.ConnectorConfig', referenced from method

Add those jar files to my libs folder and add them in Java Build Path, until my PC CPU consumption around 90%.

I believe that add them either as External Jar or put them as internal Jar won't give me issue.

What's wrong with it?

Note: My total jars size is around 9MB.

Rendy
  • 5,421
  • 12
  • 48
  • 92

3 Answers3

0

Some ADT version need to set which libraries/projects should be exported

Do following:

  • Right Click to your Project -> Properties -> Java Build Path -> Order and Export(Tab) -> Check your Sources and other Libraries you are using.
  • Clean your Project.
Sumit Singh
  • 24,095
  • 8
  • 74
  • 100
  • After I put jars as External Jars, check them in Order and Export, the error still occurs or Eclipse becomes not responding. – Rendy May 12 '15 at 07:51
0

The reason of java.lang.VerifyError, Causes of getting a java.lang.VerifyError

you should be sure the same of libraries when compiled and runtime.

Community
  • 1
  • 1
BinGoBinBin
  • 183
  • 11
0

Finally get this solved!

Got solution from here

Need to increase:

-Xms512m 
-Xmx1024m

and

-XX:MaxPermSize=1024m

In my case, I need to increase all of them to 2048m!

Rendy
  • 5,421
  • 12
  • 48
  • 92