Business Objects Customization Using Class file without net bean

Hi,
Any one please help me out.
my requirement is like I want to use Business Objects SDK
<%@ page import="com.crystaldecisions.sdk.framework.CrystalEnterprise" %>
above is example..
in Class file of Java without using netbean.
I try to do this with creating Batch file add all Jar file and set path and but its not working.
Also can I Login Into business Objects through class file not using netbean(means from command prompt)
and create user group into CMS.

Please find following servlet code who dont understand my requirement.
* GroupCreation.java
* Created on September 2, 2008, 3:47 PM
import java.io.*;
import java.net.*;
import javax.servlet.*;
import javax.servlet.http.*;
import com.crystaldecisions.enterprise.ocaframework.ServiceNames;
import com.crystaldecisions.sdk.exception.SDKException;
import com.crystaldecisions.sdk.framework.CrystalEnterprise;
import com.crystaldecisions.sdk.framework.IEnterpriseSession;
import com.crystaldecisions.sdk.framework.ISessionMgr;
import com.crystaldecisions.sdk.occa.infostore.IInfoStore;
import com.crystaldecisions.sdk.occa.managedreports.*;
import com.crystaldecisions.sdk.occa.security.ILogonTokenMgr;
import javax.servlet.http.Cookie;
import com.crystaldecisions.sdk.occa.infostore.*;
import com.crystaldecisions.sdk.occa.pluginmgr.*;
import com.crystaldecisions.sdk.plugin.CeProgID;
import com.crystaldecisions.sdk.plugin.desktop.user.*;
import com.crystaldecisions.sdk.properties.*;
import javax.servlet.http.HttpSession;
* @author prashant.joshi
* @version
public class GroupCreation extends HttpServlet
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
HttpSession session = request.getSession(true);
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
String cms = request.getParameter("CMS");
String username = request.getParameter("UserID");
String password = request.getParameter("Password");
String auth = request.getParameter("Aut");
IEnterpriseSession enterpriseSession = null;
try
ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
catch(SDKException e)
out.println(e.getMessage());
Exception failure = null;
boolean loggedIn = true;
     // If no session already exists, logon using the specified parameters.
