cancel
Showing results for 
Search instead for 
Did you mean: 

SAP conncetivity to the swings application

Former Member
0 Kudos

Hi all,

I am new to this java field.Here i have a swing application with 2 input fields.Upon entering the values of 2 inputfields followd by submit button ,a connection to the backend SAP has to be created and the 2 input values has to be given as input and the data related to those fields has to be displayed in the table.

Till now i never created connection to SAP using a java application..i know only connection to Oracle..Can any one please help me out in this

Regards

Padma N

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi padma,

pls find further information on how to connect to sap using jco here:

or the jco docu: service.sap.com/connectors

regards, jens

Former Member
0 Kudos

Hi,

i followed the link given by you.But while running the application the error i am getting is

Exception in thread "main" java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'

JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc. Required version 2.1.0 (2003-04-24)

at com.sap.mw.jco.JCO.<clinit>(JCO.java:638)

at com.sap.SapConnectivity.main(SapConnectivity.java:15)

the version of sapjco.jar->Middlewarerfc.class is 2.0.5

i copied sapjcorfc.dll,librfc.dll in c:\wintt\system32

i am not getting where is the error??Is it the version of sapjcorfc.dll...

can you please give me the link to download the dll's

Regards

Padma N

Former Member
0 Kudos

hi padma,

error come up, because jco over jni has no access to the dll libaries. maybe the used files are corrupt...

however, you can download the jco libs for the right os under:

http://service.sap.com/connectors

regards, jens

Former Member
0 Kudos

Hi,

http://service.sap.com/connectors

On click of this link it is asking for username nad password....I dont have acess to this...

Is it that we have to buy these dll's ...

can u plz tell me how to get this DLL's

Regards

Padma N

Former Member
0 Kudos

Hi,

The zip file which contains the JCo jar also contains the dlls. If you got the Jar from someone in your company, ask him/her for the dlls. To access the link mentioned, you need an S-User account from SAP.

Sameer

Former Member
0 Kudos

Hi Sameer,

i got the jar's and dll's from my friend and i tried with them.But it is giving error as given above..That error is bcz of version...and it is showing as reqiured 2.1.0 version of dll...

My jco.jar is of 2.1.0 version

Can u plz suggest some other way to get these files

Regards

Padma N

Former Member
0 Kudos

Hi jens,

http://service.sap.com/connectors

Can u give me the exact location where i can found all the 2 dll files to download.

On click of the link given by u , it is showing so many things..i didn't get the exact location of downloads

Plz help me out in this..

Regards

Padma N

Former Member
0 Kudos

hi padma,

1) click on SAP Java Connector in the main screen

2) in the tree on node "Tools & Services"

3) Quick Links --> Download SAP JCO Release XXX

4) Windows NT / Windows 2000 ... select 32 or 64bit

in this zip you will find your dll's.

regards, jens

Answers (0)