PKCS12 - Different resutls on JDK1.4 and JDK 1.5 and above

Hi guys, i've recieved a PKCS12 file which contains a certificate and private key that i am supposed to extract. As im new to certificates and the whole PKI infrastructure i attempted to write a small program to try and view the contents of the PKCS#12 file.
A password is required to retrieve the certificate and the private key from the pkcs12 file. A password was provided to me and the instructions state that the password is the MD5 hash of the password that was provided to me.
I am having two weid prolems with this implementation. If i run this class on a JDK1.5 VM the password is rejected with the following error.
java.io.IOException: Integrity check failed: java.io.IOException: getSecretKey failed: Password is not ASCII
        at com.sun.net.ssl.internal.ssl.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1314)
        at java.security.KeyStore.load(KeyStore.java:1150)
        at pkcs12.Certificaten.extractKeys(Certificaten.java:44)
        at pkcs12.NewClass1.main(NewClass1.java:47)I am not sure why it is insisting that the password should be ASCII. Does anyone know why this is the case?
If i run the same class on JDK 1.4, i can open the PKCS12 file so the password is accepted. as shown below
Alias : 257811
Adding key for alias 257811
Private key
RSA
java.lang.ClassCastException
        at pkcs12.Certificaten.extractKeys(Certificaten.java:59)
        at pkcs12.NewClass1.main(NewClass1.java:47)
