Javax.crypto classes not found using JDK1.4

We're trying to upgrade to using JDK 1.4, in which the Java Cryptography Extensions are incorporated into the JDK. However, iPlanet does not seem to be able to find the classes that make up the extension.
If I write a simple Java app that creates a java.crypto.SecretKey, and run it from the command line on our web server machine using our Java 1.4 JDK, it runs fine.
If I adapt the same program into a simple servlet and run it from within iPlanet, it fails with a ClassNotFound error trying to find javax/crypto/NoSuchPaddingException.
I've done a lot of variations trying to hone in on the problem, but I'm running out of options. Does anyone have any information or experience with this particular problem?
We're running iPlanet 6.0 SP5 and the JDK is build 1.4.1-b21.

David,
I'm also facing the same problem, none of the javax.crypto classes are found.When I'm running the Encryption code it's working standlone and in Tomcat 4.0 but in IPlanet it's giving me ClassNotFound.
I have added jce.jar in the classpath as mentioned and it's getting picked.
But you have mentioned some start-jvm files, I'm not able to find these files.
Can u please summarize what all settings you did?.
As it's urgent if possible mail me at,
[email protected] (OR)
[email protected]
Sachin

Similar Messages

  • Class javax.crypto.SecretKey not found in import.

    While compilation i am getting this error.
    Class javax.crypto.SecretKey not found in import.
    I am not able to figure it out . Please help me for that.
    Is it related to some classpath setting.

    This error is due to the c:\windows\system32\java.exe being first on the path instead of the d:\jdev9i\jdk\bin\java.exe being picked up.

  • Runtime error - class not found using JDBC driver and thin client

    Hi,
    We are running a small Java application on a Sun server which acts as a thin client connecting to an Oracle 8i server running on a different server.
    JDK version: 1.3.1_01
    OS version: Solaris 7
    JDBC classes file: classes12.zip
    It compiles fine, but get a runtime error (the DriverManager.registerDriver method )
    cruncher [40]% javac -classpath /export/home/mrscot/classes12.zip JDBCtest.java
    cruncher [41]% java JDBCtest
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
    at JDBCtest.main(JDBCtest.java:7)
    cruncher [42]%
    Program:
    import java.sql.*;
    import java.math.*;
    class JDBCtest {
    public static void main (String args []) throws SQLException {
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:thin@xxxxxxxxx:1521:xxxx", <userid>,<password>);
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery (".............");
    while (rset.next ())
    System.out.println (rset.getString ("......."));
    rset.close();
    stmt.close();
    conn.close();
    } catch (Exception e) {
    System.out.println("Error: " + e);
    Any ideas? Probably something very, very stupid I'm overlooking!
    Thanks
    Scotty ([email protected])

    Supplementary question:
    Hi,
    We are running a small Java application on a Sun server which acts as a thin client connecting to an Oracle 8i server running on a different server.The Oracle version is 8.1.6
    Will the 'classes12.zip' for 8.1.7 work with
    1.3.1 of the Java JDK, and Oracle 8i 8.16 ??
    Thanks Scotty

  • Class not found error while using ikvm error code IKVMC0100: class "javax.b

    hi iam writing a java application which uses bluetoth i.e. javax.bluetooth;
    now i need to create exe for c# i.e. my GUI is C# and business logic is java,
    so these are steps i have followed
    * created a java project (iam using netbeans 6.1)
    * after build i used command prompt and travesed to dist of my project location which contains jar
    * here i typed ikvmc my.jar
    but now it says the following it also contains others but one of such is
    Warning IKVMC0100: class "javax.bluetooth.LocalDevice" not found
    it also creates exe but if use that in my c# then raises the exception...
    so please help me.. what is the solution for this....

    If you have the SDKPanel sample, you have a Flex sample and debugging information. Please let me know (off-forum) what you're buildng, and we'll make sure your dev environment is configured correctly.

  • Class not found only using browser.

    I can not run any of my java programs in my browsers. They work fine using the "java" command in a dos window or using the "appletviewer" command. But when I try to view them in a browser, the page appears to load fine but I get no program and the status window of the browser displays a class not found msg.
    I've checked spelling, location, capitalization. Everything works fine outside the browsers but will not view in a browser. We had the same problem in school and the instructor just said to stick with the appletviewer for class.
    I am running JDK1.2. Any suggestions?
    John

    Maybe you should try a newer JAVA version.
    I had a similar problem, but with a (too) newer JAVA version.
    Problem:
    You're compiling your applets with a quiet modern compiler (i.e. Netbeans Version 3.5.1)
    You are able to compile your applets without any problems but if you try your applets in "real life", the browsers can't interpret your applets [class not found]. (I tested Internet Explorer 6.0 and Netscape Navigator 4.7)
    So you need a plugin for the new JAVA environment because the JAVA environment of the browser is older than that which the applet needs.
    Well, you have the choice to demand to every user of your applet to download the new Java Runtime Environment, but then don't wonder why nobody visits your site!
    But, don't worry: I figuered out another solution, that Netbeans (www.netbeans.org) allows to compile in different JAVA versions.
    Solution:
    What you have to do is:
    - Install a previous version of JDK (i.e. JDK 1.3 - I would suggest, lower versions don't work with Netbeans 3.5.1 and JDK 1.3 is enough for IE 6.0 and NN 4.7, which I tested)
    - Go into the "bin"-directory of Netbeans (i.e. c:/netbeans3.5.1/bin)
    - Open the file "ide.cfg" (with notepad or any other texteditor)
    - You see a line like: jdkhome "C:\java\j2sdk1.4.2" -J-Xmx96m -J-Xss1024k -J-Xms24m -J-Xverify:none
    - Change the path to your other JDK you wish, like: jdkhome "C:\java\jdk1.3" -J-Xmx96m -J-Xss1024k -J-Xms24m -J-Xverify:none
    - That's it, you can compile your applets in a previous version of JAVA so that "older" browser user don't have to install a plugin for the new JAVA environment.
    Have fun!
    If you have any questions I would be pleased to help you.
    If this tip helped you already I would be pleased if you would send me a quick email with your experience.
    My email: [email protected]

  • Class not  found, Jdk1.4 matters?

    Why drivers can't be loaded for this machine? Make me strugge for many hours already.
    1)
    Version j2sdk-1_4_2_07- (Java 2 se, 1.4)
    Environment: Windows XP
    I keep receiving "Class not found" exception error when running the following simple piece of codes for testing. (No complint When compiling). The code simply reads:
    try {
    System.out.println("driver loading test step 0 !!!....");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    System.out.println("driver loaded 1 !!!....");
    System.exit(0);
    catch (ClassNotFoundException ee) {
    System.out.println("Clss not found\n" + ee.getMessage());
    My other simple java codes got compiled and run ok in the same enironment.
    2)
    I then replaced the sun jdcd-odbc bridge driver in the test with a jdbc driver (for Sql server) downloaded from DataDirect.
    That is: by replacing the one line above with the following. But it gives me classNot found Exception too. I don't think it has to do with classpath as I add it in the java command line already
    Class.forName("com.ddtek.jdbc.sqlserver.SQLServerDriver");
    3) I moved the codes to run in my old PC (Windows NT 4) with jdk1.3, the codes are compiled and run WITHOUT Class not found Exception.
    I had more than a year experience in developing Java codes (though not recently) but what I experience now is so wierd to me. What's wrong with jdk1.4 or what's wrong with this XP machine?
    Thanks.

    99.999% of the time, something is wrong with your classpath at execution time, or with the classname you put in your code (those class names do look right though). That the same code works on another machine almost certainly means that something has set the classpath in the environment on one machine and not the other.
    .001 percent of the time, something is wrong with your machine, such as a corrupted file system or OS. If so, reformat your drive, and reinstall everything. However, always, there will be other symptoms of problems (mystery crashes, disappearing files, etc.), so don't waste your time doing this unless your computer is already flaky.
    Most likely, you just don't know how to set the classpath for execution. For that, use Google.

  • In compileng time this class not found import javax.media.jai.JA

    Hi,
    I�m download
    jai_imageio-1_0_01-lib-windows-i586
    jai_imageio-1_0_01-lib-windows-i586-jdk
    jai_imageio-1_0_01-lib-windows-i586-jre
    jdk-1_5_0_02-windows-i586-p
    in compel time
    import com.sun.media.jai.codec.*;
    import javax.media.jai.JAI;
    The complier gave me error class not found
    How can i configured my system
    I have Windows XP
    [email protected]

    try compiling like this:
    java -cp "." myTest
    This is not compiling, here you execute the already
    compiled myTest.java file (or it should be already
    compiled). To compile you may want to use javac or any
    other available compiler.Oops, sorry, I didn't mean compiling.
    If you were able to compile ok, you can try running the program by using:
    java -cp "." myTest
    This usually will solve the problem when your program comples fine but can't find the class when you try to run it. It's almost like the compiler assumes to look in the current directory but the VM (java.exe) doesn't make this assumption.

  • Keep getting VncViewer.class not found error when trying to use Windows 7

    Greetings,
    I have no issue accessing the OVM Manager 2.2 with OEL 5.4 x86_64 with the latest Java release from ULN. But when I use a Windows 7 client ( x86) with the Sun Java 6 Update 18 I get the following error when trying to access the Console of a VM Guest:
    Java Plug-in 1.6.0_18
    Using JRE version 1.6.0_18-b07 Java HotSpot(TM) Client VM
    User home directory = C:\Users\deverej
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class VncViewer.class not found.
    java.lang.ClassNotFoundException: VncViewer.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed:http://141.144.112.202:8888/OVS/faces/app/VncViewer/class.class
         at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 7 more
    Exception: java.lang.ClassNotFoundException: VncViewer.class
    I am curious fi I should use only a specifc Java Engine with IE 7 or the latest Firefox browers.

    Same issue to with Windows XP SP3 x86 with Java Runtime Enviornment 1.5.0_15
    J2SE Enviornment 5.0 Update 15
    Java 6 Update 17

  • Class not found in applet using 2 jar files

    I have an applet which has been working for years as a stand alone or connecting directly to a derby database on my home server. I have just changed it to connect to MySQL on my ISP server via AJAX and PHP.
    I am now getting a class not found error in my browser, probably because I'm stuffing up the class path.
    The HTML I am using to call the applet is:
    <applet code="AMJApp.class"
    codebase="http://www.interactived.com/JMTalpha"
    archive="AMJ014.jar,plugin.jar"
    width="500"height="500"
    MAYSCRIPT style="border-width:0;"
    name="jsap" id="jsap"></applet>The AMJ014.jar contains the applet and supporting class files.
    The error message is strange to me because it refers to a class I noticed on another web page but which has nothing to do with my applet. Anyway, the message in full is:
    load: class NervousText.class not found.
    java.lang.ClassNotFoundException: NervousText.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.ClassNotFoundException: NervousText.class
    java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(Unknown Source)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0

    Thanks again.
    The page code is:
    <html>
    <head>
      <title>Applet to JavaScript to PHP</title>
    </head>
    <body>
    <script type="text/javascript">
    function updateWebPage(myArg)
    document.getElementById("txt1").innerHTML=myArg;
    if (myArg=="")
      document.getElementById("cbxItem").innerHTML="";
      return;
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
    else
      {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    xmlhttp.onreadystatechange=function()
      if (xmlhttp.readyState==4 && xmlhttp.status==200)
        document.getElementById("cbxItem").innerHTML=xmlhttp.responseText;
    xmlhttp.open("GET","putitem.php?id="+myArg,true);
    xmlhttp.send();
    </script>
    <form>
    <table border=1 align='center' cellpadding=0 cellspacing=0 >
    <tr><td style='text-align:center; background-color:#C0C0C0'>Compiled Java Applet</td></tr>
    <tr><td><applet code="AMJApp.class" codebase="http://www.interactived.com/JMTalpha" archive="AMJ014.jar" width="500"height="500" MAYSCRIPT style="border-width:0;" name="jsap" id="jsap"></applet> </td></tr>
    <tr><td style='text-align:center; background-color:#C0C0C0'>HTML Textbox filled by JavaScript</td></tr>
    <tr><td><textarea style='width:500px; height:50px' name='txt1' id='txt1'>Query goes here</textarea></td></tr>
    <tr><td style='text-align:center; background-color:#C0C0C0'>HTML diagnostic messages rendered by PHP script</td></tr>
    <tr><td><div id="cbxItem">PHP info will populate this space</div></td></tr>
    </table>
    </form>
    </body>
    </html>The URL of the problem page is:
    http://www.interactived.com/JMTalpha/AMJTest.htm
    The code in the page is based on the following test page, which works:
    http://www.interactived.com/test5Applet.htm
    And the Applet, before I made any changes can be seen at this address:
    http://www.interactived.com/jartest0906.htm
    Thanks again for you interest.
    Edited by: 886473 on 21-Sep-2011 00:47

  • Class javax.rmi.PortableRemoteObject not found in import

    I have successfully tested test1.jsp calling stateful ejb test1ejb under JDEV9032. On deploying to standalone OC4J903, the following error occurred on accessing the jsp:
    500 Internal Server Error
    OracleJSP: oracle.jsp.provider.JspCompileException:
    Errors compiling:D:\O9IAS\j2ee\home\application-deployments\test\testWEB\persistence\_pages\\_test1.java
    Line # Error 10
    Class javax.rmi.PortableRemoteObject not found in import. import javax.rmi.PortableRemoteObject;
    Appreciate some pointers on how to troubleshoot this problem. Thanks. William Chew.

    This error is due to the c:\windows\system32\java.exe being first on the path instead of the d:\jdev9i\jdk\bin\java.exe being picked up.

  • Class not found javax.swing.JLabel

    Hello,
    I'm using JDK 1.3.0 and now I tried the first time to include Swing components into my Applet. When I compile the coding there are no errors and even when I use a standard coding example I always get the "class not found error message" for the swing component. When I don't use swing components I don't get any error message and the applet is loaded properly.
    Do I have to trigger the applet in the html coding in a different way or can anybody give me a hint on that?
    Jens

    I also imported the swing classes, but the error pops up either...

  • Class Not Found Error when using Junit

    Hi
    I am using Junit4.1, Eclipse 3.2.1
    I am getting this error
    Class not found
    start.test.TestPdfGenerationService
    java.lang.ClassNotFoundException: start.test.TestPdfGenerationService
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClass(RemoteTestRunner.java:683)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClasses(RemoteTestRunner.java:425)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
    what would the possible reason for that and how can i come out of it..

    the reason: the class is not in the classpath. Or the project's runtime classpath.
    Make sure it's added to the build path and if necessary exported all the way to your JUnit project.

  • Class javax.servlet.Servlet not found - problem

    Hello,
    i'm using intellij and tomcat . when i try to configure intellij to use tomcat it says that it doesn't find javax.servlet.Servlet class.
    i'm using jdk1.5.0_05. what can i do to fix this error?
    tnx,
    clauditza

    ok!
    and where can i find this particular jar? i have searched it on java.sun.com, but all i could find was j2ee that includes support for servlets

  • Error in compiling: file javax\servlet\jsp\PageContext.class not found

    Hi,
    i'm getting an error when I'm trying to compile an java file. The error is as follows:
    cannot access javax.servlet.jsp.PageContext
    file javax\servlet\jsp\PageContext.class not found
    Isn't the javax package included in jdk? I've installed jdk 1.3.1_03 and j2re1.4.0_02. Shouldn't this PageContext.class be automatically loaded when i've installed jdk?
    I'm getting desperated! I've tried almost everything: i've changed the classpath, moved the directory of the java file I'm trying to compile over and over but i'm getting no success!
    Any help is very welcome!
    Thankx,
    Nuno.

    hmmm... i had a look and it seems that what you are trying to "import" is actually in a package... instead of import try:
    package javax.servlet.jsp;you may need to go download this "package" and complile it in the directory you are working in.
    my advice: try the above statement (which does compile for me), if it doesn't work, you will need to find the source code for this package and compile it just like you do any other source code.
    hope this helps.

  • Class not found while using rmic.exe

    This is my first RMI program, so bear with me.
    After compiling both my object interface class file and my object implementation file (both with no errors), i move on to create the stubs/skeletons (or whatever they are called). After executing rmic MyObjImplementation, i get an error saying the following - "error: Class InputDeviceImpl.class not found."
    I dont understand this, the .class file is indeed in the directory, and i know the rmic.exe sees it because i have tried to type "rmic *.class" and it gives the same error for every .class file in the directory.
    whats going on?
    -joey

    well i figured out to compile the program, but i still dont understand what happened. I read the tutorial on this website, and it told me to start the rmi registry first. So does this mean that i have to do this each and everytime?

Maybe you are looking for

  • HP OfficeJet Pro 8500 A909

    I have a HP OfficeJet Pro 8500 (909 that was working fine until I had to reload/refresh my PC operating system;  everytime I try to print I get an HP Printer error.  the printer still works fro my old computer; but, from my current computer which was

  • Help I keep getting  a configuration error message

    Every new document I create gives me the following message when I try to preview **Error** C:\Documents and Settings\wozZonline\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\FP8\TextField\StyleSheet.as: Line 7: The name

  • Multiple statements from one connection causes ORA-0100 Maximum open cursor

    HI, I am creating a connection and trying to run 2 statements off the connection. The connection has autocommit as false as I want to commit only after the second statement commits successfully. Upon executing the second statement, I get the ORAC-010

  • How do you see another month on the calendar or can you only see the current month only

    how do you see another month on the calendar or can you only see the current month only

  • IDOCs in XSD format

    Hi all, I'm currently looking for an website where different versions of IDOCs could be downloaded e.g. as an XSD. This used to be possible at http://ifr.sap.com. Unfortunately this website is no longer available.... I need a resource like that as I'