PKCS#11 support in J2SE 1.4

Hello All,
First of all I am quite new to Java PKCS#11 support (only couple hours into it :) ). I found out that J2SE 1.5 has the sun PKCS#11 provider pre-configured into it. However, I want to use the PKCS#11 provider with J2SE 1.4 as well, but I am unable to get a hold of the sun implementation for it, as well as the driver DLL.
So my question is this:-
Is PKCS#11 provider even available for J2SE 1.4? and if yes, where can I download it?.
Thanks a TON in advance :)

Forgive me, this is bound to have a simple answer, but I took all Saturday to do this and I'm no further forward.
OK, I got a servlet.jar from another installation and copied that into my j2se lib and bin directories (I didn't know which one). That didn't work.
So I thought maybe the file I used was somehow tied to the OS that machine was using rather than mine, so I downloaded Tomcat and used that servlet.jar in the same way. No joy. So I set the classpath to the Tomcat directory. No joy there either.
So then I downloaded j2ee, but that looks like an awfully complex sledgehammer to crack this particular nut.
WTF is going wrong?
Here's the gubbins:
This is in my autoexec.bat (W95)
SET Java=d:\progra~1\jdk14~1.1\bin
SET tomcat=d:\progra~1\apache~1\tomcat~1.1\common\lib
SET tomcatB=d:\programfiles\Apache Group\Tomcat 4.1\common\lib
SET j2ee=s:\progra~1\j2sdke~1.4\
SET CLASSPATH=%Java%;%tomcat%;%tomcatB%;.;
Here's my code:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class ServletTester extends HttpServlet
     protected void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
          res.setContentType("text/html");
          PrintWriter out = res.getWriter();
          out.println("<html><head><title>Hello world</title></head><body><p>Hello world</p></body></html>");
          out.close();
     } // end of doGet
} // end of ServletTester
Here are the first errors (out of nine):
D:\temp\ServletTester.java:6: package javax.servlet does not exist
import javax.servlet.*;
^
D:\temp\ServletTester.java:7: package javax.servlet.http does not exist
import javax.servlet.http.*;
Any clues would be gratefully received. How can I check my classpath command is working for a start?
Cheers
J

