Java 2 SDK environment

Hello to eveyone.
I'm new to java, and i have downloaded the j2ee 1.4 Beta and j2se.after installing the virtual machine and the sdk i didn't see any kind of IDE. it's normal or we have to adquire and install it seperatly?
Sugestions are always welcome
Br

Hi.
That's right. The SDK doesn't come with an IDE. In fact I don't know any other programming language where an IDE would be included with an SDK...
I'm using NetBeans as my Java IDE and I'm quite happy with it. You can download the latest NetBeans version from http://www.netbeans.org.
Regards,
Kai

Similar Messages

  • Does the java 1.4.2 sdk install the Java Runtime Environment twice?

    I just installed this and I noticed that it appears I have two copies of the JRE one in C:\Program Files\Java\j2re1.4.2 and one in C:\j2sdk1.4.2\jre\
    The contents of both folders look identical to me. Did the SDK install two copies? Did one copy come with Windows XP or Service Pack 1? In Add/Remove Programs there is one entry for the Java Runtime Environment and one for the SDK. I'd like to get rid of one of the copies of the JRE if possible. Thanks,
    Ollie

    The copy in Program Files is likely the Java plug-in used with your web browser. I only have 1.3.1 installed so I can't positively confirm your 1.4 installation. Under Control Panels, you should have a Java Plug-in control.

  • Whats is difference between Java JRE  and  Java SDK

    Hi,
    what is the difference between Java JRE and Java SDK...
    i think both of them have the same set of files to be installed...
    I am not able to understand where they differ

    The JRE (Java runtime Environment) contains just the stuff necessary to run Java and the SDK (System Development Kit) contains the extra stuff necessary (and also helpful) to develop in Java.

  • Installation Problem - Java SDK 1.4.1

    I have a problem with installing Java on my machine at home that you may be able to help me with.
    Here are the Details: 1) I installed the most recent java SDK on my machine. 2) I set the Autoexec file with the correct PATH statement. 3) Set the correct CLASSPATH statement 4) The "Java -Version" statement gives the correct reply that it is version 1.4.
    Below is my AutoExec.bat file
    SET windir=C:\WINDOWS
    SET winbootdir=C:\WINDOWS
    SET COMSPEC=C:\WINDOWS\COMMAND.COM
    SET PATH=C:\PROGRA~1\MICROS~3\OFFICE;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\ATF
    SET CLASSPATH=C:\J2SDK1_4\LIB\TOOLS.JAR;.;
    SET PROMPT=$p$g
    SET TEMP=C:\WINDOWS\TEMP
    SET TMP=C:\WINDOWS\TEMP
    Problem: Trying to compile a simple "HelloWorld" Program with "javac Helloworld.java" produces the error "Bad Command or File name".
    Issues: Command Line in Windows ME requires 8.3 format. Inserts tilde "~" and a number into the names of the files. even using a short name such as "HelWrld.java" inserts a tilde because of the "java" extension. Have tried using a "jav" extension but that does not work as the error is the same.
    Question: How can I get rid of the "Bad Command or File Name"?

    My First Java Progam (for Windows with Java 2 SDK v1.4.1)
    Follow these instructions EXACTLY.
    1. Download and install the Java 2 SDK, Standard Edition. You can find it here:
    http://java.sun.com/j2se/downloads.html
    Select the download for your operating system and be sure to download the SDK (rightmost column) and not the JRE. (The JRE is only the Java Runtime Environment, which does not include the Java compiler and other tools needed for software development).
    2. Read the README and installation instructions! Read these instead of asking questions about installation etc. in the Java forums.
    README for Java 2 SDK v1.4.1: http://java.sun.com/j2se/1.4.1/README.html
    Java 2 SDK v1.4.1 for Windows installation: http://java.sun.com/j2se/1.4.1/install-windows.html
    Things to note:
    - After installing, add the bin directory of the SDK to your PATH environment variable. For example, if you installed the SDK in C:\j2sdk1.4.1_01, add the directory C:\j2sdk1.4.1_01\bin to your PATH. (If you don't know what an environment variable is and how to set it, read the documentation of Windows; if you're using Windows XP, this might be useful: http://support.microsoft.com/default.aspx?scid=KB;EN-US;q310519& ).
    3. Open Notepad and type in your first program:
    public class HelloWorld {
    public static void main(String[] args) {
    System.out.println("Hello World!");
    Save this program somewhere with the filename "HelloWorld.java".
    Things to note:
    - The case of text is important. Don't type "Helloworld", "helloworld" or anything else. Also the case of the filename is important (even though Windows has case-insensive filenames!).
    - Watch out that Notepad doesn't append ".txt" to the filename. The file should be named "HelloWorld.java", not "HelloWorld.java.txt".
    4. Open a command prompt and go to the directory that contains the file "HelloWorld.java" (with the CD command).
    5. Compile the progam with the following command:
    javac HelloWorld.java
    Things to note:
    - If you get something like "Unknown command: javac" or "Bad command or filename", you did not (correctly) add the bin directory of the SDK to the PATH (see step 2).
    6. Run the program. If you didn't get any compile errors, you now have a new file "HelloWorld.class" in the same directory. Run the program with the following command:
    java HelloWorld
    Things to note:
    - If you get: "Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld/class", you have typed "java HelloWorld.class". Leave off the ".class" at the end. You are typing a class name here, not a filename.
    - If you get something like: "Exception in thread "main" java.lang.NoClassDefFoundError: helloworld (wrong name: HelloWorld)", you have typed the class name wrong. Note that the case is important (i.e., don't type "helloworld" but "HelloWorld")!
    - You don't need to set any classpath here. In Java 1.4, the current directory is included in the classpath automatically. For older versions of Java, you may need to add the current directory (".") to the classpath, like this:
    java -classpath . HelloWorld
    7. Congratulations with your first working Java program. Now follow these links:
    Java Tutorial
    http://java.sun.com/docs/books/tutorial/
    New to Java Programming Center
    http://developer.java.sun.com/developer/onlineTraining/new2java/
    FAQ
    http://java.sun.com/products/jdk/faq.html
    How Classes are Found
    http://java.sun.com/j2se/1.4/docs/tooldocs/findingclasses.html
    Setting the class path
    http://java.sun.com/j2se/1.4/docs/tooldocs/win32/classpath.html
    JavaTM 2 SDK Tools and Utilities
    http://java.sun.com/j2se/1.4/docs/tooldocs/tools.html
    Jesper

  • Java  sdk 1.4.2 Windows 2008 SAP ECC 6.0 SR3

    Hello,
    I want to install SAP ECC 6.0 SR3on server which is running windows 2008.
    The operation system is 64 bit version with a Xeon processor.
    I folow the following path to Download a j2sdk version http://java.sun.com/j2se/1.4.2/SAP/download.html.
    Downloaded j2se v 1.4.2_17-x64 SDK (j2sdk-1.4.2-17-windows-amd64.exe).
    When I installed This version of java. It seems to be OK, but after setting the envirnment variabeles path and Java_home, the java version is not working.
    When I try to run SAPinst  this error prompt u201CThe SAPinst could not started because a java runtime Environment (JRE) could not be found.
    Please help me
    Regards,
    A3

    Hi Bas,
    What error you are getting?
    Java version not working meand???????
    Just install java, set JAVA_HOME, PATH variables and restart your server/system.
    Then check and send us the result.
    Regards

  • Java SDK  on sun machine

    How do i find out the Java SDK is installed or not in the sun machine ?
    What is the command to find the version of the SDK ?
    Thanks .

    Hi, i have set my environment variables for java
    JAVA_HOME : C:\Program Files\Java\jdk1.5.0_15
    path: C:\Program Files\Java\jdk1.5.0_15\bin
    It still points to 1.4. By the way, i never install 1.4 version into my machine personally. I think it comes with vista

  • BIP Desktop installation "java runtime environment not installed"

    I keep getting the "java runtime environment not installed" error when I try to install BIP desktop.
    I have JRE both as part of the BIP Enterprise Edition install and also because I installed (and reinstalled) SUN Java SDK.
    Any help would be appreciated.

    I reinstalled JDK with the JRE. That seemed to do the trick.

  • Listener port JAVA SDK

    Hi,
    I've currently got a RAS server talking back to the web application server (Tomcat) through a firewall. I've set the request port on the RAS server and now need to set the listener port on the BO Enterprise JAVA SDK. CE10 documentation mentions setting the System.setProperty("ooc.iiop.port", "6420"); property for the JAVA SDK.
    I'm afraid I'm clueless as to where this should be applied, likewise as I'm currently running XIR3.1 I'm not even sure if this is still applicable.
    I have seen the registry keys for uppoer and lower port, will these do the trick?
    Any help would be appreciated.
    Thanks!

    Hi Stratos,  thanks for the quick reply.
    As this issue is directly related to network connectivity between the RAS server and the web application server i.e. the architecture of the environment and not SDK development, I see no reason why it shouldn't be posted under the enterprise administration forum.
    Pages 12 - 14 of the below document discuss the issue in detail:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0047e5f4-3140-2b10-1bae-de175e4c741c
    or in brief:
    "When the RAS server receives a request to process a report, it accepts and processes the request. When it finishes processing, it creates its own connection back to the Crystal Enterprise SDK on the application server."
    This relates to a CE10 environment, I'm hoping to find details on a BOEXIR3.1 environment.
    I hope that helps to clear things up.

  • How to uninstall Java SDK 1.5.0_14

    Dear,
    I just installed a brand new Solaris 10 and latest patch cluster.
    Default on my system are the following 2 folders under /usr/jdk:
    j2sdk1.4.2_11 and jdk1.5.0_06
    I installed the Java SDK 1.5.0_14, but in the wrong destination folder.
    When I check my Java version with "Java -version"
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
    Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode)
    Why I don't have the latest one, the SDK 1.5.0_14 ?
    My question: I want a proper situation with only the Java SDK 1.5.0_14 installed.
    How do I remove Java SDK 1.5.0_14.
    How do I remove Java SDK 1.5.0_6
    Do I have to remove the 1.4.2_11 ?
    Thx guys...

    Thx for your answer...
    I want to have the installation of Java SDK 1.5.0_14 in a different location ?
    Can I just move the folder ?
    But I guess it's better to do uninstall and re-install it ?
    Right ?
    Thx in advance guys... (I'm not yet worked in in this stuff...)

  • How to create a report with data using the Crystal Reports for Java SDK

    Hi,
    How do I create a report with data that can be displayed via the Crystal Report for Java SDK and the Viewers API?
    I am writing my own report designer, and would like to use the Crystal Runtime Engine to display my report in DHTML, PDF, and Excel formats.  I can create my own report through the following code snippet:
    ReportClientDocument boReportClientDocument = new ReportClientDocument();
    boReportClientDocument.newDocument();
    However, I cannot find a way to add data elements to the report without specifying an RPT file.  Is this possible?  I seems like it is since the Eclipse Plug In allows you to specify your database parameters when creating an RPT file.
    is there a way to do this through these packages?
    com.crystaldecisions.sdk.occa.report.data
    com.crystaldecisions.sdk.occa.report.definition
    Am I forced to create a RPT file for the different table and column structures I have? 
    Thank you in advance for any insights.
    Ted Jenney

    Hi Rameez,
    After working through the example code some more, and doing some more research, I remain unable to populate a report with my own data and view the report in a browser.  I realize this is a long post, but there are multiple errors I am receiving, and these are the seemingly essential ones that I am hitting.
    Modeling the Sample code from Create_Report_From_Scratch.zip to add a database table, using the following code:
    <%@ page import="com.crystaldecisions.sdk.occa.report.application.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.document.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.definition.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
    <%@ page import = "com.crystaldecisions.report.web.viewer.*"%>
    <%
    try { 
                ReportClientDocument rcd = new ReportClientDocument();
                rcd.newDocument();
    // Setup the DB connection
                String database_dll = "Sqlsrv32.dll";
                String db = "qa_start_2012";
                String dsn = "SQL Server";
                String userName = "sa";
                String pwd = "sa";
                // Create the DB connection
                ConnectionInfo oConnectionInfo = new ConnectionInfo();
                PropertyBag oPropertyBag1 = oConnectionInfo.getAttributes();
                // Set new table logon properties
                PropertyBag oPropertyBag2 = new PropertyBag();
                oPropertyBag2.put("DSN", dsn);
                oPropertyBag2.put("Data Source", db);
                // Set the connection info objects members
                // 1. Pass the Logon Properties to the main PropertyBag
                // 2. Set the Server Description to the new **System DSN**
                oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_LOGONPROPERTIES, oPropertyBag2);
                oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_SERVERDESCRIPTION, dsn);
                oPropertyBag1.put("Database DLL", database_dll);
                oConnectionInfo.setAttributes(oPropertyBag1);
                oConnectionInfo.setUserName(userName);
                oConnectionInfo.setPassword(pwd);
                // The Kind of connectionInfos is CRQE (Crystal Reports Query Engine).
                oConnectionInfo.setKind(ConnectionInfoKind.CRQE);
    // Add a Database table
              String tableName = "Building";
                Table oTable = new Table();
                oTable.setName(tableName);
                oTable.setConnectionInfo(oConnectionInfo);
                rcd.getDatabaseController().addTable(oTable, null);
        catch(ReportSDKException RsdkEx) {
                out.println(RsdkEx);  
        catch (Exception ex) {
              out.println(ex);  
    %>
    Throws the exception
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
    There was other sample code on SDN which suggested the following - adding the table after calling table.setDataFields() as in:
              String tableName = "Building";
                String fieldname = "Building_Name";
                Table oTable = new Table();
                oTable.setName(tableName);
                oTable.setAlias(tableName);
                oTable.setQualifiedName(tableName);
                oTable.setDescription(tableName) ;
                Fields fields = new Fields();
                DBField field = new DBField();
                field.setDescription(fieldname);
                field.setHeadingText(fieldname);
                field.setName(fieldname);
                field.setType(FieldValueType.stringField);
                field.setLength(40);
                fields.add(field);
                oTable.setDataFields(fields);
                oTable.setConnectionInfo(oConnectionInfo);
                rcd.getDatabaseController().addTable(oTable, null);
    This code succeeds, but it is not clear how to add that database field to a section.  If I attempt to call the following:
    FieldObject oFieldObject = new FieldObject();
                oFieldObject.setDataSourceName(field.getFormulaForm());
                oFieldObject.setFieldValueType(field.getType());
                // Now add it to the section
                oFieldObject.setLeft(3120);
                oFieldObject.setTop(120);
                oFieldObject.setWidth(1911);
                oFieldObject.setHeight(226);
                rcd.getReportDefController().getReportObjectController().add(oFieldObject, rcd.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0), -1);
    Then I get an error (which is not unexpected)
    com.crystaldecisions.sdk.occa.report.lib.ReportDefControllerException: The field was not found.---- Error code:-2147213283 Error code name:invalidFieldObject
    How do I add one of the table.SetDataFields()  to my report to be displayed?
    Are there any other pointers or suggestions you may have?
    Thank you

  • How to get all permissions on server level and project collection level via tfs java sdk?

    i need to list project-collection level's permission and project level's permission on my project. now i have connected to tfs and i have got project collection list and user list via tfs java sdk. but i can't find the way to get the permission name list
    and permission list. how can i do to get that?
    i have checked the database, and find that the actions have some discrepancies with the tbl_securityaction'data.
    Can anyone give me some advice on that?
    davy

    David, Thanks for your reply.
    I have test the code above, but still get error. here is my code:
    final TFSTeamProjectCollection tpc = SnippetSettings.connectToTFS();
    final DefaultClientFactory factory = new DefaultClientFactory();
    final IIdentityManagementService2 ims = (IIdentityManagementService2)factory.newClient(IIdentityManagementService2.class, tpc);
    final String scopeId = null;
    final String[] propertyNameFilters = null;
    TeamFoundationIdentity[] appGroups = ims.listApplicationGroups(scopeId, ReadIdentityOptions.EXTENDED_PROPERTIES, propertyNameFilters, IdentityPropertyScope.BOTH);
    error message:
    java.lang.NullPointerException
    at com.microsoft.tfs.core.clients.webservices.IdentityManagementService2.listApplicationGroups(IdentityManagementService2.java:92).
    davy

  • How manage timeout Session using java SDK?

    Hi everyone !
    I'm working with BO 4.1 and the Java SDK. I'm refreshing and exporting webi reports in my code. But it happens, sometimes, the report takes longer to refresh (when calling "setPrompts") and the session is over (timeout like when you're connected in the Launchpad).
    Is there any specific way for me to test if the call to setPrompts ends without timeout? Because, now, if it ends by a timeout, I do not see anything and I'm exporting a blank document. No error or exception :-/
    Do I have to use de EnterpriseSession?
    Thanks in advance !

    Hi Jerome,
    To understand BO session management, refer to the below document.
    http://scn.sap.com/community/bi-platform/blog/2013/11/27/session-management-bible
    How do you specify that there is a timeout? Do you get timeout errors in web intelligence server logs?
    Check whether enterprise session is still valid.
    What is the approximate time delay you observe for setPrompts when you observe the timeout?
    -Prithvi

  • I am trying to install the "Java Runtime Environment" plugin. It is continuously showing as not available. What can I do to get round this?

    I am asked to install this update by an educational website.
    The sequence of events is:
    1. Message appears at interactive site on page "A plugin is needed to display this content." along with an Install Plugin button.
    2.Pressing the install button brings up a dialogue box, "Plugin Finder Service" with "Java Runtime Environment" ticked.
    3. I press "Next" to install. New dialogue box comes up showing "Java Runtime Environment" as "Not available" and states that no plugins were installed.
    4. The only availablre option "finish," closes the dialogue box.
    I have tried following instructions in help but these always bring me back to the same process. I have downloaded the most recent Java software and nothing has changed.
    Any ideas to successfully install "Java Runtime Environment." Maybe there's a successor plug-in.
    All help gratefully received.
    Thanks,
    Andrew Bramley

    Hello Andrew, try download [https://www.java.com/en/download/faq/whatis_java.xml Java Runtime Environment (JRE)] from the next link : https://www.java.com/en/download/ . If you can not then try the manual way from the next link : https://www.java.com/en/download/manual.jsp (select the Windows Offline, filesize: 28.0 MB). In.... general, try to use the official sites when you install Java or flash etc.
    thank you

  • SAP BO Report Scheduling and Save as report using Java SDK

    Hi All,
    We have a java product which is integrated with SAP BO using Java SDK and we have certain java screen through which we select report prompt values and webi report gets run.
    Now we want to give a functionality to save report to BO repository.
    When user select certain check box from java screen a separate copy of the webi report should get saved under default folder on BO repository.
    Also, we want user to choose the scheduling option from java screen only (and not the one which we use from BI Launchpad) due to certain access restriction. User does not have access to BI Launchpad. Only he can run report by selecting values through Java screen.
    If i need to create a separate screen for scheduling as well as saving webi report then also i am ok with it.
    P.S. i guess we need to work on Java SDK level. But could somebody please help me with the right direction?
    Let me know in case requirement is not clear.

    Hi Ketan,
    As you are on version BI 4.0 SP5 and would be migrating to BI 4.1, the best SDKs to use would be the Restful Webservices SDKs.
    You have the options to schedule a webi report with prompts as well as the save feature which you require.
    Please refer to the webi restful guides avialble at
    For BI 4.0 SP5
    http://help.sap.com/businessobject/product_guides/boexir4/en/xi4sp5_webi_restful_ws_en.pdf
    For BI 4.1 SP4
    http://help.sap.com/saphelpiis_sbo41sp4wi-sdk/frameset.htm
    Refer to the below blog to understand the Restfull Webservices SDKs.
    http://scn.sap.com/community/restful-sdk/blog/2013/09/07/scripting-web-intelligence-the-restful-raylight-web-services--learing-it
    More blogs on Rest are available at
    http://scn.sap.com/community/restful-sdk/content#filterID=contentstatus%5Bpublished%5D~objecttype~objecttype%5Bblogpost%5D
    You can find the samples from the below link
    http://scn.sap.com/community/restful-sdk/content#filterID=contentstatus%5Bpublished%5D~objecttype~objecttype%5Bdocument%5D
    You would need to refer to the community below in case you have concerns about Rest SDKs.
    http://scn.sap.com/community/restful-sdk
    Thanks,
    Prithvi

  • An unexpected error has been detected by Java Runtime Environment

    Hi there,
    I am trying to run my application in java and suddenly java started giving me the bellow error:
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d81bd10, pid=1500, tid=3624
    # Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode windows-x86)
    # Problematic frame:
    # V [jvm.dll+0x5bd10]
    # An error report file with more information is saved as:
    # G:\My Documents\UCY\Graduate\Final Year Project\Persona\Testing\hs_err_pid1500.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    I do not believe that this is a problem in my code as this was working before.
    Also the system works fine for about 20 iterations of the same code and then displays this error
    I also try to uninstall and reinstall java but with no luck.
    I am also attaching the log file that java has saved some information.
    Thanks a lot for your help in advance.
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d81bd10, pid=1500, tid=3624
    # Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode windows-x86)
    # Problematic frame:
    # V [jvm.dll+0x5bd10]
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    --------------- T H R E A D ---------------
    Current thread (0x0aaa0c00): VMThread [stack: 0x0ab30000,0x0ab80000] [id=3624]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000050
    Registers:
    EAX=0x00000000, EBX=0x003abcec, ECX=0x072d0106, EDX=0x00000000
    ESP=0x0ab7f5bc, EBP=0x003abc60, ESI=0x06b29bc8, EDI=0x06b29bc8
    EIP=0x6d81bd10, EFLAGS=0x00010246
    Top of Stack: (sp=0x0ab7f5bc)
    0x0ab7f5bc: 06b29bc8 06b29bc8 00000000 6d940820
    0x0ab7f5cc: 6d7dcc8b 06b29bc8 0ab7f618 0ab7f618
    0x0ab7f5dc: 00000002 003aa9f8 6d86cd11 06b29c45
    0x0ab7f5ec: 003abab8 6d86cae1 003abcb0 6d83c5a3
    0x0ab7f5fc: 0ab7f618 00000000 003aaa50 06b29c45
    0x0ab7f60c: 6d86c927 0ab7f618 00000000 6d99f718
    0x0ab7f61c: 06b29c45 00000000 6d8676c3 06b29c45
    0x0ab7f62c: 06b29c45 00000000 0ab7f748 00000000
    Instructions: (pc=0x6d81bd10)
    0x6d81bd00: 08 07 c1 e8 02 25 fe ff ff 3f 5e 59 c3 8b 11 56
    0x6d81bd10: ff 52 50 5e 59 c3 cc cc cc cc cc cc cc cc cc cc
    Stack: [0x0ab30000,0x0ab80000], sp=0x0ab7f5bc, free space=317k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [jvm.dll+0x5bd10]
    VM_Operation (0x0090f410): GenCollectForAllocation, mode: safepoint, requested by thread 0x003a6400
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x0aade000 JavaThread "&#1281;&#49164; &#4944;&#1689;&#23520;&#1689;&#1088;&#1689;&#28936;&#1690;&#23520;&#1689;&#1072;&#1689;&#752;&#1689;&#1041;&#32768;&#27880;&#1690;&#65535;&#32767;&#23224;&#1689;&#21840;&#1689;&#22128;&#1689;&#21992;&#1689;&#22312;&#1689;&#600;&#1689;&#18011;&#480;&#1689;&#26688;&#28059;&#1538;&#49164; &#4944;&#1689;&#23520;&#1689;&#1424;&#1689;&#29032;&#1690;&#23520;&#1689;&#1408;&#1689;&#1088;&#1689;&#1041;&#32768;&#27496;&#1690;&#65530;&#32767;&#23224;&#1689;&#21840;&#1689;&#22128;&#1689;&#21992;&#1689;&#22312;&#1689;&#600;&#1689;&#17499;&#480;&#1689;&#26688;&#28059;&#1795;&#49168; &#4944;&#1689;&#23520;&#1689;&#1760;&#1689;&#29128;&#1690;&#23520;&#1689;&#1744;&#1689;&#1424;&#1689;&#1041;&#32768;&#27592;&#1690;&#65532;&#16383;&#23224;&#1689;&#21840;&#1689;&#22128;&#1689;&#21992;&#1689;&#22312;&#1689;&#600;&#1689;&#16987;&#480;&#1689;&#26688;&#28059;&#2048;&#49164; &#4944;&#1689;&#23520;&#1689;&#2096;&#1689;&#29224;&#1690;&#23520;&#1689;&#2080;&#1689;&#1760;&#1689;&#1041;&#32768;&#18512;&#1730;&#27688;&#1690;&#65535;&#32767;&#23224;&#1689;&#21840;&#1689;&#22128;&#1689;&#21992;&#1689;&#22312;&#1689;&#600;&#1689;&#21339;&#480;&#1689;&#26688;&#28059;&#2305;&#49164; &#4944;&#1689;&#23520;&#1689;&#2432;&#1689;&#29320;&#1690;&#23520;&#1689;&#2416;&#1689;&#2096;&#1689;&#1041;&#32768;&#31408;&#1722;&#28072;&#1690;&#65535;&#32767;&#23224;&#1689;&#21840;&#1689;&#22128;&#1689;&#21992;&#1689;&#22312;&#1689;&#600;&#1689;&#18779;&#480;&#1689;&#26688;&#28059;&#2562;&#49164; &#4944;&#1689;&#23520;&#1689;&#2768;&#1689;&#29416;&#1690;&#23520;&#1689;&#2752;&#1689;&#2432;&#1689;&#1041;&#32768;&#27640;&#1729;&#27400;&#1690;&#65530;&#32767; daemon [_thread_blocked, id=3244, stack(0x0ae00000,0x0ae50000)]
    0x0aad4400 JavaThread "" [_thread_blocked, id=1788, stack(0x0adb0000,0x0ae00000)]
    0x0aac6c00
    [error occurred during error reporting (printing all threads), id 0xc0000005]
    VM state:at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
    [0x003a5ab0/0x00002710] Threads_lock - owner thread: 0x0aaa0c00
    [0x003a5c50/0x000026d0] Heap_lock - owner thread: 0x003a6400
    Heap
    def new generation total 960K, used 64K [0x02990000, 0x02a90000, 0x02e70000)
    eden space 896K, 0% used [0x02990000, 0x02990000, 0x02a70000)
    from space 64K, 100% used [0x02a70000, 0x02a80000, 0x02a80000)
    to space 64K, 0% used [0x02a80000, 0x02a80000, 0x02a90000)
    tenured generation total 4224K, used 4223K [0x02e70000, 0x03290000, 0x06990000)
    the space 4224K, 99% used [0x02e70000, 0x0328fc38, 0x031a2200, 0x03290000)
    compacting perm gen total 12288K, used 4879K [0x06990000, 0x07590000, 0x0a990000)
    the space 12288K, 39% used [0x06990000, 0x06e53cc0, 0x06e51200, 0x07590000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x00423000      C:\Program Files\Java\jre1.6.0_06\bin\javaw.exe
    0x7c900000 - 0x7c9b0000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f5000      C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f02000      C:\WINDOWS\system32\RPCRT4.dll
    0x77fe0000 - 0x77ff1000      C:\WINDOWS\system32\Secur32.dll
    0x7e410000 - 0x7e4a0000      C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f57000      C:\WINDOWS\system32\GDI32.dll
    0x629c0000 - 0x629c9000      C:\WINDOWS\system32\LPK.DLL
    0x74d90000 - 0x74dfb000      C:\WINDOWS\system32\USP10.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\msvcrt.dll
    0x7c340000 - 0x7c396000      C:\Program Files\Java\jre1.6.0_06\bin\msvcr71.dll
    0x6d7c0000 - 0x6da10000      C:\Program Files\Java\jre1.6.0_06\bin\client\jvm.dll
    0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\WINMM.dll
    0x6bd00000 - 0x6bd0d000      C:\WINDOWS\system32\SYNCOR11.DLL
    0x6d270000 - 0x6d278000      C:\Program Files\Java\jre1.6.0_06\bin\hpi.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d360000 - 0x6d389000      C:\Program Files\Java\jre1.6.0_06\bin\jdwp.dll
    0x6d6c0000 - 0x6d6c6000      C:\Program Files\Java\jre1.6.0_06\bin\npt.dll
    0x6d770000 - 0x6d77c000      C:\Program Files\Java\jre1.6.0_06\bin\verify.dll
    0x6d310000 - 0x6d32f000      C:\Program Files\Java\jre1.6.0_06\bin\java.dll
    0x6d7b0000 - 0x6d7bf000      C:\Program Files\Java\jre1.6.0_06\bin\zip.dll
    0x6d1e0000 - 0x6d1e7000      C:\Program Files\Java\jre1.6.0_06\bin\dt_socket.dll
    0x71ab0000 - 0x71ac7000      C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINDOWS\system32\WS2HELP.dll
    0x71a50000 - 0x71a8f000      C:\WINDOWS\System32\mswsock.dll
    0x76f20000 - 0x76f47000      C:\WINDOWS\system32\DNSAPI.dll
    0x76fb0000 - 0x76fb8000      C:\WINDOWS\System32\winrnr.dll
    0x76f60000 - 0x76f8c000      C:\WINDOWS\system32\WLDAP32.dll
    0x76fc0000 - 0x76fc6000      C:\WINDOWS\system32\rasadhlp.dll
    0x662b0000 - 0x66308000      C:\WINDOWS\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000      C:\WINDOWS\System32\wshtcpip.dll
    VM Arguments:
    jvm_args: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:1578
    java_command: TestingResults
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=C:\Program Files\j2sdk_nb\j2sdk1.4.2
    CLASSPATH=.;C:\TomCat\webapps\Profiling;C:\TomCat\common\lib\servlet-api.jar;C:\TomCat\common\lib\jsp-api.jar;c:\program files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;c:\program files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;c:\program files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;C:\Program Files\Java\jre1.5.0_03\lib\ext\QTJava.zip
    PATH=C:\Program Files\Java\jre1.6.0_06\bin\client;C:\Program Files\Java\jre1.6.0_06\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Common Files\Teleca Shared;C:\Program Files\Common Files\Adobe\AGL;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\jwsdp-1.3\jwsdp-shared\bin;C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin
    USERNAME=maria
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 13 Stepping 6, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 13 stepping 6, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 523632k(50496k free), swap 882224k(299028k free)
    vm_info: Java HotSpot(TM) Client VM (10.0-b22) for windows-x86 JRE (1.6.0_06-b02), built on Mar 25 2008 01:22:05 by "java_re" with MS VC++ 7.1
    time: Sun Jun 15 19:09:27 2008
    elapsed time: 105 seconds
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Hi there,
    I am trying to run my application in java and suddenly java started giving me the bellow error:
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d81bd10, pid=1500, tid=3624
    # Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode windows-x86)
    # Problematic frame:
    # V [jvm.dll+0x5bd10]
    # An error report file with more information is saved as:
    # G:\My Documents\UCY\Graduate\Final Year Project\Persona\Testing\hs_err_pid1500.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    I do not believe that this is a problem in my code as this was working before.
    Also the system works fine for about 20 iterations of the same code and then displays this error
    I also try to uninstall and reinstall java but with no luck.
    I am also attaching the log file that java has saved some information.
    Thanks a lot for your help in advance.
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d81bd10, pid=1500, tid=3624
    # Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode windows-x86)
    # Problematic frame:
    # V [jvm.dll+0x5bd10]
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    --------------- T H R E A D ---------------
    Current thread (0x0aaa0c00): VMThread [stack: 0x0ab30000,0x0ab80000] [id=3624]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000050
    Registers:
    EAX=0x00000000, EBX=0x003abcec, ECX=0x072d0106, EDX=0x00000000
    ESP=0x0ab7f5bc, EBP=0x003abc60, ESI=0x06b29bc8, EDI=0x06b29bc8
    EIP=0x6d81bd10, EFLAGS=0x00010246
    Top of Stack: (sp=0x0ab7f5bc)
    0x0ab7f5bc: 06b29bc8 06b29bc8 00000000 6d940820
    0x0ab7f5cc: 6d7dcc8b 06b29bc8 0ab7f618 0ab7f618
    0x0ab7f5dc: 00000002 003aa9f8 6d86cd11 06b29c45
    0x0ab7f5ec: 003abab8 6d86cae1 003abcb0 6d83c5a3
    0x0ab7f5fc: 0ab7f618 00000000 003aaa50 06b29c45
    0x0ab7f60c: 6d86c927 0ab7f618 00000000 6d99f718
    0x0ab7f61c: 06b29c45 00000000 6d8676c3 06b29c45
    0x0ab7f62c: 06b29c45 00000000 0ab7f748 00000000
    Instructions: (pc=0x6d81bd10)
    0x6d81bd00: 08 07 c1 e8 02 25 fe ff ff 3f 5e 59 c3 8b 11 56
    0x6d81bd10: ff 52 50 5e 59 c3 cc cc cc cc cc cc cc cc cc cc
    Stack: [0x0ab30000,0x0ab80000], sp=0x0ab7f5bc, free space=317k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [jvm.dll+0x5bd10]
    VM_Operation (0x0090f410): GenCollectForAllocation, mode: safepoint, requested by thread 0x003a6400
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x0aade000 JavaThread "&#1281;&#49164; &#4944;&#1689;&#23520;&#1689;&#1088;&#1689;&#28936;&#1690;&#23520;&#1689;&#1072;&#1689;&#752;&#1689;&#1041;&#32768;&#27880;&#1690;&#65535;&#32767;&#23224;&#1689;&#21840;&#1689;&#22128;&#1689;&#21992;&#1689;&#22312;&#1689;&#600;&#1689;&#18011;&#480;&#1689;&#26688;&#28059;&#1538;&#49164; &#4944;&#1689;&#23520;&#1689;&#1424;&#1689;&#29032;&#1690;&#23520;&#1689;&#1408;&#1689;&#1088;&#1689;&#1041;&#32768;&#27496;&#1690;&#65530;&#32767;&#23224;&#1689;&#21840;&#1689;&#22128;&#1689;&#21992;&#1689;&#22312;&#1689;&#600;&#1689;&#17499;&#480;&#1689;&#26688;&#28059;&#1795;&#49168; &#4944;&#1689;&#23520;&#1689;&#1760;&#1689;&#29128;&#1690;&#23520;&#1689;&#1744;&#1689;&#1424;&#1689;&#1041;&#32768;&#27592;&#1690;&#65532;&#16383;&#23224;&#1689;&#21840;&#1689;&#22128;&#1689;&#21992;&#1689;&#22312;&#1689;&#600;&#1689;&#16987;&#480;&#1689;&#26688;&#28059;&#2048;&#49164; &#4944;&#1689;&#23520;&#1689;&#2096;&#1689;&#29224;&#1690;&#23520;&#1689;&#2080;&#1689;&#1760;&#1689;&#1041;&#32768;&#18512;&#1730;&#27688;&#1690;&#65535;&#32767;&#23224;&#1689;&#21840;&#1689;&#22128;&#1689;&#21992;&#1689;&#22312;&#1689;&#600;&#1689;&#21339;&#480;&#1689;&#26688;&#28059;&#2305;&#49164; &#4944;&#1689;&#23520;&#1689;&#2432;&#1689;&#29320;&#1690;&#23520;&#1689;&#2416;&#1689;&#2096;&#1689;&#1041;&#32768;&#31408;&#1722;&#28072;&#1690;&#65535;&#32767;&#23224;&#1689;&#21840;&#1689;&#22128;&#1689;&#21992;&#1689;&#22312;&#1689;&#600;&#1689;&#18779;&#480;&#1689;&#26688;&#28059;&#2562;&#49164; &#4944;&#1689;&#23520;&#1689;&#2768;&#1689;&#29416;&#1690;&#23520;&#1689;&#2752;&#1689;&#2432;&#1689;&#1041;&#32768;&#27640;&#1729;&#27400;&#1690;&#65530;&#32767; daemon [_thread_blocked, id=3244, stack(0x0ae00000,0x0ae50000)]
    0x0aad4400 JavaThread "" [_thread_blocked, id=1788, stack(0x0adb0000,0x0ae00000)]
    0x0aac6c00
    [error occurred during error reporting (printing all threads), id 0xc0000005]
    VM state:at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
    [0x003a5ab0/0x00002710] Threads_lock - owner thread: 0x0aaa0c00
    [0x003a5c50/0x000026d0] Heap_lock - owner thread: 0x003a6400
    Heap
    def new generation total 960K, used 64K [0x02990000, 0x02a90000, 0x02e70000)
    eden space 896K, 0% used [0x02990000, 0x02990000, 0x02a70000)
    from space 64K, 100% used [0x02a70000, 0x02a80000, 0x02a80000)
    to space 64K, 0% used [0x02a80000, 0x02a80000, 0x02a90000)
    tenured generation total 4224K, used 4223K [0x02e70000, 0x03290000, 0x06990000)
    the space 4224K, 99% used [0x02e70000, 0x0328fc38, 0x031a2200, 0x03290000)
    compacting perm gen total 12288K, used 4879K [0x06990000, 0x07590000, 0x0a990000)
    the space 12288K, 39% used [0x06990000, 0x06e53cc0, 0x06e51200, 0x07590000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x00423000      C:\Program Files\Java\jre1.6.0_06\bin\javaw.exe
    0x7c900000 - 0x7c9b0000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f5000      C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f02000      C:\WINDOWS\system32\RPCRT4.dll
    0x77fe0000 - 0x77ff1000      C:\WINDOWS\system32\Secur32.dll
    0x7e410000 - 0x7e4a0000      C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f57000      C:\WINDOWS\system32\GDI32.dll
    0x629c0000 - 0x629c9000      C:\WINDOWS\system32\LPK.DLL
    0x74d90000 - 0x74dfb000      C:\WINDOWS\system32\USP10.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\msvcrt.dll
    0x7c340000 - 0x7c396000      C:\Program Files\Java\jre1.6.0_06\bin\msvcr71.dll
    0x6d7c0000 - 0x6da10000      C:\Program Files\Java\jre1.6.0_06\bin\client\jvm.dll
    0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\WINMM.dll
    0x6bd00000 - 0x6bd0d000      C:\WINDOWS\system32\SYNCOR11.DLL
    0x6d270000 - 0x6d278000      C:\Program Files\Java\jre1.6.0_06\bin\hpi.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d360000 - 0x6d389000      C:\Program Files\Java\jre1.6.0_06\bin\jdwp.dll
    0x6d6c0000 - 0x6d6c6000      C:\Program Files\Java\jre1.6.0_06\bin\npt.dll
    0x6d770000 - 0x6d77c000      C:\Program Files\Java\jre1.6.0_06\bin\verify.dll
    0x6d310000 - 0x6d32f000      C:\Program Files\Java\jre1.6.0_06\bin\java.dll
    0x6d7b0000 - 0x6d7bf000      C:\Program Files\Java\jre1.6.0_06\bin\zip.dll
    0x6d1e0000 - 0x6d1e7000      C:\Program Files\Java\jre1.6.0_06\bin\dt_socket.dll
    0x71ab0000 - 0x71ac7000      C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINDOWS\system32\WS2HELP.dll
    0x71a50000 - 0x71a8f000      C:\WINDOWS\System32\mswsock.dll
    0x76f20000 - 0x76f47000      C:\WINDOWS\system32\DNSAPI.dll
    0x76fb0000 - 0x76fb8000      C:\WINDOWS\System32\winrnr.dll
    0x76f60000 - 0x76f8c000      C:\WINDOWS\system32\WLDAP32.dll
    0x76fc0000 - 0x76fc6000      C:\WINDOWS\system32\rasadhlp.dll
    0x662b0000 - 0x66308000      C:\WINDOWS\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000      C:\WINDOWS\System32\wshtcpip.dll
    VM Arguments:
    jvm_args: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:1578
    java_command: TestingResults
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=C:\Program Files\j2sdk_nb\j2sdk1.4.2
    CLASSPATH=.;C:\TomCat\webapps\Profiling;C:\TomCat\common\lib\servlet-api.jar;C:\TomCat\common\lib\jsp-api.jar;c:\program files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;c:\program files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;c:\program files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;C:\Program Files\Java\jre1.5.0_03\lib\ext\QTJava.zip
    PATH=C:\Program Files\Java\jre1.6.0_06\bin\client;C:\Program Files\Java\jre1.6.0_06\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Common Files\Teleca Shared;C:\Program Files\Common Files\Adobe\AGL;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\jwsdp-1.3\jwsdp-shared\bin;C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin
    USERNAME=maria
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 13 Stepping 6, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 13 stepping 6, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 523632k(50496k free), swap 882224k(299028k free)
    vm_info: Java HotSpot(TM) Client VM (10.0-b22) for windows-x86 JRE (1.6.0_06-b02), built on Mar 25 2008 01:22:05 by "java_re" with MS VC++ 7.1
    time: Sun Jun 15 19:09:27 2008
    elapsed time: 105 seconds
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  • Creating a sample report using JAVA SDK

    Hi,
    I am trying to create a sample report using JAVA SDK.
    I slelect 4 "free cells" and pass 4 different strings to it.
    I even slelect the font colour and size. When i run the class and try to view the report in Infoview, I only seeblank blocks without any data. Now if I edit the report from infoview, and save the changes, I am able to see the data.
    My issue is, Why am I not able to see the data when I run the java code.
    Please find teh code below.
    package com;
    import java.awt.Color;
    import java.io.FileOutputStream;
    import java.util.ArrayList;
    import java.util.Date;
    import java.util.List;
    import com.businessobjects.rebean.wi.BinaryView;
    import com.businessobjects.rebean.wi.DataProvider;
    import com.businessobjects.rebean.wi.DataProviders;
    import com.businessobjects.rebean.wi.DataSource;
    import com.businessobjects.rebean.wi.DataSourceObject;
    import com.businessobjects.rebean.wi.DocumentInstance;
    import com.businessobjects.rebean.wi.DocumentLocaleType;
    import com.businessobjects.rebean.wi.FontImpl;
    import com.businessobjects.rebean.wi.FreeCell;
    import com.businessobjects.rebean.wi.HTMLView;
    import com.businessobjects.rebean.wi.OutputFormatType;
    import com.businessobjects.rebean.wi.PageHeaderFooter;
    import com.businessobjects.rebean.wi.Query;
    import com.businessobjects.rebean.wi.Recordset;
    import com.businessobjects.rebean.wi.Report;
    import com.businessobjects.rebean.wi.ReportBody;
    import com.businessobjects.rebean.wi.ReportCell;
    import com.businessobjects.rebean.wi.ReportContainer;
    import com.businessobjects.rebean.wi.ReportElement;
    import com.businessobjects.rebean.wi.ReportEngine;
    import com.crystaldecisions.sdk.framework.CrystalEnterprise;
    import com.crystaldecisions.sdk.framework.IEnterpriseSession;
    import com.crystaldecisions.sdk.framework.ISessionMgr;
    import com.crystaldecisions.sdk.occa.infostore.IInfoObject;
    import com.crystaldecisions.sdk.occa.infostore.IInfoObjects;
    import com.crystaldecisions.sdk.occa.infostore.IInfoStore;
    import com.crystaldecisions.sdk.plugin.CeKind;
    public class Aug7th {
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              String CMS = "pundl8136:6400";
              String userID = "srivas";
              String password = "morcom123";
              String auth = "secEnterprise";
              List<String> entire =new ArrayList<String>();
              List<String> country =new ArrayList<String>();
              List<String> resort =new ArrayList<String>();
              IEnterpriseSession enterpriseSession;
              try
                   ISessionMgr mySessionMgr = CrystalEnterprise.getSessionMgr();
                   enterpriseSession = mySessionMgr.logon(userID, password, CMS,auth);
                   if (enterpriseSession != null)
                   {//Create and store useful objects for the session.
                        IInfoStore iStore = (IInfoStore)enterpriseSession.getService("InfoStore");
                        ReportEngine reportEngine = (ReportEngine)enterpriseSession.getService("WebiReportEngine");
                        IInfoObject infoView = null;
                        String str = "SELECT SI_ID, SI_NAME, SI_PARENTID FROM CI_INFOOBJECTS WHERE (SI_KIND = '"+CeKind.WEBI+"' OR SI_KIND='FullClient') " +
                        "AND SI_INSTANCE = 'false' AND SI_NAME='Structure Test_001_Java' ORDER BY SI_NAME ASC ";
                        //String str = "SELECT SI_ID, SI_NAME, SI_PARENTID FROM CI_INFOOBJECTS ORDER BY SI_NAME ASC ";
                        IInfoObjects objInfoObjectsWIDs = (IInfoObjects) iStore.query(str);
                        System.out.println(objInfoObjectsWIDs.size());
                        IInfoObject objInfoObjectWID = (IInfoObject) objInfoObjectsWIDs.get(0);
                        DocumentInstance doc = reportEngine.openDocument(objInfoObjectWID.getID());
                        DataProviders dps = doc.getDataProviders();
    //                     Retrieve the 1st data provider
                        DataProvider dp = dps.getItem(0);
    //                     Retrieve the universe objects
                        DataSource ds = dp.getDataSource ();
                        Query q = dp.getQuery();
                        Recordset rs = dp.getResult(0);
    //                     0: assume query has one flow
                        rs.first();
    //                     Print the column types. They can be Integer, String,
    //                     or Date.
                        for (int i = 0; i < rs.getColumnCount(); i++) {
                        Class c = rs.getColumnType(i);
                        StringBuffer sbt = new StringBuffer();
                        if ( c.equals(Integer.class) )
                        sbt.append("Integer");
                        if ( c.equals(String.class) )
                        sbt.append("String");
                        if ( c.equals(Date.class) )
                        sbt.append("Date");
                        sbt.append(";");
                        System.out.println(sbt.toString());
                        System.out.println(rs.getColumnCount());
                        while (!rs.isLast()) {
    //                          column names
                             StringBuffer sbn = new StringBuffer();
                             StringBuffer sbd = new StringBuffer();
                             for (int j = 0; j < rs.getColumnCount(); j++) {
                             sbn.append( rs.getColumnName(j).toString() );
                             sbn.append(";");
                             System.out.println("sbn "+sbn.toString());
    //                          data
                             for (int k= 0; k< rs.getColumnCount(); k++) {
                             sbd.append( rs.getCellObject(k).toString() );
                             sbd.append(";");
                             entire.add(rs.getCellObject(k).toString());
                             System.out.println("sbd "+sbd.toString());
                             rs.next();
                        System.out.println(entire.size());
                        for(int i=0;i<entire.size();i++){
                             country.add(entire.get(i));
                             i++;
                             System.out.println("entireList "+entire.get(i));
                             resort.add(entire.get(i));
                        DataSourceObject city = ds.getClasses().getChildByName("Country");
                        DataSourceObject resorts = ds.getClasses().getChildAt(1);
                        dp.runQuery();
                        ReportContainer report = doc.createReport("Resort");
                        PageHeaderFooter header = report.getPageHeader();
                        FreeCell headerCell = header.createFreeCell("Resort Report");
                        PageHeaderFooter footer = report.getPageFooter();
                        FreeCell footerCell = footer.createFreeCell("Report Ends");
                        ReportBody body =  report.createReportBody();
                        for(int k=0;k<resort.size();k++){
                        FreeCell res=body.createFreeCell(resort.get(k));
                        res.getAttachTo();
                        res.setHeight(15d);
                        res.setWidth(30d);
                        Color c = new Color(255,255,255);
                        Color c1 = new Color(255,0,0);
                        FontImpl fnt = (FontImpl)res.getFont();
                        fnt.getDecoration().setTextColor(c1);
                        res.setFont(fnt);
                        //res.deleteAttachment();
                        //res.setAttachTo(body,VAnchorType.BOTTOM,HAnchorType.NONE);
                        doc.applyFormat();
                        doc.refresh();
                        final String l_docToken = doc.getStorageToken();
                        final DocumentInstance l_docToSave = reportEngine.getDocumentFromStorageToken(l_docToken);
                        doc.saveAs("mor31",835,null,null);
                        doc.closeDocument();
                        str = "SELECT SI_ID, SI_NAME, SI_PARENTID FROM CI_INFOOBJECTS WHERE (SI_KIND = '"+CeKind.WEBI+"' OR SI_KIND='FullClient') " +
                        "AND SI_INSTANCE = 'false' AND SI_NAME='mor31' ORDER BY SI_NAME ASC ";
                        //String str = "SELECT SI_ID, SI_NAME, SI_PARENTID FROM CI_INFOOBJECTS ORDER BY SI_NAME ASC ";
                        objInfoObjectsWIDs = (IInfoObjects) iStore.query(str);
                        System.out.println(objInfoObjectsWIDs.size());
                        objInfoObjectWID = (IInfoObject) objInfoObjectsWIDs.get(0);
                        DocumentInstance doc1 = reportEngine.openDocument(objInfoObjectWID.getID());
                        String token = doc1.getStorageToken();
                        DocumentInstance doc2 = reportEngine.getDocumentFromStorageToken(token);
                        doc2.saveAs("123123", 835, null, null);
                   //     doc.refresh();
                        //doc.save();
                   enterpriseSession.logoff();
              catch(Exception e)
                   e.printStackTrace();

    duplicate post:
    Sample report using JAVA SDK

Maybe you are looking for

  • Out of memory error while deploying Oracle Service Bus Ressources

    Hi, When i am trying to deploy resources on sbconsole,it is showing below error on activation. Oct 15, 2011 3:11:38 PM CDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1318709496539' for task '14'

  • Suddenly can't connect to AIM :(((

    After months and months of successful AV chats, I'm suddenly completely unable to connect to AIM. The message I get is "Could not connect to AIM. Auth: ResvLinkError". I did a search and tried changing from port 5190 to port 443 in the prefs, but tha

  • Cannot drag and drop one particular album from iTunes to iPod

    Hello I was loading up my iPod and wanted to drag over a Verve jazz recording, Joe Henderson's "Big Band", but when I try the iPod will not highlight when mousing over and then the album has "exclamation symbols in a circle" against each song from th

  • Mail indexing problem

    Hello, I have a problem with indexing my email. I have 7 accounts. every working perfect except one. I have every day about 20-30 mails. inbox and outbox. but suddenly (with out any restart of computer) it start to show only last message and one mont

  • Ordered 32" Sony TV - Delivery Question

    Hello, I ordered a 32" Sony tv in one of your local stores, paid for it in cash at the store and I am I having it shipped to my house.  Item was not available in the store.  The clerk at the store said the delivery guy would inspect and install the T