if (enterpriseSession == null)
try
// Attempt logon. Create an Enterprise session
// manager object.
ISessionMgr sm = CrystalEnterprise.getSessionMgr();
// Log on to BusinessObjects Enterprise
enterpriseSession = sm.logon(username, password, cms, auth);
catch (Exception error)
loggedIn = false;
failure = error;
if (!loggedIn)
// If the login failed, redirect the user to the start page.
out.println("<SCRIPT language=\"javascript\"> " +
" alert (\"Sorry - you could not be logged on to this server." +
" Ensure that your user name and password, as well as the CMS name are correct." +
"\"); </SCRIPT>");
out.println("<META HTTP-EQUIV='refresh' CONTENT='0;URL=LogonPage.jsp'>");
return;
else
try
// Store the IEnterpriseSession object in the session.
session.setAttribute("EnterpriseSession", enterpriseSession);
// Create the IInfoStore object.
IInfoStore iStore = (IInfoStore) enterpriseSession.getService("InfoStore",
ServiceNames.OCA_I_IINFO_STORE);
// Store the IInfoStore object in the session using the
// helper functions.
session.setAttribute("InfoStore", iStore);
// Create the IReportSourceFactory object.
IReportSourceFactory reportSourceFactory = (IReportSourceFactory) enterpriseSession.getService("PSReportFactory");
// Store the IReportSourceFactory object in the session
// using the helper functions.
session.setAttribute("ReportSourceFactory", reportSourceFactory);
// Retrieve the logon token manager.
ILogonTokenMgr logonTokenMgr = enterpriseSession.getLogonTokenMgr();
// Retrieve a logon token and store it in the user's cookie
// file for use later.
Cookie cookie = new Cookie("LogonToken", logonTokenMgr.createLogonToken("", 60, 100));
response.addCookie(cookie);
// LOCUse the plugin manager and the UserGroup plugin to create a new
// UserGroup object._ENDLOC_
// LOCIf the infoStore object is not found then display an error message._ENDLOC_
IInfoStore infoStore = (IInfoStore) session.getAttribute("InfoStore");
// LOCIf the infoStore object is not found then display an error message._ENDLOC_
if (infoStore == null)
throw new Error("_LOC_InfoStore object not found. Please logon again._ENDLOC_");
IPluginMgr pluginMgr = infoStore.getPluginMgr();
//IPluginMgr pluginMgr2 = infoStore.getPluginMgr();
IPluginInfo userGroupPlugin = pluginMgr.getPluginInfo("CrystalEnterprise.UserGroup");
// IPluginInfo userGroupPlugin2 = pluginMgr.getPluginInfo("CrystalEnterprise.UserGroup");
// LOCCreate a new InfoObjects collection._ENDLOC_
IInfoObjects newInfoObjects1 = infoStore.newInfoObjectCollection();
IInfoObjects newInfoObjects2 = infoStore.newInfoObjectCollection();
// LOCAdd the UserGroup interface to the new InfoObjects collection._ENDLOC_
newInfoObjects1.add(userGroupPlugin);
newInfoObjects2.add(userGroupPlugin);
// LOCGet the new UserGroup object from the collection._ENDLOC_
IInfoObject iObject1 = (IInfoObject) newInfoObjects1.get(0);
IInfoObject iObject2 = (IInfoObject) newInfoObjects2.get(0);
// LOCOnce you have the new UserGroup object, set its properties._ENDLOC_
iObject1.setTitle ("Single Home Group");
iObject1.setDescription ("It is Single Home Group");
iObject2.setTitle ("Multi home Group");
iObject2.setDescription ("It is multi Home Group");
// LOCRetrieve the ID of the InfoObject (user group)._ENDLOC_
// objectID = iObject.getID();
// LOCSave the new group to the CMS._ENDLOC_
infoStore.commit (newInfoObjects1);
infoStore.commit (newInfoObjects2);
catch(Exception ex)
// If the User group is already created.
out.println("<SCRIPT language=\"javascript\"> " +
" alert (\"Sorry - The User Group is already created Please enter another User Group." +
"\");</SCRIPT>");
out.println("<META HTTP-EQUIV='refresh' CONTENT='0;URL=LogonPage.jsp'>");
return;
// If the User is Logged on the Business objects
out.println("<SCRIPT language=\"javascript\"> " +
" alert (\"UserGroup get created in CMS.\"); </SCRIPT>");
out.println("<META HTTP-EQUIV='refresh' CONTENT='0;URL=LogOff.jsp'>");
out.close();
/** Returns a short description of the servlet.
public String getServletInfo() {
return "Short description";
// </editor-fold>
when I paste above code in simple notepad as class file and run this file from command prompt
it gives error like following 1 example I getting 46 errors for different Business Objects classes
symbol : variable CrystalEnterprise
location: class GroupCreation
ISessionMgr sm = CrystalEnterprise.getSessionMgr();
Please help me Out.
Thank you.

Similar Messages

  • Integration Directory Objects Transport Using the File System

    Hi
    I am trying to do the IR and ID Objects Transport Using the File system... I am able to Transport the IR Objects and IMport in to QA ... but when i try to Import ID objects its giving me the error...bcoz all the ID objects pointing to theSAP R/3 DEV system ( Interface Detremination, receiver determination ...)... do i have to config something in SLD ..so when i import the ID objects in to QA system it points to correct SAP R/3 QAS system...
    and we are using single SLD for all the DEV , QAS and PRD system
    SV
    Edited by: S V on Oct 15, 2008 4:08 AM

    Hi,
    You will have to configure transport targets like for different business systems in your dev environment, there shouls be corresponding Business systems in QUA environment. For more details refer the link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/a21e3e0987760be10000000a114084/frameset.htm
    Thanks!

  • Business Object and Global Classes

    is there any link between the Business Objects And Global Classes?
    Sameer

    Hi,
    BO is basicallya reporting tool...
    and now BO will be used for reporting on BW.....
    Check these details BW and BO integration..
    follow the link
    www.scribd.com/doc/7805501/BI-BO-Integration
    http://www.jonerp.com/content/view/170/46/
    Have a look at this:
    http://www.businessobjects.com/products/dataintegration/dataintegrator/sap.asp
    This link has lots of PDF documents between SAP and Business object:
    http://www.businessobjects.com/solutions/sap/default.asp
    Also check:
    http://www.dmreview.com/article_sub.cfm?articleId=2839
    http://searchsap.techtarget.com/general/0,295582,sid21_gci1077480,00.html
    check the foll links.
    http://www.businessobjects.com/solutions/sap/
    http://72.14.235.104/search?q=cache:A5mUGEzyGLUJ:www.businessobjects.com/pdf/solutions/xi_sap_insight.pdfBW%26BUSINESSOBJECTS&hl=en&gl=in&ct=clnk&cd=5
    http://www.buisnessobjects.com/news/press/press2003/cust_sapbw_webseminar.asp
    http://www.buisnessobjects.com/solutions/enterprise_solutions/operational_bi.asp
    http://www.businessobjects.com/products/
    http://help.sap.com/saphelp_erp2005/helpdata/en/a4/1be541f321c717e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/30/8d27425005ca7ee10000000a1550b0/frameset.htm
    regards
    Venkat...
    Edited by: Venkata Narayana Jakkampudi on Dec 30, 2008 12:57 PM

  • Business Objects 5.1 Standard File/Insert/Tools/etc. menu not displayed

    Post Author: wbartlett
    CA Forum: Older Products
    I'm a bit confused. As a user, I don't seem to see the Business Objects 5.1 Standard File/Insert/Tools/etc. menu when I sign on to B/O Reporter. The menu was appearing, but now it's gone!
    Any ideas?
    Thanks, bb
    This was resolved by Hari Prasad <@AMA"&gt;[email protected]>@AMA
    by replacing the REGEDIT entries

    Post Author: C.Sides
    CA Forum: Older Products
    The menu is accessable by using the <alt> shortcut keys (<alt>F brings up the File dropdown menu).  I was able to get the tool bars back by <alt>V - Toolbars but the menu is still not visible.

  • Time estimation of a class file without execution

    Can any body help me....
    I have to find the execution time of class files without execution.
    can I do it with java...!!!!!!!!!!

    Presumably this is a class assignment and not a work assignment. If it is for work then either ask for justification for this stupidity or start playing games and looking for another job.
    Use javap and count the byte codes. Each byte code has a size so give a execution time of n X size. Each branch has a execution time of n X size + 1 (since it take longer.) Each method call is n X size + 2 (a goto and a return.)
    'n' in the above is an arbritrary constant.
    Each method is the sum of its contents. If you have a loop that calls a method you have to estimate the average loops and use that multiplied by the method count.
    For system methods you will just have to list them and give each a unknown time, since presumably you aren't analyzing everything.

  • Getting Package Name From Class File Without Parsing File

    I am writing an application where I need to get the package name from a class file without parsing the class file itself.
    Basically, what happens is the user chooses a class file from anywhere in the file system. I then want to use reflection to get information about that class. To do that I need the fully qualified class name. I know that the package name is part or all of the path name but I don't know for sure which part it is. I don't want to parse the class file directly for the package name in case the class file spec is changed (that way I won't have to rewrite any code).
    Does Java have any way of getting this information without doing something stupid like gradually stripping off part of the pathname and trying it?

    The ClassLoader way seems to work fine, copy a class file to "A.class" and run this:import java.io.*;
    class ClassLoaderExample {
        public static void main(String[] args) throws Exception {
            class MyClassLoader extends ClassLoader {
                public Class load() throws IOException {
                    File f = new File("A.class");
                    byte[] classData = new byte[(int) f.length()];
                    new RandomAccessFile(f, "r").readFully(classData);
                    Class loaded = defineClass(null, classData, 0, classData.length);
                    resolveClass(loaded);
                    return loaded;
            Class c = new MyClassLoader().load();
            System.out.println(c);
            System.out.println(c.newInstance());
    }

  • How use class file in jsp(very urgent)

    i have class file called birds (birds is actually a xslt file transformed to java class file) now this class file i have to use in my jsp file. how can i use them. if possible can any one give me sample code please very urgent
    can any one help me

    java files
    import org.w3c.dom.*;
    import javax.servlet.http.*;
    import javax.xml.transform.*;
    import javax.xml.transform.stream.*;
    import java.io.*;
    public class XmlParser
         public String XmlParser()
              try
    String strXML= "employee.xml";
                   String xslFile = "employeeId.xsl";
                   TransformerFactory tFactory = TransformerFactory.newInstance();
                   StreamResult theTransformationResult = new StreamResult( new ByteArrayOutputStream() );
                   Transformer transformer = tFactory.newTransformer(new StreamSource(xslFile));
                   transformer.transform(new StreamSource(new StringReader(strXML)), theTransformationResult);
                   String output = theTransformationResult.getOutputStream().toString()
              catch(Exception e)
                   System.out.println(" ***** XmlParser.XmlParser ERROR ***** " + e);
    return output;
    using class files in jsp
    <%@ page import="com.qqqq.aaaa.XmlParser"%>
    <%
         XmlParser xmlParser          =     new XmlParser();
    out.println(xmlParser.XmlParser());
    %>
    i think it will help you.

  • How to use .class files from jsp

    hi i want to use .class files in my jsp program can any one help me

    so if you are using pacakges here is normal example...
    say you .java code is something like...
    package com.util;
    public Class BeanUtility{
    }place the .class file at WEB-INF/classes/com/util folder if those folders are missing create it and place the .class file there. or pacakage it as a jar file & put it into WEB-INF/lib folder
    Now in jsp you can either use jsp:Usebean tag or use normal scriplets to create an instance of the nessary class...
    here is an example for you
    <%@ page language="java" import="com.util.BeanUtility" %>
    <%
    BeanUtility bn = new BeanUtility();
    %>however,i'd suggest you to make use of JSTL / Inbuilt tag libraries /MVC 2.0 approach for better maintainance & readablity.
    Hope this might help
    REGARDS,
    RaHuL

  • Business Object BUS1065 using PA30

    Dear Experts,
    As per my requirement, I am using business object BUS1065 in PA30 for creating attachment and stored document until here it is working fine but the business object is not taking the info type value which is I entered in PA30 transaction. I am found this problem in OAAD transaction where I am testing the attachment file .
    Please assist me on this issue, If any one have idea about the issue.
    I had tried to find in SAP FORUM, but I could not get like this issue.
    Appreciate your response.
    Thank you.
    Regards,
    Prasad.

    Hi Robert,
    The DI API documentation about the UserPermission + UserPermissionTree object mentions that:
    It mentions it in the introduction to this object - and essentially in the <b>Remarks</b> it even points you to the menu.
    Regards,
    Frank

  • How to use vector file without adobe illustrator?? please help

    I am using the free trial period of adobe illustrator to creat a logo.  I don't want to buy illustrator b/c I don't plan on using the program for anything else,  I would like to save my logo in some kind of vector format so I can use it for lots of different printing options.  But I can't figure out how to do this b.c my computer won't open the file without illustrator.  Is there anyway to creat a usable print friendly logo without buying illustrator? Thanks for any help!

    I believe if you export it to wmf or emf you will have a Vector file that can be used in word or powerpoint and can be placed in other programs as can ai files which can be placed in word or powerpoint documents as vector files.
    Flash (swf) is another way of saving it and it is also vector.
    However even though you say you will never have use for Illustrator which is what I thought in 1995 when I use it to create a logo, I soon found more use for it and every year since have found a project that has rewarded me many times the cost of the application once I had purchased it. Most of which I never thought I had the need for and probably would not have even made the attempt to make the effort and the profit if I did not own the license.
    And every time I say to myself what do i have this application for the opportunities arises yet again.
    I thought I would share my experience with you.

  • Using class files with applets

    I've converted a college project, a calculator, into an applet for a website resume. When the html file that loads the applet is opened on a machine with a JVM, the applet works fine. When I tested it on a machine that doesn't have a JVM, the applet wouldn't open.
    I'm assuming its because I'm using methods from classes such java.math, java.awt and java.awt.event. I wanted to try to include the neccessary class files into a .jar file that could be included into the archive attribute. Would this work? and also, where can I actually find these files so that I can put them into a jar file. For example, which directories would I look at to find them? I'm on Mac OS 10.3.7.
    Even with a search utility,I can't find the specific files with I'm looking for.
    Any help is greatly appreciated

    Hi,
    It doesn't matter that you have used classes in the packages java.math etc. The application will never run if there isn't a JRE installed for the web browser. I think most people usually puts a script on the html page which detects if a JRE is installed, and directs users to the download page if there is no JRE.
    Kaj

  • How to use jar files without setting classpath

    Hi,
    I have a situvation, I can not set classpath, but i have to use jar files, how can I do that.

    URL[] urls = new URL[]{pathToJar, pathToAnotherJar, ...};
    URLClassLoader urlc = new URLClassLoader(urls);
    Now load classes within the jars loaded by the urlc classloader as needed. This is a limited approach, you can mostly use interfaces to work with classes loaded by the custom loader instance above and your existing classes.

  • Save metada of Business Objects locally using JCO

    Hi.
    After retrieving the metadata of Business Objects, using JCO, (i.e. i have replicated the BAPI Explorer), I would like to save a particular Application Heirarchy Area & all Business Objects under it locally (e.g. Financial Acounting and all business objects under that area). I know there is a Save on the IRepository interface, but this seems to save all cached functions - that is not what i want ! Is there any way to save the metadata of those business objects using JCO ? Or should i just create my own Save which will save the metadata i want (to XML).
    thanks
    Javed.

    Hello Javed,
    to my opinion the best way to save the metadata, is to create your own xml structure. The methods save/load are only for handling the name of the repository and of the names of the functions and structures.
    Regards,
    Daniel

  • Business Object UserPermission using Table USR3

    Hi,
       Does anybody know where in the SAP B1 functionality the table USR3 (for Business Object UserPermission) and/or table OUPT (for Business Object UserPermissionTree) get populated?
      Thanks in advance.

    Hi Robert,
    The DI API documentation about the UserPermission + UserPermissionTree object mentions that:
    It mentions it in the introduction to this object - and essentially in the <b>Remarks</b> it even points you to the menu.
    Regards,
    Frank

  • Can you execute a class file without invoking the command line java command

    I am running java on a Windows XP equipped machine, and I am wondering if it is possible to execute a class file by double clicking the file icon, or can it only be done via command line. So far I have been unsuccessful in my attempts - I tried associating the class file with the java executable in my JRE directory, but that didn't work.
    Many thanks,
    -Stile

    nope, can't be done, by design... microsoft recognised java as threat to the empire very early on in the peace.... but you can write a batch file to execute myprogram.class called myprogram.bat and stick it in your PATH.
    keith.

Maybe you are looking for

  • Issue in Customizing the Logon Page and Replacing the Logon Panel Image

    I have facing problem in Customizing the Logon Page and Replacing the Logon Panel Image in Hyperion Workspace 11.1.2.1. I have tried multiple time. First Replacing the Logon Panel Image. I have following the steps given in admin guide of EPM workspac

  • Grab default image type

    I use grab a lot, and i mean a lot, for my blog, and for album art. When I upload pictures to my blog. They only accept jpeg and a couple other image types. Grabs default image type is .tiff. Is there any way to set the default image type to .jpeg?

  • Flash as 2.0

    How to add spell check in text area, please guide me.

  • Samsung SGH-L768 - Unsupported file type

    I have downloaded games for my Samsung SGH-L768 but everytime i try to open it "unsupported file type" appears. I have resized game resulotion but still nothing happened. I believed my mobile is java compatible ----- WHAT'S WRONG? NEED HELP....

  • How best to keep the topcase of a MacBook Pro clean to avoid aluminum splotches?

    On the Apple support pages it says: MacBook, MacBook Pro, and MacBook Air When cleaning the outside of your MacBook, MacBook Pro, or MacBook Air, first shut down your computer and unplug the power adapter. Then use a damp, soft, lint-free cloth to cl