cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.NoClassDefFoundError: com/sap/mw/jco/JCO$ParameterList

Former Member
0 Kudos

Hi

I have written a java program and uses JCO to connect to the backend.

I have put JCO in the PATH of windows

Now when I try to run the program from the command line

java -jar C:\workspace_3.2\myFolder\MyJar.jar

I get the folowing exception

java.lang.NoClassDefFoundError: com/sap/mw/jco/JCO$ParameterList

Any suggestion why?

regards

yuval

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You should have too the files (sapjco.jar and sapjcorfc.dll)

in your current folder : C:\workspace_3.2\myFolder\

In the folder C:\Windows\System32 put the file librfc32.dll

The problem come from the SAP JCO jar library : cannot be find !

Best regards,

Mathieu

PS : reward points if helpful.

Former Member
0 Kudos

Hi Mathieu,

I have put librfc32.dll in Windows/systems32 and

sapjco.jar together with sapjcorfc.dll in the same folder as my jar file.

Yet I get the same result.

Exception in thread "main" java.lang.NoClassDefFoundError: com/sap/mw/jco/JCO$ParameterList

Very strange.

I even tried to putr it as environment variable.

Nothing

Thank you fior your assistance!

regards

yuval

Former Member
0 Kudos

Hi,

Please specify the CLASSPATH too.

Best Regards,

Vipin

Former Member
0 Kudos

Hi,

Yes, don't forget to specify the classpath in your command line like this :

java -classpath C:\workspace_3.2\myFolder\sapjco.jar -jar C:\workspace_3.2\myFolder\MyJar.jar

Best regards,

Mathieu

PS : reward points if helpful