Help with the Java API

Search on an attribute of the custom class using the Java
API.
I taking one of the provided classes, a "VCARD Street Address."
Inserted the XML for it. Added some documents of that class.
Then I set City="Charlotte." Double-checked it in the database with
sql*plus -- I see records matching city=charlotte.
However, searching using the Java API, I comes up blank. Using the
following classes:
attributequalification
searchclause
search
*************Query Tester.java************
import java.util.*;
import java.io.*;
import java.text.*;
import java.util.zip.*;
import java.rmi.RemoteException;
// Runner Specific Imports
import oracle.ifs.common.*;
import oracle.ifs.utils.common.*;
import oracle.ifs.beans.*;
import oracle.ifs.search.*;
import oracle.ifs.adk.filesystem.IfsFileSystem;
public class QueryTester {
protected SearchClause getAttributeSearchClause(SearchClause
searchClause) throws IfsException{
try {
AttributeQualification attributeQualification = new
AttributeQualification();
attributeQualification.setAttribute("VCARDSTREETADDRESS","CITY");
attributeQualification.setOperatorType(AttributeQualification.LIKE);
attributeQualification.setValue("C%");
searchClause = new
SearchClause(searchClause,attributeQualification, searchClause.AND);
return searchClause;
catch (RuntimeException ex) {
String exceptionText = "RuntimeException in
getAttributeSearchClause(). Nested Exception:" + ex;
System.out.println (exceptionText);
throw ex;
catch (IfsException ex) {
String exceptionText = "IfsException in
getAttributeSearchClause(). Nested Exception:" + ex;
System.out.println (exceptionText);
throw ex;
protected SearchClassSpecification getSearchClassSpecification()
throws IfsException {
try {
String[] searchClasses = {"DOCUMENT","CONTENTOBJECT",
"VCARDSTREETADDRESS"};
SearchClassSpecification searchClassSpecification = new
SearchClassSpecification(searchClasses);
//searchClassSpecification.addResultClass("DOCUMENT");
searchClassSpecification.addResultClass("VCARDSTREETADDRESS");
return searchClassSpecification;
catch (IfsException ex) {
String exceptionText = "Error in getSearchClassSpecification :
" + ex;
System.out.println (exceptionText);
throw ex;
public static void main (String[] args) {
try {
QueryTester qt = new QueryTester();
System.out.println ("Logging in.");
IfsFileSystem IfsAPI = new IfsFileSystem("cvars", "cvars",
"docrunner", "ifssys");
System.out.println ("Got this far.");
LibrarySession libSession = IfsAPI.getLibrarySession();
// For every document that it a content object we want to
search
JoinQualification joinQualification = new JoinQualification();
joinQualification.setLeftAttribute("DOCUMENT",
"CONTENTOBJECT");
joinQualification.setRightAttribute("CONTENTOBJECT", null);
oracle.ifs.beans.Folder searchFolderObject = null;
searchFolderObject = libSession.getRootFolder();
FolderRestrictQualification folderRestrictQualification = new
FolderRestrictQualification();
folderRestrictQualification.setStartFolder(searchFolderObject);
SearchClause searchClause = null;
SearchClause baseSearchClause = new
SearchClause(joinQualification, folderRestrictQualification,
SearchClause.AND);
searchClause = qt.getAttributeSearchClause(baseSearchClause);
AttributeSearchSpecification attribSearchSpecification = new
AttributeSearchSpecification();
attribSearchSpecification.setSearchClassSpecification(qt.getSearchClassSpecification());
System.out.println ("Set the Search Class Specificiation.");
attribSearchSpecification.setSearchQualification(searchClause);
Search attributeSearch = new Search(libSession,
attribSearchSpecification);
System.out.println ("About to open Attribute Search . ");
attributeSearch.open();
System.out.println ("Opened the search");
SearchResultObject[] sro = attributeSearch.getItems();
if (sro!=null)
System.out.println ("Results : " + sro.length);
libSession.disconnect();
catch (IfsException ifsex) { System.out.println (ifsex); }
catch (RuntimeException rux) { System.out.println (rux); }
null

You said 'Then I set City="Charlotte." Double-checked it in the database with
sql*plus -- I see records matching city=charlotte.'
Your description uses both 'Charlotte' and 'charlotte'.
Does the word 'Charlotte' appear in the database in all lower case or mixed-case?
null

Similar Messages

  • Can I create a cert with the Java API only?

    I'm building a client/server app that will use SSL and client certs for authenticating the client to the server. I'd like for each user to be able to create a keypair and an associated self-signed cert that they can provide to the server through some other means, to be included in the server's trust store.
    I know how to generate a key pair with an associated self-signed cert via keytool, but I'd prefer to do it directly with the Java APIs. From looking at the Javadocs, I can see how to generate a keypair and how to generate a cert object using an encoded representation of the cert ( e.g. java.security.cert.CertificateFactory.generateCertififcate() ).
    But how can I create this encoded representation of the certificate that I need to provide to generateCertificate()? I could do it with keytool and export the cert to a file, but is there no Java API that can accomplish the same thing?
    I want to avoid having the user use keytool. Perhaps I can execute the appropriate keytool command from the java code, using Runtime.exec(), but again a pure java API approach would be better. Is there a way to do this all with Java? If not, is executing keytool via Runtime.exec() the best approach?

    There is no solution available with the JDK. It's rather deficient wrt certificate management, as java.security.cert.CertificateFactory is a factory that only deals in re-treads. That is, it doesn't really create certs. Rather it converts a DER encoded byte stream into a Java Certificate object.
    I found two ways to create a certificate from scratch. The first one is an all Java implementation of what keytool does. The second is to use Runtime.exec(), which you don't want to do.
    1. Use BouncyCastle, a free open source cryptography library that you can find here: http://www.bouncycastle.org/ There are examples in the documentation that show you how to do just about anything you want to do. I chose not to use it, because my need was satisfied with a lighter approach, and I didn't want to add a dependency unnecessarily. Also Bouncy Castle requires you to use a distinct version with each version of the JDK. So if I wanted my app to work with JDK 1.4 or later, I would have to actually create three different versions, each bundled with the version of BouncyCastle that matches the version of the target JDK.
    2. I created my cert by using Runtime.exec() to invoke the keytool program, which you say you don't want to do. This seemed like a hack to me, so I tried to avoid it; but actually I think it was the better choice for me, and I've been happy with how it works. It may have some backward compatibility issues. I tested it on Windows XP and Mac 10.4.9 with JDK 1.6. Some keytool arguments changed with JDK versions, but I think they maintained backward compatibility. I haven't checked it, and I don't know if I'm using the later or earlier version of the keytool arguments.
    Here's my code.
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.security.KeyStore;
    import java.security.KeyStoreException;
    import java.security.NoSuchAlgorithmException;
    import java.security.cert.CertificateException;
    import javax.security.auth.x500.X500Principal;
    import javax.swing.JOptionPane;
    public class CreateCertDemo {
         private static void createKey() throws IOException,
          KeyStoreException, NoSuchAlgorithmException, CertificateException{
         X500Principal principal;
         String storeName = ".keystore";
         String alias = "keyAlias";
         principal = PrincipalInfo.getInstance().getPrincipal();
         String validity = "10000";
         String[] cmd = new String[]{ "keytool", "-genKey", "-alias", alias, "-keyalg", "RSA",
            "-sigalg", "SHA256WithRSA", "-dname", principal.getName(), "-validity",
            validity, "-keypass", "keyPassword", "-keystore",
            storeName, "-storepass", "storePassword"};
         int result = doExecCommand(cmd);
         if (result != 0){
              String msg = "An error occured while trying to generate\n" +
                                  "the private key. The error code returned by\n" +
                                  "the keytool command was " + result + ".";
              JOptionPane.showMessageDialog(null, msg, "Key Generation Error", JOptionPane.WARNING_MESSAGE);
         KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());
         ks.load(new FileInputStream(storeName), "storePassword".toCharArray());
            //return ks from the method if needed
    public static int doExecCommand(String[] cmd) throws IOException{
              Runtime r = Runtime.getRuntime();
              Process p = null;
              p = r.exec(cmd);
              FileOutputStream outFos = null;
              FileOutputStream errFos = null;
              File out = new File("keytool_exe.out");
              out.createNewFile();
              File err = new File("keytool_exe.err");
              err.createNewFile();
              outFos = new FileOutputStream(out);
              errFos = new FileOutputStream(err);
              StreamSink outSink = new StreamSink(p.getInputStream(),"Output", outFos );
              StreamSink errSink = new StreamSink(p.getErrorStream(),"Error", errFos );
              outSink.start();
              errSink.start();
              int exitVal = 0;;
              try {
                   exitVal = p.waitFor();
              } catch (InterruptedException e) {
                   return -100;
              System.out.println (exitVal==0 ?  "certificate created" :
                   "A problem occured during certificate creation");
              outFos.flush();
              outFos.close();
              errFos.flush();
              errFos.close();
              out.delete();
              err.delete();
              return exitVal;
         public static void main (String[] args) throws
              KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException{
              createKey();
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStream;
    import java.io.PrintWriter;
    //Adapted from Mike Daconta's StreamGobbler at
    //http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=4
    public class StreamSink extends Thread
        InputStream is;
        String type;
        OutputStream os;
        public StreamSink(InputStream is, String type)
            this(is, type, null);
        public StreamSink(InputStream is, String type, OutputStream redirect)
            this.is = is;
            this.type = type;
            this.os = redirect;
        public void run()
            try
                PrintWriter pw = null;
                if (os != null)
                    pw = new PrintWriter(os);
                InputStreamReader isr = new InputStreamReader(is);
                BufferedReader br = new BufferedReader(isr);
                String line=null;
                while ( (line = br.readLine()) != null)
                    if (pw != null)
                        pw.println(line);
                    System.out.println(type + ">" + line);   
                if (pw != null)
                    pw.flush();
            } catch (IOException ioe)
                ioe.printStackTrace(); 
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import javax.security.auth.x500.X500Principal;
    public class PrincipalInfo {
         private static String defInfoString = "CN=Name, O=Organization";
         //make it a singleton.
         private static class PrincipalInfoHolder{
              private static PrincipalInfo instance = new PrincipalInfo();
         public static PrincipalInfo getInstance(){
              return PrincipalInfoHolder.instance;
         private PrincipalInfo(){
         public X500Principal getPrincipal(){
              String fileName = "principal.der";
              File file = new File(fileName);
              if (file.exists()){
                   try {
                        return new X500Principal(new FileInputStream(file));
                   } catch (FileNotFoundException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                        return null;
              }else{
                   return new X500Principal(defInfoString);
         public void savePrincipal(X500Principal p) throws IOException{
              FileOutputStream fos = new FileOutputStream("principal.der");
              fos.write(p.getEncoded());
              fos.close();
    }Message was edited by:
    MidnightJava
    Message was edited by:
    MidnightJava

  • How can I create a new User with the Java API like OIDDAS do?

    Hello,
    I'm currently working on an BPEL based process. And i need to create an OCS user. So far I can create an user in the OID. But I cant find any documentation about given this user an email account,calendar and content function etc.
    Did anybody know if there are some OIDDAS Webservices? Or did anybody know how to do this using the Java APIs?

    You are asking about a Database User I hope.
    You can look into the Oracle 8i Documentation and find various privillages listed.
    In particular, you may find:
    Chapter 27 Privileges, Roles, and Security Policies
    an intresting chapter.
    You may want to do this with the various tools included with 8i - including the
    Oracle DBA Studio - expand the Security node and you can create USERS and ROLES.
    Or use SQL*Plus. To create a
    user / password named John / Smith, you would login to SQL*Plus as System/manager (or other) and type in:
    Create user John identified by Smith;
    Grant CONNECT to John;
    Grant SELECT ANY TABLE to John;
    commit;
    There is much more you can do
    depending on your needs.
    Please read the documentation.
    -John
    null

  • Can anyone help with the java applet issue

    Hello everyone,
    This is my first thread in this forum,
    I need a little help with the form developer...
    I have oracle 9i db , 9i form developer
    I don't want to run the form i created as a java applet
    HOW IS THAT DONE i.e NOT IN THE INTERNET EXPLORER?????????
    ***IF ITS POSSIBLE

    Hello,
    I don't want to run the form i created as a java applet
    No chance, because the Web Forms client is an applet and cannot be anything else.
    Francois

  • Help with AQ Java API

    I try to use the examples from the AQ-api guide. I did all the presample things and the program seems to work well untill the createAQSession is called. Ie I got a databaseconnection, I can register the AQ-driver, I can use the getDrivers etc.
    code:
    aq_sess = AQDriverManager.createAQSession(db_conn);
    Exception:
    java.lang.AbstractMethodError
    at oracle.AQ.AQOracleSession.<init>(AQOracleSession.java:82)
    at oracle.AQ.AQOracleDriver.createAQSession(AQOracleDriver.java:67)
    at oracle.AQ.AQDriverManager.createAQSession(AQDriverManager.java:178)
    at com.acando.keli.db.testdb.TestDb.createSession(TestDb.java:111)
    at com.acando.keli.db.testdb.TestDb.main(TestDb.java:59)
    regards /Kenneth

    You said 'Then I set City="Charlotte." Double-checked it in the database with
    sql*plus -- I see records matching city=charlotte.'
    Your description uses both 'Charlotte' and 'charlotte'.
    Does the word 'Charlotte' appear in the database in all lower case or mixed-case?
    null

  • Help with the java system, please !!

    Each time i execute the following statement,
    create or replace java system;
    I get the following errors:
    VM: Killing process oracle
    end-of-file on communication channel
    Can anyone help me with this problem, please?

    My platform is Linux - Red Hat 6.2 -.
    I did the changes in the sizes of the java_pool and shared_pool and I got the same problem.
    But, I've just fixed the problem b increasing the size of the swap partition. I changed it from 100 MB to 1000 MB. Then, I got everything very clean.
    Thanks a lot for your help and your consideration.

  • Help with Essbase 9 and the Java API

    Hi, I am trying to connect to Essbase from a Java desktop application and I am unable to do so. I need to know if I am in principle doing the right things and if I have the correct environment set up.
    We have a server with Essbase version 9.3.1. We normally use essbase via the Excel Addin, and I have already written Excel applications that utilise both the addin and the Essbase VB API. Now I need to connect to Essbase but from outside Excel and using the Java API. I have no idea what APS is nor does my Essbase Administrator.
    My application has the following code (adapted from a post in this forum) -
    public static void main(String[] args) {
    String s_userName = "user";
    String s_password = "password";
    String s_olapSvrName = "ustca111";
    String s_provider = "http://localhost:13080/aps/JAPI";
    try{
    IEssbase ess = IEssbase.Home.create(IEssbase.JAPI_VERSION);
    IEssDomain dom = ess.signOn(s_userName, s_password, false, null, s_provider);
    IEssOlapServer olapSvr = dom.getOlapServer(s_olapSvrName);
    olapSvr.connect();
    System.out.println("Connection to Analyic server '" + olapSvr.getName() + "' was successful.");
    olapSvr.disconnect();
    }catch(EssException exp){
    System.out.println(exp.getMessage());
    I am running my application on my computer, not on the Essbase server, and the username I am using is the same one I use (as a user of Essbase) via the Essbase Addin in Excel, not an admin login.
    When I run the app I get:
    "Cannot connect to Provider Server.Make sure the signon parameters are correct and the Provider Server is running."
    Please can you confirm:
    1) Do I need an admin login for my client application to connect to the Essbase server or can I use a normal read-access login, like the one I use in Excel?
    2) Is the provider always the same regardless of the computer, i.e. "http://localhost:13080/aps/JAPI"; How do I know what this has to be? Where do I get this information from?
    3) How can I make sure that the Server is running the necessary "Provider Server", is this just a service that will show on services.msc of the server? What should I ask the Essbase Administrator for him to tell me what I need?
    Thank you very much.
    Leo

    Tim, when I look in my computer's Essbase installation path I can only find the following jar files (from the ones you have listed).
    C:\Hyperion\AnalyticServices\JavaAPI\external\css\log4j-1.2.8.jar
    C:\Hyperion\AnalyticServices\JavaAPI\lib\ess_es_server.jar
    C:\Hyperion\AnalyticServices\JavaAPI\lib\ess_japi.jar
    I do not have css-9_3_1.jar or interop-sdk.jar.
    In order to try the embedded mode, I added the three jars I have to the classpath, and have re-built and ran with "embedded" as the provider. This is what I got in my output screen:
    run:
    Error accessing the properties file. essbase.properties: essbase.properties (The system cannot find the file specified). Using default values.
    Hyperion Provider Services - Release 9.3.1.0.0 Build 168
    Copyright (c) 1991, 2007 Oracle and / or its affiliates. All rights reserved.
    connection mode : EMBEDDED
    essbase.properties: essbase.properties
    domain.db location: domain.db
    console log enable : false
    file log enable : false
    logRequest : false
    logLevel : ERROR
    java System properties -DESS_ES_HOME: null
    Scenario Markets Total Legal Entities Products
    Jan Feb Mar
    Standard Units 1.053264054859E7 1.60849856762E7 2.6234553348270003E7
    BUILD SUCCESSFUL (total time: 2 seconds)
    As you can see, this has worked (as I get the data I was looking for at the end), but when I had the url in the provider string, I just get the below, without the initial errors:
    run:
    Scenario Markets Total Legal Entities Products
    Jan Feb Mar
    Standard Units 1.053264054859E7 1.60849856762E7 2.6234553348270003E7
    BUILD SUCCESSFUL (total time: 2 seconds)
    Now that I can get both modes to work I intend to write a Windows application, place it in a shared drive, and allow multiple users to use it. Which mode should I use?
    By the way, I found the essbase.properties file in C:\Hyperion\AnalyticServices\JavaAPI\bin, but when I add it to my app and test it in embedded mode, I get even more errors, but it still gives me the result...output below:
    run:
    java.io.FileNotFoundException: ..\bin\apsserver.log (The system cannot find the path specified)
    at java.io.FileOutputStream.openAppend(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
    at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
    at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:156)
    at org.apache.log4j.FileAppender.<init>(FileAppender.java:96)
    at org.apache.log4j.RollingFileAppender.<init>(RollingFileAppender.java:60)
    at com.hyperion.dsf.server.framework.BaseLogger.addAppender(Unknown Source)
    at com.hyperion.dsf.server.framework.BaseLogger.setFileLogEnable(Unknown Source)
    at com.hyperion.dsf.server.framework.DsfLoggingService.sm_initialize(Unknown Source)
    at com.essbase.server.framework.EssOrbPluginDirect.setupLoggingService(Unknown Source)
    at com.essbase.server.framework.EssServerFramework.<init>(Unknown Source)
    at com.essbase.api.session.EssOrbPluginEmbedded.<init>(Unknown Source)
    at com.essbase.api.session.EssOrbPlugin.createPlugin(Unknown Source)
    at com.essbase.api.session.Essbase.signOn(Unknown Source)
    Hyperion Provider Services - Release 9.3.1.0.0 Build 168
    at com.essbase.api.session.Essbase.signOn_internal(Unknown Source)
    at com.essbase.api.session.Essbase.signOn(Unknown Source)
    at esstest.Main.main(Main.java:22)
    Copyright (c) 1991, 2007 Oracle and / or its affiliates. All rights reserved.
    connection mode : EMBEDDED
    log4j:WARN No appenders could be found for logger (com.hyperion.dsf.server.framework.BaseLogger).
    essbase.properties: essbase.properties
    log4j:WARN Please initialize the log4j system properly.
    domain.db location: ./data/domain.db
    console log enable : false
    file log enable : true
    logFileName : ../bin/apsserver.log
    logRequest : false
    logLevel : WARN
    java System properties -DESS_ES_HOME: null
    Scenario Markets Total Legal Entities Products
    Jan Feb Mar
    Standard Units 1.053264054859E7 1.60849856762E7 2.6234553348270003E7
    BUILD SUCCESSFUL (total time: 3 seconds)
    Thank you
    Leo

  • Why to use the Java API in MDM

    Hi Experts,
    I am new to the MDM.
    We are having the requirement of inetration between Portal and MDM.Can u please tell me when to use the following coponents like the scenorio's.
    Why to install the MDM Business packages in Portal?
    why to use the JAVA API.
    Please give me the complete information.
    Regards

    Hi Vijay,
    Standard Business Package is use to provide interaction between MDM Server and the Portal. It consists of MDM iViews like Item Detail iView (allows to create,edit and delete the records) , Resultset iView (Displays the records, allows to add the records in workflows etc), Search iViews (for searching)i.e. Data Manager functionality.
    Java API are used when you need some functionality that standard MDM iViews dont have.MDM Java API consists of set of classes and interfaces with the help of which customization can be done.
    Regards,
    Jitesh Talreja

  • Using the Java API

    Hi everyone,
    I just wanted to see if anyone knows whether I need a license to use the Java API included in the trial version of Adobe LiveCycle ES.
    I need to include some PDF manipulation code for dynamic XFA forms in an application, and I first read that XPAAJ jar was free. So is the API here also free or do I need a license? If anyone knows, could you please point me in the direction of the details if a license is needed.
    I would appreciate your help.
    Thanks.
    Mira.

    Mira
    You don't need a license as long as the application you're building is for evaluation or testing, and NOT for production use.
    You will need to purchase a license for production use.
    Licensing can be complex, and you should contact your local Adobe office or enterprise partner for details.
    XPAAJ was never free, it was bundled with other Adobe products.
    It has been deprecated, and is no longer supplied or supported, as far as I'm aware. You will need to purchase a LiveCycle license of some sort.
    Howard
    http://www.avoka.com

  • Using the Java API to address a specific instance

    Hi,
    I've created another operation (onRequest) in the client of an async. process.
    <!-- portType implemented by the Exp2 BPEL process -->
    <portType name="Exp2">
    <operation name="initiate">
    <input message="tns:Exp2RequestMessage"/>
    </operation>
    <operation name="onRequest">
    <input message="tns:Exp2onRequestMessage"/>
    </operation>
    </portType>
    I then use this operation in a recieve activity so that I can stall the flow of the instance, and then call it whenever I whant from a RMI client.
    <receive createInstance="no" name="onRequest" partnerLink="client" portType="tns:Exp2" operation="onRequest" variable="inputRequest"/>
    My problem is that, after the creation of one or more instances of this process, how can I send a post message to a specific instance using the Java API?
    I understand that i should use something like...
    deliveryService.post("Exp2", "onRequest", nm );
    but there's nothing to "say" that this post message is to be delivered to the instance with the ID "xx".
    I also know that I need to use correlation on this but I don't know how.
    I would really apreciate some help on this.
    Thanks...

    This is a very good question: here is a code snippet that shows how you can add a conversation id to the NormalizedMessage that you are sending to the delivery service.
    HashMap properties = new HashMap();
    properties.put("conversationId", "yourUniqueKeyHere");
    // construct the normalized message and send to the
    // delivery service
    NormalizedMessage nm = new NormalizedMessage( );
    nm.setProperties(properties );
    // The rest is the same
    nm.addPart("XXX" , someElement );
    Please note that you will need to use the conversationId property both with the message you use to initiate the BPEL process and the message you use to perform the onRequest call.
    Please note that if at some point you want to perform any of the 2 calls through the SOAP channel, you can embed he conversationId in the WS-Addressing header within the relateTo element.
    I hope this helps.
    Edwin

  • Compiling the Java API

    Hi,
    I'm relatively new to developing in Java, so this might be a very dumb question...
    Recently, I downloaded the JDK and the source for the Java API and I've been trying to compile everything in java.util.
    Frustratingly, I can't get all of the classes in java.util to compile straight off the bat.. Specifically, the classes Locale, Currency, JapaneseImperialCalendar and Calendar report a missing symbol error - either for LocaleData or OpenListResourceBundle.
    I've tried hunting for the source for both of these classes, and also looked around the web to see what I could find, but found nothing. I've also looked for a class file or jar file that might be missing from my class path but I haven't found anything that looks useful.
    So something in the configuration of what I'm doing is wrong - if anyone can offer any help on getting java.util to compile I would greatly appreciate it!
    Thanks,
    Chris

    Hi,
    Thank you all for your help - unfortunately, I specifically want to compile collections because I'm wanting to play around with and change some of them a little, and I figure the first thing to do is to get them compiling "out of the box".
    Any suggestions as to where I can get the full source from would be much appreciated, I'm sure that's a particularly dumb question, but nonetheless I have looked for that as well with no luck.
    Alternately, I'm sure that, e.g., LocaleData.class exists somewhere, even if it's only in a part of the JRE I've downloaded - else code which uses the Calendar class could never work! If anyone has any hints as to where I might find these class files that would also solve my problems!
    Thanks :)
    Chris

  • Do you have the java api on your computer?

    Just an observation.
    Earlier when i started java programing, i used alot of books and tutorials which i still do. when i was faced with a problem eg. a method to do this or that, i used to look for tutorials for how to do it, and sometimes i couldnt get. After Many months, i stumbled upon java api, a documents that cointains all methods, classes and interfaces in java. my output increased, posts in this forum to seek help reduced, and am happier now?
    Dou you have this api in your computer? i personally think newbies can accelerate their learning path by having this two references
    1. the java tutorial
    2. the java api
    your thoughts?

    your thoughts?That it's time for you to stumble across the downloads section of this site and download jdk-6-doc.zip. You can download the Tutorials here
    db
    edit Lousy link parsing. Just go to the Tutorial home page and click the link provided.
    Are https links not allowed? Crazy.
    Edited by: Darryl.Burke

  • How do I create a user, in my context in OID using the Java API

    How do I create a user, with subschema, in my context in OID using the JAVA API
    I need to be able to create new users in my OID, I was doing it in our old iPlant Directory, but I don't seem to see the same methods in the Oracle LDAP API. I figured out how to get and modify the attributes of a user, but I can't seem to figure out how to add a new one.

    Try this code , modify it accordingly
    ------- cut here -------
    import oracle.ldap.util.*;
    import oracle.ldap.util.jndi.*;
    import javax.naming.NamingException;
    import javax.naming.directory.*;
    import java.io.*;
    import java.util.*;
    public class NewUser
    final static String ldapServerName = "yourLdapServer";
    final static String ldapServerPort = "4032";
    final static String rootdn = "cn=orcladmin";
    final static String rootpass = "welcome1";
    public static void main(String argv[]) throws NamingException
    // Create the connection to the ldap server
    InitialDirContext ctx = ConnectionUtil.getDefaultDirCtx(ldapServerName,
    ldapServerPort,
    rootdn,
    rootpass);
    // Create the subscriber object using the default subscriber
    Subscriber mysub = null;
    String [] mystr = null;
    try {
    RootOracleContext roc = new RootOracleContext(ctx);
    mysub = roc.getSubscriber(ctx, Util.IDTYPE_DN, "o=dec", mystr);
    catch (UtilException e) {
    e.printStackTrace();
    // Create ModPropertySet with user information
    ModPropertySet mps = new ModPropertySet();
    mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"cn", "Steve.Harvey");
    mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"sn", "Harvey");
    mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"uid", "SHarvey");
    mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"givenname", "Steve");
    mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"mail", "[email protected]");
    mps.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_ADD,"userpassword", "welcome1");
    // Create the user
    User newUser = null;
    try {
    newUser = mysub.createUser(ctx, mps, true);
    System.out.println("New User DN: " + newUser.getDN(ctx));
    catch (UtilException e) {
    e.printStacktrace();
    ------- end cut --------
    Enjoy.
    Suhail

  • Help with the import statement

    Hello,
    i have a question, how would you start a simple program
    that it doesn't involve graphics or anything like that.
    A simple program that for ex. it would increment and then dicrement the
    enetered number.
    What would you write after import_______________;
    and how would you initialize the variables that you use.
    Thanks in advance!!!

    I'm not sure that you understand what an import statment does.
    Every class that you want to use must be imported. For example in this the class Integer must be imported
    Integer myinteger = new Integer(5);so every time you use the word "new" that class must be imported.
    To make our lives a little easier java will automatically include the java.lang.* files so all java programs have the line:
    import java.lang.*;even though you don't see it.
    If you want to use other classes you must find out what package they are in and import that class or it's entire package.
    For example if you want to get user input you would probably want to look at the java.io package.
    It will take some time to get a good feel for the packages and what classes are available, but spend some time each day or a couple time a week looking through the java API's.
    hope that helps.

  • Solution Manager systems RAM requirements - problems with the Java Engine

    Hello,
    I am about to install SAP Solution Manager 7 on a WIndows 2003 Server x64 but I need to know what the RAM requirements are? I have been having problems with the Java Engine starting and it seems to time out, I have heard that this is a very RAM hungry process and it might be why?
    Many thanks for your help in advance,
    Omar

    Hello Omar,
    To size SAP Solution Manager 7.0 EHP1 we recommend to use the SAP Solution Manager Quicksizer Tool at:
    http://service.sap.com/sizing-solman
    Here you find information on how to use the tool, how to collect input data for E2E Scenario Sizing, on SAP E2E RCA Sizing, Introscope Tuning, Wily Enterprise Manager Cluster Setup for E2E RCA Scenario and BI Aggregation Strategy in E2E Scenario.
    Please find more information about installing Solution Manager in:
    http://service.sap.com/instguides -> SAP Solution Manager
    I hope this information helps.
    Thanks,
    Mark

Maybe you are looking for

  • 10.2.1 OS error on photo contact and name of the caller

    Hi, I just instaled on my Z10 the new 10.2.1 OS update. Till now I faced 3 errors: 1. the call register doesn't allways show me the name of the caller, just the number; 2. after syncronizing with facebook, contact photo imported from facebook dissape

  • How can I keep my macbook pro running 10.9.2 from continually freezing?

    My macbook pro running OSX 10.9.2 freezes randomly, sometimes before the computer has completely booted up.  I have no startup programs. Please help.

  • Account Name Error

    When I go to system preferences and click the lock to make changes, or when I try to download new updates and such, the name and password section are both blank and when I type in the administrators name and password it says "please try again." So, I

  • How to use regex NEGATION with a (word) ?

    Hi all. How can I negate a given word ? For example: For the text "I love dogs but I hate cats" I want to write a regex that says: "Look for the word (dogs), followed by the word (cats) and allow any caracters between them, EXCEPT the word (hate)". S

  • How to get xml tag name?

    Hi all I've selected some texts and I want to get its xml element name not root element. I've done this InterfacePtr<IXMLReferenceData> xmlRefData(Utils<IXMLUtils>()->QueryXMLReferenceData(textModel)); and I get only the document's root element name.