J2sdk 1.4.1 ...to j2sdk 1.4.2-b28 & JCE package

hi,
i have pb with upgrading my compiller (in Jbuilder7) from j2sdk 1.4.1 or 1.4.0 ... (i don't remember exactly the n� of version) to j2sdk 1.4.2-b28.
well i first install the j2sdk 1.4.1 becuse it offers the JCE package(RSAwithSHA algorithme), while jdk 1.3.1 don't.
the application function very well whene i used j2sdk 1.4.1 but with j2sdk 1.4.2-b28 it compiles right (no error) but causes pbs in execution in certain fnuctions.
i got this error mesage when executiing :
java.io.InvalidClassException: com.sun.net.ssl.internal.ssl.JSA_RSAPublicKey; local class incompatible: stream classdesc serialVersionUID = -8509221176441256992, local class serialVersionUID = -4603577243802113781
thx in advance
Lam

i have pb with upgrading my compiller (in Jbuilder7)
from j2sdk 1.4.1 or 1.4.0 ... (i don't remember
exactly the n� of version) to j2sdk 1.4.2-b28.
well i first install the j2sdk 1.4.1 becuse it offers
the JCE package(RSAwithSHA algorithme), while jdk
1.3.1 don't.
the application function very well whene i used j2sdk
1.4.1 but with j2sdk 1.4.2-b28 it compiles right (no
error) but causes pbs in execution in certain
fnuctions.
i got this error mesage when executiing :
java.io.InvalidClassException:
com.sun.net.ssl.internal.ssl.JSA_RSAPublicKey; local
class incompatible: stream classdesc serialVersionUID
= -8509221176441256992, local class serialVersionUID =
-4603577243802113781
You have serialized a PublicKey object using 1.4.1 and try to deserialize it using
1.4.2_04. This doesn't work, I had the same problem.
You should store your key as its encoded form (an array of byte) instead of serialized form.
Using jre 1.4.1, get the encoded form using "getEncoded()" method.
Serialize the encoded form.
When you need your key, use :
KeyFactory kf = KeyFactory.getInstance("RSA");
PublicKey pk= kf.generatePublic(new java.security.spec.X509EncodedKeySpec(encodedKey) );
Matthieu

Similar Messages

  • J2sdk split into j2re and j2sdk

    j2sdk has been split into j2re and j2sdk.  Problem is that a directory in the old j2sdk has become a symlink and pacman doesn't like that much.
    You'll have to pacman -R j2sdk and then pacman -S j2sdk for the upgrade to go through properly.

    hmm ... doesn't seem to solve things ...
    [damir@Asteraceae damir]$ su
    Password:
    [root@Asteraceae damir]# pacman -R j2sdk j2re
    error: this will break the following dependencies:
    j2sdk: is required by apache-ant
    j2sdk: is required by eclipse
    j2sdk: is required by jdom
    j2sdk: is required by jedit
    [root@Asteraceae damir]# pacman -Rd j2sdk j2re
    removing j2sdk... done.
    removing j2re... done.
    [root@Asteraceae damir]# pacman -S j2sdk
    Targets: j2re-1.4.2_03-1 j2sdk-1.4.2_03-2
    Proceed with upgrade? [Y/n]
    checking package integrity... done.
    loading package data... done.
    checking for file conflicts... done.
    installing j2re... done.
    installing j2sdk... could not extract opt/j2sdk/jre: Is a directory
    errors occurred while installing j2sdk
    done.
    [root@Asteraceae damir]#

  • SAP Installation java error package j2sdk-1_4_2_16-fcs is already installed

    Hi All,
    I need one help.
    I am trying to install SAP ECC 6.0 in REDHAT Linux 5.0 and Database Oracle 10.2.
    I have downloaded the below two java files
    j2sdk-1_4_2_16-linux-i586.bin
    j2sdk-1_4_2_16-linux-i586-rpm.bin
    I uncared the file j2sdk-1_4_2_16-linux-i586.bin. Then I searched and come to know we have to install the .rpm file, so I deleted the /java folder (perhaps a mistake, I didn't use the uninstall command).
    Then I uncared the file j2sdk-1_4_2_16-linux-i586-rpm.bin  and tried to run the below rpm command to install the java package. Now I am getting the below response
    rpm -iv j2sdk-1_4_2_16-linux-i586.rpm
    Preparing packages for installation...
    package j2sdk-1_4_2_16-fcs is already installed
    Please help me how correct this error.
    I searched and found the below command to replace the already installed java file, with the new file.
    rpm -iv --replacepkgs j2sdk-1_4_2_16-linux-i586.rpm
    but it does not worked facing the below error
    --replace:unknownoption.
    Please help me, thanks.
    Thanks,
    Senthil.

    Hi,
    Please, install correct version of sdk 1.4.2:
    https://service.sap.com/sap/support/notes/716604
    And check thread Re: SAP ECC-6.0 in Suse Linux 10 sp1 for uninstallation info.
    Best Regards,
    Aleh
    Edited by: Aleh Mikhniuk on Mar 23, 2011 9:34 AM

  • I'm looking for Java version j2sdk-1_4_2_16-windows-amd64

    Hello everyone.
    I need Java version j2sdk-1_4_2_16-windows-amd64
    On SUN site are only versions j2sdk-1_4_2_13-windows-amd64 and j2sdk-1_4_2_17-windows-amd64.
    Could enyone has this version?
    Thank you.

    hi,
    it was very hard to find  and you have to register at the sun website (should be free).
    https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=j2sdk-1.4.2_16-amd64-JPR@CDS-CDS_Developer
    PS: I don´t know why the link is crossed out. Should work anyway.
    I hope i could help.
    regards
    Tobias

  • Reg - J2sdk 1.4.2._09  64bit software

    Dear Friends,
    I have plan to Install ECC 6.0 64 Bit
    OS - windows 2008 server (64 Bit)
    SAP version - ECC 6.0 Latest one (64 Bit)
    DB - MS SQL Server 2005.
    Now i want 64 bit J2sdk 1.4.2_09 to j2sdk 1.4.2._17. where can i get 64 bit  j2sdk software.
    Regards,
    kesavan

    Hi,
    Check out here:
    http://www.zdnetasia.com/downloads/pc/swinfo/0,39043052,39425181s,00.htm
    Regards,
    Prashanth
    Edited by: Prashanth L on Jul 20, 2009 7:49 AM

  • Stylesheets + J2sdk 1.4

    I have recently migrated my code from j2sdk 1.3.1_03 to j2sdk 1.4.1_02. I am using JavaHelp 1.1.3.
    All my html pages where previously successfully imcluding a style sheet for displaying the help.
    In 1.4.1_02 the style sheet is not being applied. I have tried putting the styles in the head section of the html pages directly, but they are still not applied.
    If I put the styles directly against the html elements, they works.
    Obviously this defeats the point of a nice centralized way of controlling the styles!
    Does anyone know what has changed in 1.4.1 to break JavaHelp's use of stylesheets or do I just need to be using them differently?

    To further qualify this, I just discovered that it is only applying the styles which are directly on elements e.g.
    This works:
    body
         background: #ffffff;
         color: #000000;
         font-family:Arial, Helvetica;
         font-size:12.0pt;
         font-weight:normal;
    This does NOT work anymore:
    p.SubHeading
    {     font-family:Arial, Helvetica;
         font-size:14.0pt;
         font-weight:bold;
         margin-top:6.0pt;
         margin-right:0cm;
         margin-bottom:6.0pt;
         margin-left:0cm;

  • Upgrade AS9i to J2SDk 1.4

    Hello everybody!
    Now, that I´ve given up to upgrade to 10g, I had time to change the SDK in JDev to 1.4.2.
    Could anybody please help me: How do I now upgrade the AS9i to J2SDK 1.4.2???
    greets
    Wolfgang

    i have pb with upgrading my compiller (in Jbuilder7)
    from j2sdk 1.4.1 or 1.4.0 ... (i don't remember
    exactly the n� of version) to j2sdk 1.4.2-b28.
    well i first install the j2sdk 1.4.1 becuse it offers
    the JCE package(RSAwithSHA algorithme), while jdk
    1.3.1 don't.
    the application function very well whene i used j2sdk
    1.4.1 but with j2sdk 1.4.2-b28 it compiles right (no
    error) but causes pbs in execution in certain
    fnuctions.
    i got this error mesage when executiing :
    java.io.InvalidClassException:
    com.sun.net.ssl.internal.ssl.JSA_RSAPublicKey; local
    class incompatible: stream classdesc serialVersionUID
    = -8509221176441256992, local class serialVersionUID =
    -4603577243802113781
    You have serialized a PublicKey object using 1.4.1 and try to deserialize it using
    1.4.2_04. This doesn't work, I had the same problem.
    You should store your key as its encoded form (an array of byte) instead of serialized form.
    Using jre 1.4.1, get the encoded form using "getEncoded()" method.
    Serialize the encoded form.
    When you need your key, use :
    KeyFactory kf = KeyFactory.getInstance("RSA");
    PublicKey pk= kf.generatePublic(new java.security.spec.X509EncodedKeySpec(encodedKey) );
    Matthieu

  • Handling Threads and Memory

    I'm sorry if this is a cross post to my StringBuffer problem. I have run a test that instantiates the object in question and the memory gets collected so I don't think it's that. My question is on how memory pertaining to Threads is handled.
    In my application I have a Thread array that launches X number of Threads. Currently 5. When an object wants a job run, the static Thread pool looks at the current thread and sees if it is still working. If it is, we sleep until it is available. Then I give it another job to do, start it, and move to the next thread.
    Question 1 -
    In a Thread [] is it better to replace the Thread at position x as in
    threads[a] = new Thread();
    threads[a].start();
    or is it better to change some parameter in the thread and then call
    start() again?
    Question 2 -
    I am currently using the second method. In my Thread object I have a MessageObject which contains a StringBuffer, which is eating memory. These MessageObject's are increasing. Some are being collected but many are staying live in the system and causing a memory error. When I do the following....
    MyThread.MessageObject = new MessageObject()
    That should make the original object available for cleanup right?
    Should I call finalize on the MessageObject before replacing it?
    Thanks you for any insights.

    If you want to use thread pools, and you can use JDK 5.0 (formerly known as J2SDK 1.5, codename Tiger), try using the java.util.concurrent package instead of writing your own thread pool (it's really difficult to make a thread pool right).
    If you can't use JDK 5.0, you can try the original util.concurrent package ( http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html ) from Doug Lea. It's used in the JBoss Application Server, so it's tested and reliable.
    If you need to use an object pool, try using the Commons Pool Component from Jakarta Apache: http://jakarta.apache.org/commons/pool/

  • Error Installing J2SE v1.4.2 on WinMe

    Hello,
    While trying to install J2SE v 1.4.2 with NetBeans IDE v 3.5 Cobundle, the installation proceeds until it reaches 6%, then a DOS windows running command.com pops up for a few seconds, dissapears, and the installation progress stops. I checked the intallation log in the destination directory and I get the following message:
    "Installing J2SDK..."
    "ERROR: j2sdk installer not found"
    Can anyone help me?
    Thanks

    I give up. I decided to download the NetBeans 3.5 installer. I already had the sdk installer from the cobundle, so I installed the sdk and jre, then I erased the NetBeans directory and the uninst directory created by the cobundle installer (I left jvm just in case) and then I installed NetBeans. I think everything works ok.
    My advice, forget the cobundle and download separately (or if you already have the cobundle, get the sdk installer from the _uninst directory when the cobundle gets stuck and download the NetBeans installer).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Compile JAVA2 1.4.2 SDK for Linux

    Did anyone successed?

    After few hours of building it quits with this error:
    /opt/j2sdk1.4.2/bin/javac -target 1.2 -classpath "/var/tmp/portage/sun-j2sdk-1.4.2/work/j2sdk/control/build/linux-i586/jawsClasses/.:../../src/javaws/src/share/classes:../../src/javaws/src/linux/classes:../../src/javaws/src/unix/classes:/var/tmp/portage/sun-j2sdk-1.4.2/work/j2sdk/control/build/linux-i586/jawsgensrc/classes" -d /var/tmp/portage/sun-j2sdk-1.4.2/work/j2sdk/control/build/linux-i586/jawsClasses/. ../../src/javaws/src/share/classes/com/sun/javaws/LocalApplicationProperties.java
    ../../src/javaws/src/share/classes/com/sun/javaws/Launcher.java:1001: package javax.net.ssl does not exist
    javax.net.ssl.SSLHandshakeException)) {
    ^
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -deprecation for details.
    1 error
    make[5]: *** [var/tmp/portage/sun-j2sdk-1.4.2/work/j2sdk/control/build/linux-i586/jawsClasses/./com/sun/javaws/LocalApplicationProperties.class] Error 1
    make[5]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.2/work/j2sdk/deploy/make/javaws'
    make[4]: *** [optimized] Error 2
    make[4]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.2/work/j2sdk/deploy/make/javaws'
    make[3]: *** [installer-int] Error 2
    make[3]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.2/work/j2sdk/deploy/make/javaws'
    make[2]: *** [javaws-all] Error 2
    make[2]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.2/work/j2sdk/deploy/make'
    make[1]: *** [deploy-build] Error 2
    make[1]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.2/work/j2sdk/control/make'
    make: *** [scsl-build] Error 2
    !!! ERROR: dev-java/sun-j2sdk-1.4.2 failed.
    !!! Function src_compile, Line 140, Exitcode 2
    !!! (no error message)
    OS: Gentoo Linux
    Any will be very appreciated.

  • Importing classes to CORBA-client fails

    Hi!
    I'm trying to compile a simple CORBA-client but importing the classes fails.
    Test.java:1: package org.omg does not exist
    I'm running j2se 1.4 and j2ee 1.3.1
    My classpath:
    C:\Program Files\jdkee\lib\j2ee.jar;C:\j2sdk\jre\lib\rt.jar;C:\j2sdk\lib\dt.jar;C:\j2sdk\lib\tools.jar;C:\j2sdk\jre\lib\ext\dnsns.jar;C:\j2sdk\jre\lib\ext\ldapsec.jar;C:\j2sdk\jre\lib\ext\localedata.jar;C:\j2sdk\jre\lib\ext\sunjce_provider.jar;C:\j2sdk\lib\resin-ejb.jar;C:\j2sdk\lib\resin.jar;C:\java\JC\Inl2\Inl2Bean.jar;C:\Program Files\jdkee\lib\jhall.jar;C:\Program Files\jdkee\lib\ejb10deployment.jar;C:\Program Files\jdkee\lib\j2ee-ri-svc.jar;C:\Program Files\jdkee\lib\j2eetools.jar
    Any help would be appreciated.
    Henrik

    The problem is your class path.
    Most likely either you do not have it set at all or you are pointing at a child directory rather than the root directory.
    The package resides in the same file as the Servant,Same file? You can't have two packages in the same file. And if you meant 'directory' then you might as well move it, because trying to keep two packages in the same directory, although possible, is more trouble than it is worth.

  • Correct SUN Java version to install CRM on Windows

    Dear all,
    I want to install CRM on Windows 64bit. But while doing so I am not able to trace the correct SUN Java for this platform. The available versions are for 32 bit or Itanium 64 bit.
    Please advice which Java version should I use to install on Windows x86 platform
    I am following the below pasted link :
    http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase14-419411.html#j2sdk-1.4.2_06-oth-JPR
    R..../
    Sandy

    Dear Subhash,
    Thanks for your inputs
    From the link sent by you and the usual link to download java, I have tried the following files and they don't work :
    j2re-1_4_2_17-windows-i586-p.exe
    j2sdk-1_4_2_17-windows-amd64.exe
    j2sdk-1_4_2_17-windows-ia64.exe
    j2sdkfb-1_4_2_32-windows-i586-p.exe
    jre-6u26-windows-x64.exe
    Please advice
    R.../

  • Exception in thread "main" error

    I have a real problem. I am trying to write a hello world program in java using native code. my java code is as follow :
    class HelloWorld {
    static {
    System.loadLibrary("Hello.so");
    private native void print();
    public static void main(String[] args) {
    new HelloWorld().print();
    System.out.println("Good bye Hello World!!");
    my native c code is as follow :
    #include <jni.h>
    #include <stdio.h>
    #include "HelloWorld.h"
    JNIEXPORT void JNICALL
    print(JNIEnv *env,jobject obj) {
    printf("Hello cruel world. Hope you can live through the Human Phase!.\n");
    return ;
    I use javac HelloWorld.java to get my HelloWorld.class file.
    I use javah HelloWorld to het my HelloWorld.h file
    i set my LD_LOBRARY_PATH to where my native code is.
    i compile the c code using "
    gcc -c -I /usr/java/j2sdk1.4.0/include -I /usr/java/j2sdk1.4.0/include/linux HelloWorld.c -o Hello.so
    everything is good up to this point. But when i call java HelloWorld, i get the following error : "
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no Hello.so in java.library.path     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1370)
         at java.lang.Runtime.loadLibrary0(Runtime.java:773)
         at java.lang.System.loadLibrary(System.java:835)
         at HelloWorld.<clinit>(HelloWorld.java:3)
    Can any one help. I am using RedHat 7.2, kernel 2.4.10-17.
    Thank you
    Shafi Jourabchi [email protected]

    Thank you all who have responded. The solution to my problem was with the compile options. I was not using the right option to compile the shared lib object file.
    the command i used ( and it worked ) was :
    gcc -o libHello.so -shared -Wl, -soname,libHello.so -I /usr/java/j2sdk/include -I /usr/java/j2sdk/include/linux HelloWorldImp.c -static -Lc
    Shafi jourabchi

  • Sun One / Win ME / Mandrake Linux

    Okay, this is driving me nuts. I am running Windows ME on one partition on my box. I used to have forte installed a while ago, btu for some reason I got rid of it. Now I am doing something that I would like to use it as a resource for and I come to find out it is Sun One now. SO I dl it and I go to install and teh installer freezes while looking for J2SDK. So I uninstalled J2SDK and dl the most recent version and reinstalled it. Still does the same thing.
    So here is my question: realizing that Sun one is not particularly supported on ME, is that what is causing the install to freeze? If not, do you know what the problem might be? And if Forte installed, why oh why wouldn't Sun One.
    If ME is the problem, I have Mandrake Linux on another partition (Yeah, I'd love Red Hat, but it was free and I am broke, so it seemed like a good idea) and it seems that only Red hat is supported. Should I bother downloading and trying to install on Mandrake (I use KDE btw)?

    Hi,
    I'm running on Mandrake 9.0 without any problems.
    There is one anoying issue and thet is that the icons deliverd is in .ico format and I can't figure out how to use them on KDE 3.0
    regards birger....
    Okay, this is driving me nuts. I am running Windows ME
    on one partition on my box. I used to have forte
    installed a while ago, btu for some reason I got rid
    of it. Now I am doing something that I would like to
    use it as a resource for and I come to find out it is
    Sun One now. SO I dl it and I go to install and teh
    installer freezes while looking for J2SDK. So I
    uninstalled J2SDK and dl the most recent version and
    reinstalled it. Still does the same thing.
    So here is my question: realizing that Sun one is not
    particularly supported on ME, is that what is causing
    the install to freeze? If not, do you know what the
    problem might be? And if Forte installed, why oh why
    wouldn't Sun One.
    If ME is the problem, I have Mandrake Linux on another
    partition (Yeah, I'd love Red Hat, but it was free and
    I am broke, so it seemed like a good idea) and it
    seems that only Red hat is supported. Should I bother
    downloading and trying to install on Mandrake (I use
    KDE btw)?

  • Help for compiling first Java script

    Friends,
    I am a begginer java programmer. Iam trying to compile a java script using .bat file which contains
    c:\j2sdk\bin\javac -classpath <c:\j2sdk\lib\dt.jar> . ReadOnlyMaker.java
    But it comes back with error as below
    >c:\j2sdk\bin\javac -classpath ReadOnlyMaker.java 0<c:\j2sdk\lib\dt.jar 1>.
    Access is denied.
    I have admin rights on this machine but the directory j2sdk , where java is installed, is always staying readonly even after changing permissions in properties tab.
    Not sure what is going wrong , Any one can Pl. help ?
    Thanks,

    First of all you don't need to be in the ..\..\bin directory to execute the javac.exe, java.exe, etc pgms as commands. If not already set up correctly, you can just add this to your System PATH.
    Next, start by executing from the directory your .java PGM is in.
    Then, what is that <...> stuff?
    Lastly, if it's a .java file, it's a pgm file and not a javascript. Javascript goes is only for web work, embedded in html.
    ~Bill

Maybe you are looking for