How to use BO SDK in local java project?

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:
Force all users to change their Enterprise passwords with a batch operation
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

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

Similar Messages

  • How to use Acrobat sdk features in java application?

    Hi
    In my project i have an requirement to make static pdf in to dynamic form  , So how can i make static PDF to dynamic one as my project platform is purely  in java . How can i make use Acrobat SDK  InterAppCommunicationSupport/ samples in my java code ?
    Thanks & Regards,
    Prashant P M.

    Hi Leonard,
    Thanks for your kind reply , I am attaching  a sample SchollForm static PDF with this post, where it consist of student details like Name ,lastName ,section etc.
    I like to convert this static PDF in to dynamic PDF means above field should be fillable ,So Using Acrobat SDK is it possible to achieve this above stuff.
    If yes then Please can you give a brief idea how to do this one using Acrobat SDK with java? .
    Thanks in Advance.
    Prashant P M.

  • How to use the TCP/IP in Java?Thanks!

    How to use the TCP/IP in Java?Thanks!

    Look at the java.net package, more specifically to classes ServerSocket (The server TPC conection) and Socket (the client TCP conection)
    Abraham

  • How to Use Windows XP theme in Java

    How to Use Windows XP theme in Java.
    I am an developing application which L&F should be like Windows XP.
    Because I am going use this application in different OS.
    Which LookAndFeel I have to use it

    try this in main:
    try {UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());}
    catch (Exception exc) {System.err.println("Eroare la incarcarea look & feel" + exc);}

  • How to use HTML Tags in webdynpro java

    Hi,
         Can any body tell me how to use HTML Tags in webdynpro java.
    If u provide me with sample code it will become more usefull.
    Thanks & Regards,
    SN

    HI,
    Please find the steps:
    Create a html file and store in your webdynpro project
    Add the html contents in your file
    & Create a IFRAME UI element and refer you html file
    Now you able to see the html in webdynpro
    Thanks & Regards,
    Ram

  • How to create the exe file for java project.

    How to create the exe file for java project.
    am done the project in java swing , i like to create the project in exe format, so any one help for me,
    send the procedure for that.
    thanking u.

    How to create the exe file for java project.Have you ever heard of google? I pasted your exact "question" into a google search:
    http://www.google.com/search?q=How+to+create+the+exe+file+for+java+project.
    and got several useful links.
    Better search terms might yield even better results.
    Sheesh.

  • Can i use SQLJ in a normal java project?

    I created a normal Java Project and used SQLJ in it.But when i exported the jar file,there was a error:
    JAR creation failed. See details for additional information.
      class file(s) on classpath not found or not  accessible /DBTableApp/com/ezkj/demo/sqlj/Ctx.java
    Can i use SQLJ in a normal java project?
    If i can,what can i do?

    hi
    good
    go through this link
    http://www.service-architecture.com/application-servers/articles/when_to_use_sqlj_with_java_application_servers.html
    http://www.service-architecture.com/application-servers/articles/sqlj_data_conversion.html
    Payroll Cluster table "top Important" Urgent
    http://www.javaolympus.com/J2SE/Database/SQLJ/SQLJ.jsp
    thanks
    mrutyun

  • How to use Iden SDK with WTK 2.5.1 ?

    I have installed WTK, and it has been working but I realized I forgot to add the iden SDK for my motorola phone. I installed the SDK but I assume I need to link the files to WTK somehow?
    What I am wanting to do :
    So... I think I know what I need... I thought I had installed the iDEN SDK from Motorola, but I never did. So I installed the SDK but now I don't know how to use it with WTK. For you people proficient with this I am sure this is a simple task, but for me I am lost.
    The SDK has a class file called StatusManager which can retrieve phone battery level...
    From documentation:
    "Field Detail
    BATTERY_LEVEL
    public static final int BATTERY_LEVEL
    This is the value passed to the status manager to retrive the battery levels
    The return value is in the range of [0 - 3] with 0 being no charge and 3 being a full battery.
    BATTERY_LEVEL has a value of 0"
    QUESTION IS: Where do I put the SDK files so WTK can use them? I am lost here.
    I found the StatusManager.class file in :
    C:\Program Files\Motorola\iDEN SDK for J2ME (MIDP 2_0)\lib\i730\com\mot\iden\device\
    Can someone give me the detailed process of using the SDK with WTK... please??

    Thanks Sree.
    Is there something so called as the back-door approach to it.
    I read in the articles of Struct Objects and Connection that:
    If connection is obtained via:
    weblogic.jdbc.jts.connection jtsConn = getConnection();
    OracleConnection oracleConn = jtsConn.conn;
    And this should ideally work in WLS5.1,
    but still i wonder how did they obtain the connection.
    It would be obligatory if someone could help me with it.
    Thanks,
    Kavita
    "Sree Bodapati" <[email protected]> wrote:
    Hi Kavita,
    This is not possible to do this via a connection from the pool. Oracle
    implements non standard methods which require OracleConnection object
    instead of standard java.sql.Connection object which the pool returns.
    You
    have to use a direct connection using the thin driver.
    sree
    "Kavita Rajdeo" <[email protected]> wrote in message
    news:3c6fc1f5$[email protected]..
    The connection pool is created using the Oracle thin driver. The connection
    so obtained when passed to the ArrayDescriptor throws a
    ClassCastException at ArrayDescriptor.createDescriptor(connection con.
    While deployment,deployer throws an exception saying unresolved reference
    to
    oracle/sql/Datum, either include the class files for the same or remove
    the
    reference using the file.
    Would u kindly help me with this as urgently as possible.
    Thanking in anticipation.
    Kavita

  • How to Use COM Component in a Java Bean

    Dear Sir,
    How can I use a COM Component in a Java-Bean . I am having a COM Component for reading Weighment Reading on a Serial Port and want to use this Component in a Java-Bean . I would also like to call the methods of this COM Component inside my Java-Bean . COM Component is a dll file .
    Please guide me how to go ahead . If possible kindly provide some sample code for the same .
    With Thanks and Regards
    B V Mittal

    You need a Java to COM bridge like Jacob. Try searching this forum for more information, I've answered this question several times before.
    Dom.

  • How to use .properties files in Webdynpro Java code?

    Hi all,
      I want to use a logon.properties file when I initial a JCO connection pool in my webdynpro DC (JCO.addClientPool()),but  I found when I deployed this DC to the server, it always giv e me an FileNotFoundException. So I donot know how to deploy a .properties file to the server and how to access this file in my Java code?
    Thans and Best regards
    Deyang

    Hi,
    1) put .properties file to your packege under src\packages folder (src\packages\com\sdn\properties\jco.properties)
    2) load property:
         final InputStream is = getClass().getClassLoader().getResourceAsStream("com/sdn/properties/jco.properties");
         final Properties properties = new Properties();
         try
              properties.load(is);
         catch(Exception e)
              wdComponentAPI.getMessageManager().reportException(new WDNonFatalException(e), false);
    Regatds Maxim R.

  • How to Use Acrobat SDK for Automation Using VB or Perl

    Hi Forum,
    I am a new bie, just 2 days old to acrobat and javascript, and I am basically a perl developer
    I am using Adobe Acrobat 9 Pro,
    I downloaded Acrobat SDK, but i don't know what else to do further, how to use??
    I tried to start learning SDK, but no proper documents i found to learn and start using SDK,
    Please suggest some guide or documentation for start learning Acrobat SDK (Step by Step guide)
    Here with I have created a small script to merge two pdf
    // Create a new PDF document:
    var newDoc = app.newDoc();
    // Insert doc1.pdf:
    newDoc.insertPages({
    nPage : -1,
    cPath : "/d/sathish/1.pdf",
    // Insert doc2.pdf:
    newDoc.insertPages({
    nPage : newDoc.numPages-1,
    cPath : "/d/sathish/2.pdf",
    // Save the new document:
    newDoc.saveAs("/d/sathish/myNewDoc.pdf");
    My code is working fine and merging properly,
    Is there any way to execute this script through commandline or using some other scripting languages like perl or through VB
    My objective is to automate the merging process without any manual intervention, I don't want to open acrobat manually to execute this javacript, i want to automate that process too,
    Please suggest me which will be very helpful to me,
    Thanks in advance
    Thanks & Regards
    Sathish V.

    It is a big SDK and to learn its features requires a lot of reading. But to start with I guess I should start with "Introduction to SDK".
    Since you want to control Acrobat from another application you should consider this under "Interapplication communication". You will be using OLE/COM.

  • How to use a swf file in java

    plz any body tell me about this
    that how to use SWF in java (JFrame)

    I suggest you look in google http://www.google.co.uk/search?q=SWF+java

  • How to use shell program parameters in java program??

    Hai all,
    I am writing a java program which must read strings from a file and must assign to variables.these strings are nothing but the output of ls -l command in shell. i need to have all those 9 fields in a file as variables.
    I cant find any method that will read only string.I came accross read line but that is not what i need.So, i thought of writing a shell script and by using awk, storing those 9 fields in 9 variables.. but how to use that variables in java programming???
    the shell script is executed by exec() but i need that variables also.
    Help me please:(
    thanks in advance

    i now changed the code... and closed the output file and then i read.Later i splited with the line i read.. but the same happened...
    this is the code:
    while ((l = inputStream.readLine()) != null)
                        op=new FileOutputStream("op.txt");//output of exec goes to this file
                        String[] cmd= {"/bin/sh","-c","ls -l "+l};
                        rt = Runtime.getRuntime();
                        proc = rt.exec(cmd);
                        // any error message?
                          StreamGobbler errorGobbler = new
                          StreamGobbler(proc.getErrorStream(), "ERR");
                        // any output?
                          StreamGobbler outputGobbler = new StreamGobbler(proc.getInputStream(), "",op);
                        errorGobbler.start();
                               outputGobbler.start();
                        op.close();//the file is closed now
                        ip = new BufferedReader(new FileReader("op.txt"));     //now i opened to read
                        p=ip.readLine();
                        a=p.split("\\s");
                        ip.close();
                   }where i went wrong?

  • How to Use GnuPG(GPG) winth in java

    Hi all
    I am having one tough time getting How to use GnuPg with in Java languge to encrypt and decrypt file. Can anyone offer any help ...
    Satya

    I'm using this wrapper founded somewhere. Works fine to me.
    /* License: GPL
    * Author: John Anderson
    * Description: A small class to encrypt and decrypt text using GnuPG.
    import java.io.*;
    public class GnuPG {
            private Process p;
            private String gpg_result;
            private String gpg_err;
            GnuPG() {
            public void verifySign(String signedFile, String originalFile){
                    System.out.print("Verifying...");
                    try {
                            //p = Runtime.getRuntime().exec("gpg --output "+originalFile+" --decrypt --yes --verbose " + signedFile);
                            p = Runtime.getRuntime().exec("gpg --verify " + signedFile);
                    } catch (IOException io) {
                            System.out.println("Error creating process.");
                    ProcessStreamReader psr_stdout = new ProcessStreamReader("STDIN", p.getInputStream());
                    ProcessStreamReader psr_stderr = new ProcessStreamReader("STDERR",p.getErrorStream());
                    psr_stdout.start();
                    psr_stderr.start();
                    BufferedWriter out = new BufferedWriter(new OutputStreamWriter(p.getOutputStream()));
                    try {
                            out.write("\n");
                            out.close();
                    } catch (IOException io) {
                    try {
                            p.waitFor();
                            psr_stdout.join();
                            psr_stderr.join();
                    } catch (InterruptedException i) {
                    gpg_result = psr_stdout.getString();
                    gpg_err = psr_stdout.getString();
                    System.out.println("Done.");
            public void encrypt(String str, String rcpt) {
                    System.out.print("Encrypting... ");
                    try {
                            p = Runtime.getRuntime().exec("gpg --armor --batch --encrypt -r " + rcpt);
                    } catch (IOException io) {
                            System.out.println("Error creating process.");
                    ProcessStreamReader psr_stdout = new ProcessStreamReader("STDIN", p.getInputStream());
                    ProcessStreamReader psr_stderr = new ProcessStreamReader("STDERR",p.getErrorStream());
                    psr_stdout.start();
                    psr_stderr.start();
                    BufferedWriter out = new BufferedWriter(new OutputStreamWriter(p.getOutputStream()));
                    try {
                            out.write(str);
                            out.close();
                    } catch (IOException io) {
                    try {
                            p.waitFor();
                            psr_stdout.join();
                            psr_stderr.join();
                    } catch (InterruptedException i) {
                    gpg_result = psr_stdout.getString();
                    gpg_err = psr_stdout.getString();
                    System.out.println("Done.");
            public void decrypt(String str, String passphrase) {
                    File f = null;
                    try {
                            f = File.createTempFile("gpg-decrypt", null);
                            FileWriter fw = new FileWriter(f);
                            fw.write(str);
                            fw.flush();
                    } catch (IOException io) {
                    System.out.print("Decrypting from: " + f.getAbsolutePath());
                    try {
                            p = Runtime.getRuntime().exec("gpg --passphrase-fd 0 --batch --decrypt " +
                                    f.getAbsolutePath());
                    } catch (IOException io) {
                            System.out.println("Error creating process.");
                    ProcessStreamReader psr_stdout =
                            new ProcessStreamReader("STDIN",
                            p.getInputStream());
                    ProcessStreamReader psr_stderr =
                            new ProcessStreamReader("STDERR",
                            p.getErrorStream());
                    psr_stdout.start();
                    psr_stderr.start();
                    BufferedWriter out = new BufferedWriter(
                            new OutputStreamWriter(p.getOutputStream()));
                    try {
                            out.write(passphrase);
                            out.close();
                    } catch (IOException io) {
                    try {
                            p.waitFor();
                            psr_stdout.join();
                            psr_stderr.join();
                    } catch (InterruptedException i) {
                    gpg_result = psr_stdout.getString();
                    gpg_err = psr_stdout.getString();
                    System.out.println("Done.");
            public String getResult() {
                    return gpg_result;
            public String getError() {
                    return gpg_err;
    class ProcessStreamReader extends Thread {
            String name;
            StringBuffer stream;
            InputStreamReader in;
            final static int BUFFER_SIZE = 256;
            ProcessStreamReader(String name, InputStream in) {
                    super();
                    this.name = name;
                    this.in = new InputStreamReader(in);
                    this.stream = new StringBuffer();
            public void run() {
                    try {
                            int read;
                            char[] c = new char[BUFFER_SIZE];
                            while ((read = in.read(c, 0, BUFFER_SIZE - 1)) >
                                    0) {
                                    stream.append(c, 0, read);
                                    if (read < BUFFER_SIZE - 1)
                                            break;
                    } catch (IOException io) {}
            String getString() {
                    return stream.toString();
    }

  • How to use File Transfer Protocol in Java?

    hi all,
    im new to java. i dont know how to use FTP in java. but i want to transfer files from my machine to another machine and also i want to download files from that machine through FTP. how can i start this program. pls any one give me the code for this program. thanks in advance.

    Of course you didn't get an "exact result", since that link was to an article which reviewed several products. If you aren't capable of making a decision based on that article, try using the Apache Commons/Net FTP component.

Maybe you are looking for

  • Web Dynpro ABAP Stylesheet - Portal Integration

    We have a Web Dynpro ABAP being displayed through a Portal iView.  The Portal server and the Web Dynpro ABAP server are separate.  Our problem is in getting the Web Dynpro ABAP to use the stylesheet of the Portal. We can make this work by forcing an

  • Macbook Pro 15" won't boot from ANYTHING :( Can't mount internal drive

    Hi there, I'm new to these forums so please bear with me if I make a faux pas. A few days ago while watching a movie on my MBP Intel Core 2 Duo 2.5 the beach ball of death appeared and the computer became unresponsive. I restarted to the flashing fol

  • One R/3 system, two BW systems

    Hi all BW experts, we have two BW systems connected to one R/3 system. One of the two BW systems is not in maintenance by our development team. In the User-Exit EXIT_SAPLRSAP_001 the code implemented for the extractors is valid for both BW systems. M

  • Video Drivers in Windows 7 64 bit cause Windows to crash after reboot

    I have a Mac Mini mid 2011, I installed Windows 7 64 bit through Bootcamp. After the install I install the Mac drivers. I have narrowed it down to the video card drivers are causing Windows to crash on reboot. Are there other drivers I can use? Am I

  • Brand new i7 causing peaking sound while midi recording or playing

    it was not a issue when i was with core 2 macbook, I recived the new one yesterday, when i play and record midi on GB or logic pro it cause like peak cpu sound and it is only one ( first ) channel without vst , ( with no external souncard) can someon