cancel
Showing results for 
Search instead for 
Did you mean: 

JCOTest not working

Former Member
0 Kudos

Description:

We have downloaded the SAP Java Connector for Intel 32 bit version 3.0.1

The CLASSPATH and PATH have been set up as advised. But the jcotest.bat file is producing an error before any test output:

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

Caused by: java.langClassNotFoundException: com.sap.mw.jco.JCO@$Exception

at .................................

The Novell identity manager guide advises the the problem is due to:

The sapjco.jar file is not in the location specified in the jcotest.bat file

the jcotest.bat file has translated line

java -classpath %CLASSPATH%;. JCOTest

to

java -classpath c:\SAPJco3\sapjco3.jar;. JCOTest

This is the location of the jar file

executing c:\sapjco3\sapjco3.jar brings up screen SAP Java Connector (JCO)

details

Operating Sys: Win 2003 5.2 for x86

Java VM: 1.6.0_06 Sun Microsystems

Java codepage cp1252

JCO API: 3.0.1 (2008-10-21)

JCO middleware name: JavaRfc

JCo middleware: 2.1.1

JCo Middleware native: 711.15

JCO classes c:\SAPJCo3\sapjco3.jar

JCo Lib c:\SAPJco3\sapjco3.dll

Other considerations:

JCOTest.class is in c:\sapjco3

Visual Studio components .NET C/C++ runtime libs have been added using SAP utility R3DLLINST.ZIP

librfc32.dll is in c:\windows\system32

java version jre 1.6.0_06

operating system MS Win Server 2003 SP1

non UNICODE SAP system

jrfc12.dll has not been found

SAPRFCSDK has not been installed

SAP FAQ advises that the Jco does not need other components. Our SAP Partners have checked out the server config and advise that they have successfully configured SAPJCO, but have not come across this problem. They have tried pointing it to java 1.5 in case it was not backwardly compatible.

Any suggestions?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

not sure if this helps, but i think Novell identity manager needs jco Version 2.x

regards franz

Answers (5)

Answers (5)

Former Member
0 Kudos

Thanks for that. I will check out later versions of SAPJco.jar when they are available

Former Member
0 Kudos

Yes, it's true, Novell IDM SAP connectors up to version 3.6 only support JCO 2.

The next SAP connector versions will support JCO 3.

- Holger

Former Member
0 Kudos

Thanks for the solution. It was assumed that since SAPJco.jar version 3.0.1 was the current version and that version 2.1.8 had reached the end of maintained life that the latest version was backwardly compatible. Never make assumptions - version 2.x works with JCoTest and proves connectivity for the Novell Identity Manager

Former Member
0 Kudos

Hi,

Try to run your application as follows

From the source path of JCOTest

javac -classpath c:\SAPJco3\sapjco3.jar JCOTest.java

java -classpath c:\SAPJco3\sapjco3.jar JCOTest

Regards

Ayyapparaj

Former Member
0 Kudos

Hi

Tried the command but got an error

error: cannot read: JCOTest.java

1 error

Former Member
0 Kudos

Hi,

Did you place the .dll file which comes along withe the JCO in the system folder?

Regards

Ayyapparaj

Former Member
0 Kudos

sapjco3.dll (10/24/2008) was in the same directory as sapjco3.jar

I copied it to C:\windows\system32. The same error occurs.