Similar Messages

  • PKCS support in Java, especially PKCS#7 encoding and decoding

    Hi,
    Is there anybody knowing about PKCS support in JDK2 ?
    I'd like to store a signature encoded in PKCS#7 format and read it back and decrypt it.
    As far as I understood there is no such API I can use.
    Thanx in advance
    andras

    hi ,
    my problem that i have signed my file using MD5withRSA algorithm
    i have stored the signature in another file (file signed) and the public key in another file too.
    so a have 3 files: the source file which it was signed, the signature file and the public key file.
    i want to store all this structure in ( only) one file in pkcs#7 format .
    later i wuil verify the signature another time.
    please if you can help me for the storage of the signed file in pkcs7 format ( the java code for storage, if possible)
    thanks

  • Workaround for 3d Party SSL Providers no longer supported in J2SE 1.4.1

    Hi all,
    We ran into the new 1.4 property wherein the SSL & TLS implementations cannot be loaded from a 3d party provider any longer and found the corresponding notes in the SSL Overview. We need to provide IAIK JSSE support for a customer (our app is both client and server).
    I am wondering several things:
    1) has anyone come up with a workaround? Something the lines of writing a non-Sun context class and doing the load oneself?
    2) is Sun going to provide some workaround to this?
    and more technically and specifically
    3) is there a JSSE implementation guide link that covers how dynamically loaded socket factories get their secure random as well as trust managers and key stores? IAIK makes reference to getting these from system properties and I was wondering if this is the "correct" way to get them (I assume that it is) and if so where the documentation for this might be (specifically, what are the property names that one puts into the system properties)?
    thanks,
    Christopher Preston
    [email protected]

    IAIK has an update release that should load with JDK1.4. If this is not a solution, in my opinion there is no way to load a non JDK1.4 / JCE1.2.1 compliant provider (except you alter the VM and some runtime classes). I had a deep look at the implementation of JCE1.2.1 some time ago and I can say that the implementation is waterproof against other providers, in special the fact of providers permitting greater keylength than the defined values in the property/policy files.

  • Database Systems Supported By J2SE

    Good day,
    May i know what are the open source database management systems supported by Java?is Interbase supported?
    Do I need any additional drivers?
    thanks...

    there are many open source database system supported by java...
    example : postgresql, mysql, hsql
    and, yes, you do need a driver(jdbc) ...or you can use odbc-jdbc that provided by
    java...

  • Solaris 10 support for J2SE 1.4.2_06?

    As in, does it? I managed to find a reference to 1.4.2_07 being tested on Solaris 10, but haven't found anything for 1.4.2_06...
    Any ideas? Whats the official policy from Sun? And could we perchance have a compatibility chart on the site showing which versions have been certified against which platforms etc to avoid this sort of question in the future? :-)
    Cheers
    Brian

    No idea, but 1.5.0 is out now :)

  • J2SE 5.0 Support

    Does anybody has information when we can expect JDeveloper to support new J2SE 5.0 APIs

    You can kind-a sort-a use 9.0.5 with J2SE 5.0, but certain features won't work very well with it (in particular, the code editor, structure pane etc. don't understand the syntax of the new language features).
    The upcoming 10.1.3 release will have J2SE 5.0 support (I've even tried it with early builds of Java 6.0, and it sort-of-works).
    Brian

  • Does JSR-82 support j2se application?

    Hello everybody.
    As far as I know I can use JSR-82 API to build a MIDP with Bluetooth support.
    However, I was wondering if I can build a j2se using the JSR-82 API.
    If not, is any other API library that support building j2se Bluetooth applications?
    Do I have to use TCP Socket connection(Java object) up to bluetooth hardware?
    I really appreciate any help.

    Yes. You may implement JSR-82 and a communication for your dongle such as USB or Serial Port. But it already exists too. You can research for ATINAV, ROCOCCO, and others. A nice example of this is in www.benhui.net ; BlueCove example.
    Bests regards
    Luis
    Hello everybody.
    As far as I know I can use JSR-82 API to build a MIDP
    with Bluetooth support.
    However, I was wondering if I can build a j2se using
    the JSR-82 API.
    If not, is any other API library that support
    building j2se Bluetooth applications?
    Do I have to use TCP Socket connection(Java object)
    up to bluetooth hardware?
    I really appreciate any help.

  • Request for info on fatal error handling and High-Precision Timing in J2SE

    Hi
    Could anyone please provide me some information or some useful links on fatal error handling and High-Precision Timing Support in J2SE 5.0.
    Thanks

    Look at System.nanoTime

  • Localization changes in J2SE 5

    Hi,
    I have come across some changes in the localization support in J2SE 5. JSR 204 and corresponding API changes.
    Does this mean that if we use char sequence based APIs then there is no other change required ?
    Do all functions( string comparisons etc. ) already have support for multi-lingual facilities ?
    Basically the following is already taken care of in J2SE 5 ?
    "You should be aware that internationalization and localization issues of full Unicode strings are not addressed with [String] methods. For example, when you're comparing two strings to determine which is 'greater', characters in strings are compared numerically by their Unicode values, not by their localized notion of order."
    Thanks
    Mohan

    I think in addition to what I have written we have to use the unicode format( 'U' followed by a hex digit ) in .properties files. Is this a general practice or only for supplementary characters ?
    Thanks,
    Mohan

  • Does Samsung Supports JSR-82

    Hi All,
    We are doing Client - Server Application Using JSR-82 bluetooth API.The Application works fine in Nokia and Motorola mobiles.Unfortunately its not working in Samsung D840 model.I successfully installed and try to launch the application it gives "Error" and Exists the application.
    Also i written some simple j2me application that displays the bluetooth address in form.
    when i try to launch the application it hangs in opening screen of the application.but when i commented the LoaclDevice.getLocalDevice().getBluetoothAddress() line it displays the empty form. The code is
    try
    Class.forName("javax.bluetooth.LocalDevice");
    form.append("Success");
    form.append(LocalDevice.getLocalDevice().getBluetoothAddress());
    catch (Exception e) {
    // TODO: handle exception
    e.printStackTrace();
    form.append("Failed"+e);
    Whether any settings needed or JSR-82 supported by this mobile.Please any one can help me to fix this problem.
    Thanks,
    Farook.

    Yes. You may implement JSR-82 and a communication for your dongle such as USB or Serial Port. But it already exists too. You can research for ATINAV, ROCOCCO, and others. A nice example of this is in www.benhui.net ; BlueCove example.
    Bests regards
    Luis
    Hello everybody.
    As far as I know I can use JSR-82 API to build a MIDP
    with Bluetooth support.
    However, I was wondering if I can build a j2se using
    the JSR-82 API.
    If not, is any other API library that support
    building j2se Bluetooth applications?
    Do I have to use TCP Socket connection(Java object)
    up to bluetooth hardware?
    I really appreciate any help.

  • Not able to compile JSP files in MII

    Hi All,
    I am trying to execute the JSP file by connecting to SQL Server but its not getting compiled. Any prerequsite to be enabled or to be installed to compile the .JSP files.
    Error as below :-
    Error stream
    contains:"E:\usr\sap\MID\J00\j2ee\cluster\apps\sap.com\xapps~xmii~ear\servlet_jsp\XMII\work\JEE_jsp_CM_Examples_20_12_2e_2_MDO_Persistent_AsynchronousDataBuffer_Test_5783350_1401019803876_1401019809725.java:16:
    'class' or 'interface' expected
    import javax.servlet.*;
    ^
    E:\usr\sap\MID\J00\j2ee\cluster\apps\sap.com\xapps~xmii~ear\servlet_jsp\XMII\work\JEE_jsp_CM_Examples_20_12_2e_2_MDO_Persistent_AsynchronousDataBuffer_Test_5783350_1401019803876_1401019809725.java:17:
    'class' or 'interface' expected
    import javax.servlet.http.*;
    ^
    E:\usr\sap\MID\J00\j2ee\cluster\apps\sap.com\xapps~xmii~ear\servlet_jsp\XMII\work\JEE_jsp_CM_Examples_20_12_2e_2_MDO_Persistent_AsynchronousDataBuffer_Test_5783350_1401019803876_1401019809725.java:18:
    'class' or 'interface' expected
    import javax.servlet.jsp.*;
    ^
    3
    errors
    at
    com.sap.engine.compilation.ExternalCompiler.compile(ExternalCompiler.java:187)
    at
    com.sap.engine.services.servlets_jsp.server.jsp.JavaCompiler.compileExternal(JavaCompiler.java:100)

    I myself fixed the problem.It was the problem with J2SE version.I had J2SE 1.3.But the J2EE beat2 supports only J2SE 1.3.1.So guys if any one of u is trying J2EE beta2 pls check with J2SE version u have.It has to be J2SE 1.3.1.I almost wasted 3 days in figuring out that.

  • Error in Jdeveloper 10g in Remote deployment : Help Needed ASAP

    Hi,
    Am trying to deploy the simple application to remote oracle IAS server from Jdeveloper 10g. It is not allowing me to deploy any application remotely. The deployment log window shows following message:
    Target platform is Oracle9i Application Server (AppServerConnection1).
    Wrote WAR file to C:\jdev10g\jdev\mywork\Business Insight\Project1\deploy\webapp1.war
    Wrote EAR file to C:\jdev10g\jdev\mywork\Business Insight\Project1\deploy\webapp1.ear
    Invoking DCM servlet client...
    C:\jdev10g\jdk\jre\bin\javaw.exe -Djava.protocol.handler.pkgs=HTTPClient -jar C:\jdev10g\jdev\lib\oc4j_remote_deploy.jar http://as18schgefage:1811/Oc4jDcmServletAPI/ ias_admin **** redeploy /home/ias/unified C:\jdev10g\jdev\mywork\Business Insight\Project1\deploy\webapp1.ear webapp1 home
    Initializing log
    Servlet interface for OC4J DCM commands
    Command timeout defined at 600 seconds
    Executing DCM command...
    Executing command redeploy /home/ias/unified C:\jdev10g\jdev\mywork\Business Insight\Project1\deploy\webapp1.ear webapp1 home
    Command = INVALID_COMMAND
    #### Invalid command: redeploy /home/ias/unified C:\jdev10g\jdev\mywork\Business Insight\Project1\deploy\webapp1.ear webapp1 home
    Opening connection to Oc4jDcmServlet
    Setting userName to ias_admin
    Sending command to DCM servlet
    #### Could not send command to Oc4jDcmServlet
    Closing connection to Oc4jDcmServlet
    #### DCM command did not complete successfully (-6)
    #### HTTP return code was -6
    Exit status of DCM servlet client: -6
    Elapsed time for deployment: 4 seconds
    #### Deployment incomplete. #### Mar 16, 2005 9:20:03 AM
    Please help asap.
    Regards,
    Ujwala

    1. Re-test your connection from JDev to AS and it must success.
    I suggest to create a new OC4J instance on AS and fill
    the instance name on the dialog window while
    creating AS Connection on JDev. i.e OC4J instance name (optional)
    2. For JDev 9.0.5.x/10.1.2 using AS 9.0.4,
    don't forget to install ADF Runtime Libraries on AS.
    3. Make sure your AS support JDK/J2SE version as in JDev.
    JDev 10.1.2 need AS to use JDK version 1.4.2_04-b05.
    You can download it from http://java.sun.com/products/archive/j2se/1.4.2_04/index.html
    and install it.
    To cek your ORACLE_HOME/jdk/bin/java -fullversion
    Regs,
    Ferry Situmorang

  • CVS error in JDeveloper 10g

    HI all: Using JDev 9.0.5.2 and latest Tortoise CVS and can do most cvs operations on a file except commit. Get this:
    J:\childcarecvs\childcare\htroot>
    cmd.exe /c cvs -r edit index.html J:\childcarecvs\childcare\htroot> cmd.exe /c cvs -r commit -F
    C:\DOCUME~1\Allan\LOCALS~1\Temp\.jdevcvs_cmt57460.tmp index.html cvs [server aborted]: cannot open file index.html for comparing:
    Permission denied
    This happens on any file. Can use Tortoise to do the commiting but that's a hack since I want to use the integration with the IDE.
    Any ideas?

    1. Re-test your connection from JDev to AS and it must success.
    I suggest to create a new OC4J instance on AS and fill
    the instance name on the dialog window while
    creating AS Connection on JDev. i.e OC4J instance name (optional)
    2. For JDev 9.0.5.x/10.1.2 using AS 9.0.4,
    don't forget to install ADF Runtime Libraries on AS.
    3. Make sure your AS support JDK/J2SE version as in JDev.
    JDev 10.1.2 need AS to use JDK version 1.4.2_04-b05.
    You can download it from http://java.sun.com/products/archive/j2se/1.4.2_04/index.html
    and install it.
    To cek your ORACLE_HOME/jdk/bin/java -fullversion
    Regs,
    Ferry Situmorang

  • Is it possible to integrate j2ee enviroment with sun studio developer???

    Dear all,
    I currently developing a jsp based web application with sun studio enterprise but sun studio by default does not support j2ee environment, i think it only support to j2SE.
    i want to use persistence and enterprise beans with my application but don't know, how to do it with sun studio developer.
    i can install the persistence and ejb api's separately, but i dont know whether sun developer will support them
    Can any on tell, what is the best tool for web application developement, while i will need to java uml diagrams later on.
    i would be grateful, if someone can help, i am really desprate
    shafqat zaman

    Sun Java Studio Enterprise 8.1 (built on top on NetBeans 5.0) does support j2ee (and j2se) development.
    For developing j2ee applications, both NetBeans (latest version is 5.5, http://www.netbeans.org) and SJSE can be used. For a comparison on SJSE and NetBeans, please take a look at:
    http://forum.java.sun.com/thread.jspa?forumID=747&threadID=5113472
    For a list of all development tools from Sun, please take a look at http://developers.sun.com/prodtech/devtools/free/index.html..
    i want to use persistence and enterprise beans with my application but don't know,
    how to do it with sun studio developer.For j2ee development, please check out NetBeans 5.5 ; there are several tutorials available at http://www.netbeans.org/kb/index.html. (Since SJSE is built on top on NetBeans, SJSE can also be used and all the NetBeans documents also will apply to SJSE).

  • Upgrading to Java 1.4.1 on OS X

    On http://www.apple.com/java/ they state:
    The Java 1.4.1 Update 1, now available from software update, improves stability, memory usage, and correctness. Requires
    Mac OS X v10.2.6 or later.
    Following the link one is directed to:
    http://www.apple.com/macosx/upgrade/softwareupdates.html
    Apparently one should be able to upgrade the Java version by doing a standard Mac 'Software Updates'. I have installed the Mac "compilation" upgrade (100Mb) but Java didn't follow that. After a restart and running the tool again, I still do not see Java in the list of available updates (and there are no 'compilation packs' where Java might be).
    Anyone know how to upgrade the Java version on a Mac? I can't believe how difficult this turned out to be.

    Here is a helpful link for more info...
    http://developer.apple.com/java/faq/#gen_1
    -- Begin Copy
    Q: What version of Java is included on Mac OS X?
    A: Mac OS X v10.3, "Panther", is now shipping with an updated Java 1.4.1. A Java 1.4.1 Update 1 for Mac OS X v10.2.6 ("Jaguar") is currently being updated for compatibility with other software updates, and will be made available again shortly. Both releases are based on the J2SE 1.4.1_01 JDK with the HotSpot Client VM, and contain a number of bug fixes and performance enhancements since the initial Java 1.4.1 release.
    Q: Does Mac OS X support multiple J2SE versions on a single OS installation?
    A: The Panther and Jaguar releases of Mac OS X include both 1.3.1 and 1.4.1 J2SE implementations. Earlier releases of Jaguar did not ship with Java 1.4.1, but can obtain 1.4.1 through Software Update. With 1.4.1 installed, the standard command-line commands such as java and javac use 1.4.1. Apple developer tools such as Jar Bundler and Xcode both allow you to specify a Java version for double-clickable apps to use. Please see the Java 1.4.1 Info.plist Dictionary Keys documentation for details on how this is done.
    -- End Copy
    I was able to download the update via Software Updates. But the response "currently being updated" means that it may have been pulled off the update list temporarily.
    On the other hand, if it does not appear in the list of available updates when you run Software Update, you may already have it.
    Launch a terminal and enter "java -version". What is the output?

Maybe you are looking for

  • After Effects not starting at all, stops at "initializing user interface"

    I installed CS5 master collection trial version on W7 64 bit machine. After Effects  doesn't load at all (it stops at "initializing user interface") and it's  even impossible to kill the  process in windows (never had this problem with any app). I ca

  • Genrating Report as PDF File on the hard disk

    Hi All, I am using Oracle developer 10g, I need when I call the report from the forms to generate the report to a PDF file on the c:\ drive instead of appearing on the screen. I set the DESFORMAT to PDF, DESTYPE set to FILE and DESNAME set to C:\file

  • Problem printing in Ical

    hello, hoping i could find some help here. i am trying to print a month of my ical but i am getting the same problem. i want the event to list the title, but not have them next to it. i want the 9am out of the picture, but i cant seem to find a way t

  • Attachin Custom Table to Report Painter Library

    Hi, Im trying to create a new library in Report Painter (GR21) and attach it to a custom table. I am getting the error message (GR493)  that "the table is not installed in Report Writer - The Report Writer can only report on tables if the attributes

  • KeyPadLock

    Hi, I have to write java code for a KeyPadLock class I need some help with the the variable declarations and a constructors First I'm assigning elements to one of my arrays which hold the secret Code is this Ok? Second I have to initialize it but I'm