on 01-24-2012 4:02 PM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.