cancel
Showing results for 
Search instead for 
Did you mean: 

package com.sap.mw.jco does not exist

Former Member
0 Kudos

Dear All,

when I run the following java program it show the error "java:1: error: package com.sap.mw.jco does not exist"

import com.sap.mw.jco.*;

public class SapConnection extends Object {

JCO.Client mConnection;

public void Connect1() {

try {

// Change the logon information to your own system/user

mConnection =

JCO.createClient("811", // SAP client

"basis", // userid

"jack1234", // password

null, // language

"prd", // application server host name

"00"); // system number

mConnection.connect();

System.out.println(mConnection.getAttributes());

mConnection.disconnect();

}

catch (Exception ex) {

ex.printStackTrace();

System.exit(1);

}

}

public static void main (String args[]) {

Connect1 app = new Connect1();

}

}

Thanks,

Manas

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hey,

This should be posted in the Java forum.

Please check the link below for solution -