Exception in thread "main" The exception in 1.4 is to do with this line i think
cert =   (Certificate) myStore.getCertificate(strAlias);I havent found out the resolution to the above problem but im a bit worried on teh error if i ran it on 1.5. As i dont have control of the format of the password, i cant just change it to be an ASCII password. Is there a way i can get it to accept a non-ascii password?
Here are the classes i used to test the above.
public class NewClass1 {
    public static byte[] MD5(byte[] bytes) throws NoSuchAlgorithmException{
          MessageDigest md;
          md = MessageDigest.getInstance("MD5");
          byte[] md5hash = new byte[8];
          md.update(bytes);
          md5hash = md.digest();
          return md5hash;
    public static void main(String[] main) throws NoSuchAlgorithmException, UnsupportedEncodingException, IOException, Exception{
        byte[] originalStringInBytes = "Baltimore1,".getBytes("ISO-8859-1");
        byte[] md5;
        md5 = MD5(originalStringInBytes);
        System.out.println(md5);       
        String tstString = new String(md5,"ISO-8859-1");
        System.out.println(tstString);
        Certificaten newCert = new Certificaten("E:\\Documents and Settings\\ziggy\\My Documents\\NetBeansProjects\\PKCS12\\src\\pkcs12\\257811.p12");
        newCert.extractKeys(tstString);                    
}I used this class written by somebody else to extract the keys
public class Certificaten {
    private FileInputStream in_cert = null;
//private InputStream cert = null;
    private KeyStore myStore = null;
    private PrivateKey kr = null;
    private PublicKey ku = null;
    private java.security.Certificate cert = null;
    Enumeration eAliases = null;
//constructors
    public Certificaten() //default constructor
    public Certificaten(String certPath) //overloaded constructor
        try {
            in_cert = new FileInputStream(certPath);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
    public void extractKeys(String passw) throws Exception {
        try {
            myStore = KeyStore.getInstance("PKCS12");
            myStore.load(in_cert, passw.toCharArray());
            eAliases = myStore.aliases();
            while (eAliases.hasMoreElements()) {
                String strAlias = (String) eAliases.nextElement();
                System.out.println("Alias : " + strAlias);
                if (myStore.isKeyEntry(strAlias)) {
                    System.out.println("Adding key for alias " + strAlias);
// retrieve private key from PKCS12 certificate
                    kr = (PrivateKey) myStore.getKey(strAlias,
                            passw.toCharArray());
                    System.out.println("Private key");
                    System.out.println(kr.getAlgorithm());
//check for occurence of error!!
                    if (kr == null) {                       
                    cert =   (Certificate) myStore.getCertificate(strAlias);
//check for occurence of error!!
                    if (cert == null) {
//retrieve public key from certificate
                    ku = cert.getPublicKey();
                    System.out.println(ku.getAlgorithm());
//check for occurence of error!!
                    if (ku == null) {
        } catch (KeyStoreException e) {
            e.printStackTrace();
        } catch (NoSuchAlgorithmException e) {
            e.printStackTrace();
        } catch (CertificateException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } catch (UnrecoverableKeyException e) {
// TODO Auto-generated catch block
            e.printStackTrace();
    public PrivateKey getPrivateKey() {
        return kr;
    public PublicKey getPublicKey() {
        return ku;
    }

Dude - instead of posting something, and then editing it like eleventy-bajillion-thousand times afterwards,
why don't you click the "preview" tab and look over it, before clicking the "post" button? eh?

Similar Messages

  • Different complining result between SUN JDK 1.4 and IBM JDK 1.3.1

    Hi! I simplifed my code as following:
    public class TestException2 {
        public Object test() {
            java.sql.Connection cn = null;       
            try {
                 // 1st. close
                cn.close();
            catch (java.sql.SQLException se) {
                 // 2nd. close
                cn.close();
            finally {
                return new Object();
    }But I get different compiling result betwueen SUN JDK 1.4.2 and IBM JDK 1.3.1 (I have to deploied my app to the websphere 5.0)
    In Sun JDK 1.4.2, I only got a warning:
    [e:\work\test]javac TestException2.java
    TestException2.java:14: warning: finally clause cannot complete normally
            ^
    1 warningIn IBM JDK 1.3.1, I got an error:
    TestException2.java:10: unreported exception java.sql.SQLException; must be caught or declared to be
    thrown
                cn.close();
                  ^
    1 errorWhat happend? Who is right?
    Thank you!
    [ I believe the code should not pass the compilation ... ]

    Many other people agree with you, including some Sun engineers.
    Perhaps Sun just feels an obligation to continue to allow it for legacy reasons.
    You might also investigate the compiler that comes with Eclipse.
    http://www.eclipse.org/
    It has a more flexible approach: for some cases, it lets you decide what is a warning and what is an error.

  • JDev 2 and JDK 1.2.2

    How do I add JDK 1.2.2 as an option for JDev to use? I didn't find it in the JDev help? Did I miss it?

    Company policy prevents me from download JDev 3 from the net. To order it, will take months. And Oracle for the sequent comes out way behind other platforms, so I cann't take avantage of JDev3's latest features.
    So Can i just install JDK 1.2.2 and jdk 1.3 and use the "Define" button to include them in the list?

  • JNDI and JDK 1.2

    Hello everyone,
    I am trying to add entries into an LDAP using JDK 1.2 and JNDI. I have succesfully removed and listed entries(I added the entries by using JDK 1.3), but still cannot add anything to the LDAP.
    I have been using an LDAP browser to verify that the entries that I added with JDK 1.3 where indeed added. In conjuction with JDK 1.2, I have been pointing my classpath to the jndi.jar file. I have also added the providerutil.jar, and ldap.jar file to my classpath.
    Perhaps I am missing another jar file. I have download and put in my classpath, from sun's JNDI website
    (http://www.columbia.edu/~he99/jndi-ext.html) these packages ( meaning all of the jar files contained in
    these packages). I put all of them in one folder and pointed to the folder from my classpath:
    JNDI 1.2.1
    LDAP 1.2.4
    DNS 1.2
    NIS 1.2.1
    FS Context
    COS Naming 1.2.1
    I also tried using the -classpath option while compiling and running my code to explicitly and individually
    point to each jar file. I am aware that there are two different versions of the provierutil.jar file among the
    above mentioned packages. The one that is 79 KB is the only one that works, however. I have also tried
    pointing to only the individual packages from my classpath. Also, I have tried mixing and matching different
    jar files from different packages.
    I get the error message printed below this paragraph when trying to add an entry with JDK 1.2(using JNDI), but no error messages when trying to list or remove an entry. With JDK 1.3, I get none of these error messages (Im using the same exact code for both JDK 1.2 and JDK 1.3, with the exception that I add the JNDI and other necessary jar files when using JDK 1.2).
    javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - attribute not allowed]; remaining
    name 'cn=haro,ou=MDS3'
    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Compiled Code)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(Compiled Code)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(Compiled Code)
    at com.sun.jndi.ldap.LdapCtx.c_bind(Compiled Code)
    at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_bind(Compiled Code)
    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(Compiled Code)
    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(Compiled Code)
    at javax.naming.directory.InitialDirContext.bind(Compiled Code)
    at AddService.main(Compiled Code)
    This may have to do something with what is said here:
    http://www.columbia.edu/~he99/jndi-ext.html
    Particularly the following:
    "When a Reference is read from the naming or directory service and a codebase specifying where to load
    the factory class for the reference has been specified, JNDI will attempt to load the class from the
    locations specified in code base. In order for the class loading to succeed, you must grant the application
    the permissions appropriate for the URLs named in the codebase. For example, if the URL scheme is "http"
    or "ftp", you must grant the application the appropriate java.net.SocketPermission; if the URL scheme is
    "file", you must grant the application the appropriate java.io.FilePermission.
    If you are using JNDI as an installed extension, that is, jndi.jar has been installed in the
    $JAVA_HOME/jre/lib/ext directory, you need to take no further action."
    I have created a directory in unix and made a jre folder with lib and ext as a subfolders and then
    made the variable "$JAVA_HOME" point to that directory, in which I put all of the jar files from those
    packages (with the 79 KB providerutil jar). Still, I get the same error message.
    Does anyone know how to resolve this problem? (My development team has coded everything with JDK 1.2 so far and cannot migrate to JDK 1.3 so late in our implementation).

    ref13E,
    I think it's not because of the jdk. I use jdk1.4 and get the same exception.
    Wht is the LDAP server that you use? We use AD.
    Regards,
    George

  • JDeveloper 11g and JDK 1.4.2_16

    Hi! I just created a new simple app in JDev 11g and selected the JDK 1.4.2_16 for the model project. I created a set of business components from tables, built the project and them attempted to run the AppModule tester.
    I got the following error:
    /usr/java/j2sdk1.4.2_16/bin/java -server -classpath /opt/app/oracle/product/jdevstudio1111/BC4J/jlib/bc4jtester.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/bc4jsyscat.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/db-ca.jar:/opt/app/oracle/product/jdevstudio1111/jlib/jdev-cm.jar:/opt/app/oracle/product/jdevstudio1111/lib/xmlparserv2.jar:/opt/app/oracle/product/jdevstudio1111/jlib/ohj.jar:/opt/app/oracle/product/jdevstudio1111/jlib/help-share.jar:/opt/app/oracle/product/jdevstudio1111/jlib/share.jar:/opt/app/oracle/product/jdevstudio1111/jlib/jewt4.jar:/opt/app/oracle/product/jdevstudio1111/jlib/oracle_ice.jar:/opt/app/oracle/product/jdevstudio1111/jlib/ojmisc.jar:/opt/app/oracle/product/jdevstudio1111/ide/lib/idert.jar:/opt/app/oracle/product/jdevstudio1111/ide/lib/javatools.jar:/usr/java/j2sdk1.4.2_16/jre/lib/rt.jar:/usr/java/j2sdk1.4.2_16/jre/lib/i18n.jar:/usr/java/j2sdk1.4.2_16/jre/lib/sunrsasign.jar:/usr/java/j2sdk1.4.2_16/jre/lib/jsse.jar:/usr/java/j2sdk1.4.2_16/jre/lib/jce.jar:/usr/java/j2sdk1.4.2_16/jre/lib/charsets.jar:/usr/java/j2sdk1.4.2_16/jre/classes:/home/mcruz/development/11g/SessionTest11g/.adf:/home/mcruz/development/11g/SessionTest11g/Model/classes:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/adf-share-support.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/adf-share-ca.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/adf-share-base.jar:/opt/app/oracle/product/jdevstudio1111/jlib/identitystore.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/bc4jmt.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/bc4jwizard.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/groovy-all-1.0.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/bc4jct.jar:/opt/app/oracle/product/jdevstudio1111/jlib/commons-el.jar:/opt/app/oracle/product/jdevstudio1111/jlib/jsp-el-api.jar:/opt/app/oracle/product/jdevstudio1111/jlib/oracle-el.jar:/opt/app/oracle/product/jdevstudio1111/jlib/resourcebundle.jar:/opt/app/oracle/product/jdevstudio1111/lib/java/api/jaxb-api.jar:/opt/app/oracle/product/jdevstudio1111/lib/java/api/jsr173_api.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/lib/activation.jar:/opt/app/oracle/product/jdevstudio1111/lib/java/shared/sun.jaxb/2.0/jaxb-xjc.jar:/opt/app/oracle/product/jdevstudio1111/lib/java/shared/sun.jaxb/2.0/jaxb-impl.jar:/opt/app/oracle/product/jdevstudio1111/lib/java/shared/sun.jaxb/2.0/jaxb1-impl.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/adfshare.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/adfm.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/jlib/adfui.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/adfbinding.jar:/opt/app/oracle/product/jdevstudio1111/adfdt/lib/adfdtatrt.jar:/opt/app/oracle/product/jdevstudio1111/adfdt/lib/adftransactionsdt.jar:/opt/app/oracle/product/jdevstudio1111/adfdt/lib/adfdt_common.jar:/opt/app/oracle/product/jdevstudio1111/mds/lib/mdsrt.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/jazn.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/jazncore.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/jps-api.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/jps-common.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/jps-internal.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/jps-fmw.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/jps-unsupported-api.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/lib/jacc-api.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/lib/oc4j-unsupported-api.jar:/opt/app/oracle/product/jdevstudio1111/jdbc/lib/ojdbc5dms.jar:/opt/app/oracle/product/jdevstudio1111/jlib/orai18n.jar:/opt/app/oracle/product/jdevstudio1111/jlib/ojdl.jar:/opt/app/oracle/product/jdevstudio1111/jlib/dms.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/bc4jdomorcl.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/jlib/bc4jdatum.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/lib/servlet.jar:/opt/app/oracle/product/jdevstudio1111/jlib/commons-cli-1.0.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/lib/commons-collections.jar:/opt/app/oracle/product/jdevstudio1111/jlib/xmlef.jar:/opt/app/oracle/product/jdevstudio1111/lib/xml.jar:/opt/app/oracle/product/jdevstudio1111/rdbms/jlib/xdb.jar:/opt/app/oracle/product/jdevstudio1111/javacache/lib/cache.jar:/opt/app/oracle/product/jdevstudio1111/diagnostics/lib/ojdl.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/lib/pcl.jar:/opt/app/oracle/product/jdevstudio1111/ucp/lib/ucp.jar:/opt/app/oracle/product/jdevstudio1111/lib/java/shared/oracle.javatools/11.1.1.0.0/dafrt.jar:/opt/app/oracle/product/jdevstudio1111/lib/java/shared/oracle.javatools/11.1.1.0.0/javatools-nodeps.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/jlib/bc4jui.jar:/opt/app/oracle/product/jdevstudio1111/dvt/lib/dvt-client.jar:/opt/app/oracle/product/jdevstudio1111/dvt/lib/dvt-utils.jar:/opt/app/oracle/product/jdevstudio1111/jlib/LW_PfjBean.jar: oracle.jbo.jbotester.MainFrame -X 116D6D52C8E -H jar:file:/opt/app/oracle/product/jdevstudio1111/jdev/doc/studio_doc/ohj/bc4j_f1.jar!/bc4j_f1.hs
    Exception in thread "main" java.lang.UnsupportedClassVersionError: oracle/jbo/jbotester/MainFrame (Unsupported major.minor version 49.0)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    Process exited with exit code 1.
    Am I to assume that jdk1.4.x is no longer supported in JDeveloper and that I should start using JDK1.5.x? But apps built with JDK1.5.x are not supported in AppServer 10.1.2.0.2, which is J2EE 1.3 compliant... Does that mean that JDeveloper 11g is suitable only for apps deployed on OAS 10.1.3.x and above? (OAS 10.1.3.x is J2EE 1.4 compliant, and OAS 11g will be J2EE 5.x compliant).
    Comments please.
    Thx!

    be on OracleAs 10.1.3 at a minimum<<The problem (for us) with Oracle AS 10.1.3 is that Portal 10.1.4 will not run on it (not certified). We want to take advantage of ADF RC and we hope to be able to produce JSF portlets or "portletized" apps. But at the moment we are "stuck" with 10.1.2.0.2 and JDK 1.4.x/J2EE1.3...
    While you can have a 10.1.2 farm and add a 10.1.3 separate instance it is not a clean/complete integration (you can't manage all services from the 10.1.2 farm EM and others; this is what I've seen so far, IMO).
    We can't wait for OAS 11g to come out and take a look at that. And I certainly hope that Portal will be certifed on 11g so that we can just jump there.
    Another wish: WebCenter functionality in Portal, or Portal/WebCenter rolled out into one.

  • Oracle 7.3 and Jdk 1.2

    Hi
    I am having the same problem with
    the above two versions but if I use jdk1.1.8
    i.e anything below 1.2 I am able to connect to database and execute my JDBC program.
    But this is not the solution as I need to use
    Jdk 1.2 as I am using the EJB 1.1
    If any of u have solved the problem pls let me know.
    Ritesh

    B.moussaud (guest) wrote:
    : Hi I am using jdk 1.2 and a database oracle 7.3.4
    : Can you give an URL where dowland the correct JDBC driver
    : answering to my two criterias (jdk+oracle) ( and a sample if
    : possible).
    : I have tried to find this driver but always the drivers for
    : jdk1.2 are for oracle 8.x not to oracle 7.3.4.
    : Thank you
    : B.moussaud
    : [email protected]
    oracle doesn't have any jdbc oci drivers available for jdk 1.2.x
    yet -- rumored to be in rdbms version 8.1.6 whihcis in beta and
    will be available soon -- i hope.
    you can get a thin driver called oracle 816sdk for jdk 1.2 but
    it only has the functional;ity for jdk 1.1.x.
    they're on otn download pages
    null

  • Java card 2.0 and JDK 1.3

    Hi all,
    Is java card 2.0 compatible with JDK 1.3? I have JDK 1.3 and java card 2.1 on my machine. But I have just realized that the card I have (Schlumberger's Cyberflex Access 16K cards) only support java card 2.0. So now I have to re-setup everything. Just wondering if I need to get a different JDK too?
    Thanks!

    You will need SLB Cyberflex kit for the 16k cards anyway because of the filesystem. Not to mention I don't think their latest kit, 4.3 TRUELY supports JC2.0 even though the docs says it does. Which means you might have to find a way to purchase the V3 kit because JC 2.0 isn't available here anymore.
    Also remember this, Cyberflex 16k, doesn't contain Global Platform implementation.

  • JDBC 8.1.6 (2.0) and JDK 1.2 java.sql.SQLException

    I wrote an applet program and access to Oracle database using JDBC 2.0 (Oracle 8i 8.1.6). When testing, I got errors java.sql.SQLException: No suitable driver.
    Who havd any idea to solve this problems.
    It works fine when I use JDBC 1.2 and JDK 1.2 .
    Chuleerat.

    "No suitable driver" usually means that the
    connect string is incorrect.
    The 8.1.6 driver supports JDK1.1 and JDK1.2.
    If you use JDK1.2, the JDBC 2.0 features
    are available to you.
    null

  • WSDK 5.0, JDK 1.4 and JSSE

    WSDK 5.0 (Web Services Development Kit, by IBM) sample applications show how to set up the environment if using JDK 1.4 and JSSE as a seperate package, however JSSE is now integrated into JDK 1.4 and therefore setting up the environment is different. Eventhough I'm setting the protocol:
    System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol")
    I'm still getting:
    org.uddi4j.transport.TransportException: no protocol
    Please if anyone could point me to a sample application that sets up the environment based on JDK 1.4 or let me know what else I need to do to set up the environment, I would really appreciate it.
    thanks
    Kareem

    You can get it done at:
    http://www.thesoftwareobjects.com

  • Drag and Drop between JTree and Labels in 2 different panes

    Hi,
    I am using JDK 1.4.1 and am trying to implement Drag n Drop between a JTree and JLabels with ImageIcons, both on different panes.
    I got the DnD working fine on the tree. but i cant get to drag and drop the label from the other pane, on the Jtree as a node. I am getting confused with the DataFlavors, and also wonder if there is something else that i have to do for DnD between 2 panes. Can someone give me any leads on this, please? The Panes I am talking about are splitpanes.
    thanks,
    Sri.

    hey thanks Dennis!! I was hoping you would respond to my question, as I have seen a lot of your replies. yes, the example you gave would be helpful. but i am trying to implement this in 1.4.1, with the new drag and drop in swing. and i am getting confused wiht theh data flavors etc.
    my problem at hand is :
    I have a tree on the left pane. i can drag and drop the nodes on the tree itself. (i already did that...no problem). I have Jlabels with imageicons (actually wrapper classes with labels and imageicons) on the right pane. i have to be able to drag these labels to the tree such that they form a node.
    I have one class the NodeSelection class which extends TransferHandler and implements Transferable. i was able to do DnD for the tree using this. I customized the importData method in this.I thought that i can just use the same class to create the transferhandler and transferable, and just use a different implementation for the importData method if the data being dragged is from the label.
    well, my thoughts and ideas were ok...but i can implement it...so they must be wrong ;-)
    Can u please suggest another way to do this. I have a deadline to meet and am stuck here :-( any suggestions or tips or hints would be very helpful and appreciated!!
    Thanks,
    Sri.

  • JAVA_HOME, JRE and JDK

    Does anyone know what JAVA_HOME should be pointing to if only the JRE in installed? What it should be pointing to if the JDK is installed?
    On Windows, I notice that c:\program files\JavaSoft gets created after install. For which install does that happen? For the JRE and JDK install? Should JAVA_HOME be pointing to that directory?
    I couldn't find any java.sun documentation about the role of the JAVA_HOME env var. If anyone can piont me to some, that would be appreciated. :-)
    Version: 1.3.1
    Thanks in advance.

    Dear dinogg
    Does anyone know what JAVA_HOME should be pointing to
    if only the JRE in installed? What it should be
    pointing to if the JDK is installed?
    set JAVA_HOME=C:\jdk1.3.1\bin
    On Windows, I notice that c:\program files\JavaSoft
    gets created after install. For which install does
    that happen? For the JRE and JDK install? Should
    JAVA_HOME be pointing to that directory?
    actually it is for jre but when u install jdk it also install jre if you notice there is a part setting up java runtime environment
    I couldn't find any java.sun documentation about the
    role of the JAVA_HOME env var. If anyone can piont me
    to some, that would be appreciated. :-)
    not sure where you can find it
    Version: 1.3.1
    Thanks in advance.
    version 1.4.0 is out and it is nice
    new stuff like scroll mouse, undecorated dialogs, xml transformer better focus management and etc
    Thanks
    Joey

  • What different of all version of jdk(include j2sdk)

    hi everyone:
    I have developed an application. But there are some other applications worked with our application. And these applications are written by java, and compiled and run by different version of jdk(or j2sdk) correspondingly. And these applications are B/S structure, the browser is IE. The situation is: if one version of jre is selected for IE, this application can run normally, but others may not run normally.
    So it puzzle me.
    I have 2 problems:
    1. How to detect the current version of JRE(including SUN JVM and microsoft JVM) with IE?
    2. What different of all version of jdk(include j2sdk)? Or where can i find the related document of the different?

    I'm not sure if you want to programatically detect the VM version or just be able to see what version it is. You could go to Internet Explorer's Advanced Tab and see what version is being used. If you want to detect or change it programatically, the only way I can think of is to change the windows registry entry (you'll need to verify this, I'm not sure this is the right key) in:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\AdvancedOptions\JAVA_SUN\SELECT and change the Value of RegPath to the one you want. The JVMs can be found at http://java.com/en/index.jsp. You can also search Microsoft's website for JVM information.

  • OC4J and JDK version compatibility

    Does anyone know if OC4J 1.0.2.2.1 is certified to work with JDK1.3.1?
    The reason being :
    1. We have a situation where the CPU gets full frequently because of OC4J.
    2. When OC4J is recycled the app works fine. App uses JSP, servlets and JDBC connection to Oracle 8.1.7
    3. Is there any way to find if OC4J 1.0.2.2.1 is not supposed to be used with JDK1.3.1?
    Finally, is there any URL that provides this information so that I can check the same with later versions of OC4J and JDK?
    Thanks,

    OC4J 1.0.2.2.1 is not certified with 1.3.1.x. Certification information should be available in http://metalink.oracle.com. You should have a CSI to get into Metalink.
    thanks
    debu

  • Differences of JDK x86 and JDK x64

    Dear all,
    I am in the progress on studying Java update with existing program.
    For previous, the program is complied in eclipse under JDK 1.4.2.
    We are now updating the JRE and JDK 1.6 update 30, however, there are several questions. Most appreciated if any one can provide a direction or guidance on it.
    1. As my understanding, Java should be able to compile and run under x86 and x64 platform, and it should be no difference on the compiled classes. The only difference should be x86 JVM and x64 JVM (for example, x86 JVM has better than x64 JVM, and x64 JVM should be support larger address range than x86 JVM). If not, what will be differences among classes compiled under x86 and that of x64?
    2. The x86 classes can be executed under x64 JVM. Can the x64 classes be executed under x86 JVM? Although, the classes will be read into byte stream into VM...
    3. If we need the x64 classes to execute under x86 environment, what should we do? If the x64 classes cannot be run in x86 JVM.

    929805 wrote:
    Is there documentation or reference (e.g. Java Knowledge Base, etc) stating this issue?There is documentation which states how Java compiled code must be handled within a JVM. (The Java Virtual Machine Specification.) Here's a quote from very close to the beginning:
    The Java virtual machine is an abstract machine.So you shouldn't expect it to mention specific machine architectures, or to specify how it should work on any particular machine architecture. On the contrary, you should expect it to ignore the existence of different machine architectures. And likewise when it gets around to describing the class file format, it simply provides an abstract description. It's up to the implementers to write something which runs in a particular machine architecture and which faithfuylly implements the JVM specification.

  • Installing JMS 3.6 without JRE and JDK

    I'm looking for a way to install JMS only, without installing the new versions of JRE and JDK. The application I'm working on works with JRE 1.5.0_02 only, and there is no plan to change that in the near future, however we want to upgrade to JMS 3.6 to be able to use the new imqPingInterval.

    Are you shure you have included the jre PATH (not CLASSPATH) in your PATH variable?
    Assuming you're working in a Linux (or unix) environmet, check the PATH: it should contain /usr/local/jdk1.3.1_01/jre/bin.
    I'm not sure this is really the answer, but there's no damage on trying it! :-)
    bye
    Michele

Maybe you are looking for

  • I need to delete PHOTO SHOP CS5 HELP !!!!!

    ..

  • Errors during Loading TD from Flat file to PSA

    Hi Guys, I got some errors while loading the flat file transaction data into PSA using infopackage. Could you guys can help me to solve the below errors. It would be more appreciated if you guys could send some material which tells about these types

  • Url location of dynamically created file...

    I have a web app war that I have deployed to weblogic. This war generates some images which I want to point to from my web app browser. 1. Is there a specific directory ( like the default root of the web app ) that I can get access to create these fi

  • Microsoft Exchange Portlet security

    Hi, I cant find any documentation on this issue, but are there other ways to set up login security for the Exchange portlet than the ones described in http://www.oracle.com/technology/products/ias/portal/point/exchange2003/installation.html ? Basic a

  • X3-02 flashing screen?

    I bought an X3-02 off eBay for my mom as a christmas present. After less than a day of using it, the phones screen went white, then off, then started flashing white. I tried doing a battery pull, but it still wouldn't turn on. I eventually plugged it