cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with SAP JCO 3.0 Connector java.lang.NoClassDefFoundError

Former Member
0 Kudos

Hi all,

       I am facing a problem while executing a java program using SAP JCO connectors 3.0 to connect the backend SAP R/3 System. Currently i m stuck with the following error while executing the java file locally in Netweaver Neo Server.

java.lang.NoClassDefFoundError: Could not initialize class com.sap.conn.jco.JCo

com.sap.conn.jco.JCoDestinationManager.getDestination(JCoDestinationManager.java:77)

com.arteriatech.com.Purchase.step1Connect(Purchase.java:86)

com.arteriatech.com.PurchaseOrderList.doGet(PurchaseOrderList.java:36)

javax.servlet.http.HttpServlet.service(HttpServlet.java:735)

javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

java.lang.reflect.Method.invoke(Unknown Source)

org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274)

org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:271)

java.security.AccessController.doPrivileged(Native Method)

javax.security.auth.Subject.doAsPrivileged(Unknown Source)

org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:166)

I have downloaded JCO3.0 from sap market place. Also as said in installation procedure i have installed latest Microsoft Visual Studio 2005 C/C++ runtime libraries, but i am still getting the above error.

Tools used

1. Eclipse Indigo

2. Jco Connector -- >   SAP  Jco 3.0.8

3. Server --> Netweaver Neo

4. JDK 1.6

  Thanks

Amit Joshi

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos
have you deploy the jco lib with your web application?
Former Member
0 Kudos

Hi Jun Wu,

                I deployed everything it workes in windows XP operating system but windows 7 repeating the same error.

Thanks,

Jothikanna K.

Former Member
0 Kudos

besides the jar file, you need a appropriate version of sapjco3.dll (32 bit, 64 bit, etc...)

hope that helps