on 07-20-2010 12:18 PM
Hi,
I am trying to connect BO system using below mentioned code
public void main(String args[]) throws SDKException {
try
{
System.out.println("main");
/ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();/
IEnterpriseSession boEnterpriseSession = CrystalEnterprise.getSessionMgr().logon( "Administrator","","BOSAP","secEnterprise");
IInfoStore boInfoStore =(IInfoStore) boEnterpriseSession.getService("InfoStore");
ChangePWD(boEnterpriseSession, boInfoStore);
}catch(Exception e)
{
System.out.println("Exceptions in main");
System.out.println(e);
}
}
This code was taken from below mentioned thread:
I have created standalone java project and running as JAVA application in eclipce. I am getting class def not found error for these BO SDK jar files. I have added
cecore.jar
celib.jar and
cesession.jar files as external lib to java project
I am using following imports
import com.crystaldecisions.sdk.framework.CrystalEnterprise;
import com.crystaldecisions.sdk.framework.IEnterpriseSession;
import com.crystaldecisions.sdk.exception.SDKException;
import com.crystaldecisions.sdk.occa.infostore.*;
import com.crystaldecisions.sdk.occa.infostore.IInfoObjects;
import com.crystaldecisions.sdk.occa.infostore.IInfoStore;
import com.crystaldecisions.sdk.plugin.desktop.user.IUser;
Does any one know solution to fix class def not found error?
Thanks
Nitesh Shelar
Hi Nitesh,
Have you tried to add the BO sdk jar files as program arguments (-classpath ) in eclipse?
Regards,
Min
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.