cancel
Showing results for 
Search instead for 
Did you mean: 

How to use BO SDK in local java project?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Nitesh,

Have you tried to add the BO sdk jar files as program arguments (-classpath ) in eclipse?

Regards,

Min

Former Member
0 Kudos

I did some mistake few dependent jars were missing in project build path. After adding those missing BO jar files. Now its giving server connection error. Which I am trying to resolve.

Thanks for your help.

Nitesh Shelar