hi,
iam writing a program for iteracting sap and java system.
i write a pgm in java to interact sap , in notepad, when i am trying to execute the program it is showing this error.
C:\>javac firstEx.java
error: cannot read: firstEx.java
1 error
This is my program. pls any one help me.
import com.sap.mw.jco.*;
public class firstEx {
static myFirstServer serverConnections[] = new myFirstServer[3];
public static void startServers() {
JCO.addClientPool("POOL", 3, "800", "sridevi" ,"rvst2009" , "EN",
"5.137.151.198" ,"00");
IRepository repository = JCO.createRepository("REP", "POOL");
for(int i = 0; i < serverConnections.length; i++) {
serverConnections = new myFirstServer
("5.137.151.198", //gateway host, often the same as host
"sapgw00", //gateway service, generally sapgw+<SYSNR>
"JCOSERVER01", // corresponds to program ID defined in SM59
repository);
serverConnections.start();
};
}
public static void stopServers() {
for(int i = 0; i < serverConnections.length; i++)
{
serverConnections.stop();
};
}
public static void main(String[] args) {
startServers() ;
}
}