cancel
Showing results for 
Search instead for 
Did you mean: 

Can not compile the Java to connect it to SAP

Former Member
0 Kudos

Dear all expert,

As I am new in Java development through connection to SAP

I am getting some error like:

1. package com.sap.mw.jco does not exits.

2. Package JCO does not exits

3. Cannot find symbols

I installed JDK1.6.0

Path: c:\SAPJco

Class path: c:\SAPJco\sapjco3.jar

Please advice me whats up the wrong or what I have to do the next process?

Thanks and B/R

Bishnu

21/06

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

it is nothing to do with sap

you have to learn basic java....

what program you are writing? standalone?web dynpro?

Former Member
0 Kudos

Thanks for your quick reply.

yes this is standalone where I am using this in Navicoder IDE for java.

When running the code getting the above package problem.

Can u advice me any more?

Thanks

junwu
Active Contributor
0 Kudos

are you a java developer?

don't you know how to put jar in classpath to run the java code?

Former Member
0 Kudos

Thanks for your kind information back to me.

Actually I am not java developer, working in ABAP.

Want to develop in JAVA also.

Could you advice me?

Thanks in advance.

Sreejith1
Contributor
0 Kudos

Hi Bishnu,

If you are familier with ecclipse try to use that.

else in your ide whether you added jar in library settings? or try to add that jar in common library.

http://www.navicoder.com/manual/online_manual/ide/java/index.html

Former Member
0 Kudos

The best advice would be to use Google to find some introduction to Java information to get you started with the language.  SAP technical forums aren't really the correct place for basic Java questions.

Gareth.

Former Member
0 Kudos

Hi Ram,

Thanks for your kind reply.

Actually I want to use SAP through from JAVA.

As your instruction I already check the class path into IDE library manager.

But still it is showing package errors:package com.sap.mw.jco does not exits.

Please advice me.

Former Member
0 Kudos

Dear Gareth.

Thanks for your information advice.

I already have some basic knowledge work with java.

I want to make also connection through JAVA to SAP.

Please let show me some idea.

Thanks in advance.

Sreejith1
Contributor
0 Kudos

Hi,

Still the error shows what you give is not taken.

have you tried by putting the above jar file to main java jar folder?