How to bundle application with OCF?

hi,i developed an applet in the javacard and a OCF applcation on the host..
and now i would like to make a jar file,let it runs when double click,
but now my question is ..how to integrate the OCF and the host application,
i know i can put OCF's library into the jar,
but how about the "opencard.properties" file?
it must be in jdk\bin\
so can anybody gives me some suggestion to solve this problem..
thx a lot

must exist in the jdk/bin ? Not true.
The OCF checks for your opencard.properties in four directories in the following order.
[java.home]/lib/opencard.properties
[user.home]/.opencard.properties
[user.dir]/opencard.properties
[user.dir]/.opencard.properties
this code snippet will tell you where your opencard.properties file is
import java.util.Properties;
public class findOCP {
public static void main(String[] argv) {
Properties props = System.getProperties();
System.out.println("Looking for OpenCard Properties file in:\n\t"
+ props.getProperty("java.home") + "\\lib\\opencard.properties\n\t"
+ props.getProperty("user.home") + "\\.opencard.properties\n\t"
+ props.getProperty("user.dir") + "\\opencard.properties\n\t"
+ props.getProperty("user.dir") + "\\.opencard.properties\n");

Similar Messages

  • How to run applications with options in IDEs like Netbeans

    Hi, I'm new to the Netbeans IDE and I'm wondering how to run applications with options.
    Normally I'd enter the following in the command line:
    java -Djavax.net.ssl.keyStore=mykeystore -Djavax.net.ssl.keyStorePassword="..." TLSServer
    java  -Djavax.net.ssl.trustStore=mytruststore -Djavax.net.ssl.trustStorePassword="..." TLSClient localhostProblem is, I've no idea how to do the same thing in IDE's like Netbeans and I can't any settings to add options like "-Djavax.net.ssl.keyStore=mykeystore" before running the application. Any help will be appreciated.
    Message was edited by:
    Wolfgard

    Right-click the project, click properties, clicl run, and add parameters to VM Options.

  • How to create applications with forms61?

    I am using forms6i. i want to know how to create a standalone
    application with this. please give me what are the components
    required to create an application with forms6i. can i use
    crystal reports to generate reports instead of oracle reports
    with the combination of forms?

    Well to create a stand alone application all you need is the
    executable (FMX) and the runtime - thats it!
    As for using Crystal Reports - yes you could use ORA_FFI to
    integrate.
    Regards
    Grant Ronald
    Forms Product Management

  • How to hide applications with out having to type command+option+H?

    How can you hide applications with out having to type command+option+H?

    Click the middle bubble/button.  The app will "move" in the dock to the far right next to the trashcan.

  • How to develope application with multiple schema

    Hi,
    In my application, there is 3 schema, forms are from different schema, but the database is one. How should I manage it, When i open the form with different schema I am not getting the expected result,
    I am using Oracle 10g Forms & Database
    Thanks in advance
    Rizly

    hi,
    what database-user is the user connected with, when executing the forms ? Is it one of the three schemaowners or has each logical user his own database-user?
    About your db-objects:
    I would create 3 roles, one for each schema, and grant the needed privileges for one schema to the according role
    Example:
    CREATE ROLE RL_SCHEMA1;
    GRANT SELECT, INSERT, UPDATE, DELETE ON SCHEMA1.TABLE RO RL_SCHEMA1;
    ...Then you can grant the roles to the databaseuser you are connected with at runtime.
    If you use named users (each logical user has it's own database-user) then you assign each user only those roles he needs.

  • NAM 5.1 How to create Application with port range from cli?

    Hello,
    I can create new Applicaion with port range from GUI, but I can not do it from CLI
    If I do it by CLI as a:
    nam# application
    nam# name mkst-cur-A
    nam# match udp 16001-16009
    nam# exit
    then
    nam# show application app-tag 268435576
    custom:120 (268435576) mkst-cur-A
      udp 16001
    nam#
    But if I do it by GUI and than
    nam# show application app-tag 268435576
    custom:120 (268435576) mkst-cur-A
      udp 16001 - 16009
    nam#
    How to do it by CLI?

    Hi Alexey,
    Sure, the function you're looking for is in the ANALYSIS panel under the "CUrve Fitting" palette-- it's called "Linear Mapping".  You will need to create the desired X channel prior to calling this function, though, so you will probably need to use the ANALYIS function "Generate Numeric Channel" in the "Channel Functions" palette.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How to bundle ODP with my app?

    I wrote a utility in .NET with ODP for a customer. The packages works on my development machine because I have OADC and ODP here. But the customer doesn't have that, and if he wants to install it he needs to go through some arduous process to get approval. Is there anyways I can just bundle the necessary dlls with the utility?
    I did find an xcopy of ODP on Oracle's download site, but it's only available in 11g. The customer's Oracle database is version 10.2g.
    How can I bundle ODAC and ODP for 10.2?

    The Oracle 11.2 Client is interoperable with the 10.2 DB server. There is no need to use the 10.2 client with the 10.2 DB server.
    Chapter 2 in the ODP.NET documentation says that Oracle 11.2 Client is certified with Oracle DB 9.2 and higher.

  • How to design applications with security in mind?

    Hi there,
    I�m looking for a book/website anything that can enhance my ability to design security applications in terms of authentication and authorization. I mean, how to set �Groups� of users and to allow/disallow them to use certain functionalities, how to set LEVEL of users, how to log all events, etc�
    Thanks

    I think you need more than an article you need a book. There is alot that makes a secure system secure.
    As just an example a system I am battling with currently has well defined sets of permissions and resources. Resources are accessed through the permissions set to users and/or groups. The owner of the resource is who sets these permissions. This is all good except that the ownership of resources can be pushed and not just pulled.
    This means the rest of the security is rather a waste of time because that's a rather large flaw.
    At any rate. There is a lot to consider and just one article won't cover it. You should be looking for a book and/or resources that deal with this topic ad nauseum.

  • How to  Integrating applications with full message control

    Hi All,
    I have a scenario where in I have to access three different Application databases and integrate them.
    I have some Business validations to be performed on the Application Tables of the three.
    I need some control of the message. This is Integration should choose a sender based on the data in a Tag
    Questions:
    1) Should I have to go for an integration process?
    2) Can I retrieve data from a tag from the outbound interface? How to do that?
    3) Can I call a synchronous Jdbc adapter from the process, get the response and based on that take a decision? Which step will help me to call an adapter?
    Please help me with some of your suggestions and ways to proceed.
    Regards,
    Meher

    Hi Meher,
    >>>>Should I have to go for an integration process?
    Yes
    >>>>Can I retrieve data from a tag from the outbound interface?
    Yes, of course
    >>>>How to do that?
    With a mapping
    >>>>Can I call a synchronous Jdbc adapter from the process, get the response and based on that take a decision?
    Yes
    >>>>Which step will help me to call an adapter?
    A send step
    Regards,
    Udo

  • How to open applications with Automator?

    How would I got about opening, say, Contacts, Mail, etc using Automator? I then will want to map it onto F13-F19.
    I'll also want to open specific Web pages by pressing a Fn key.
    FWIW, with the method described in this article I can open Contacts but then it tries to open specific contacts (I think) and results in a dialog I have to dismiss. I just want to open the app.
    TIA,
    David

    Sorry, I meant to provide the article's URL: http://www.makeuseof.com/tag/fkeys-launching-applications-finder-items-mac/

  • How open an application with labview

    I need to open an application to use a camera and store data before using tis data in labview but i don't now how to call an app in a VI

    Look for "System Exec", it's in the Communications palette.
    LabVIEW Champion . Do more with less code and in less time .

  • How to build applications with a non standard stlport

    Hi,
    I have a separate compiled version of stlport that I am supposed to use to build my application. In other words, I do not want to use the stlport that comes with the Sun compiler. I am aware of using -library=stlport4 when I use the default stlport that comes with the compiler.
    What flags/options should I use when I have my own stlport (libstlport_sunpro.so) library?
    I am using Sun C++ 5.6 2004/07/15 on SunOS 5.8.
    Pls help.
    Thanks
    Edited by: Sreeni_dd on Jul 23, 2009 12:50 PM

    Details are in the C++ Users Guide, section 12.7 "Replacing the C++ Standard Library". Here is a summary.
    1. Add the option -library=no%Cstd to disable both libCstd and STLport.
    2. Add a -I option that points to the include directory for the stlport headers you want to use. (Do NOT use the headers in the compiler installation.) Example:
    CC -library=no%Cstd -I/path/to/stlport/include -I/project1 -I/project2 ... If the compiler doesn't always find the headers, put the -I stlport option at the end of the other -I options, preceded by a -I- (dash eye dash) option. Example:
    CC -library=no%Cstd -I/project1 -I/project2 -I- -I/path/to/stlport/include ... This procedure is not optimal, since you would like to search STLport headers before searching other headers. use the -I- option only if needed.
    If you have file name conflicts with the STLport header files, you will need to add a set of symbolic links *.SUNWCCh as described in the C++ Users Guide.
    3. For link commands, add a -L option pointing to the directory where the compiled STLport library is located. Assuming this library is called libstlport.so, also add the option -lstlport. Linking a static libstlport.a is not recommended if your program uses any shared libraries. Example:
    CC -o myprog *.o -L/path/to/stlport/lib -lstlport

  • How to duplicate applications with assigned users?

    Hi guys,
    i will duplicate an application including all users and all dependence
    I was setting.
    The problem is, we have more as 50 OUs and must assign this in each
    application object.
    I would like to copy a application-object and modify the parameter of
    the application (maybe the lauchned url, or application).
    How can I realize this ?
    We have:
    Zenworks 7
    Netware 6.5 newest servicepack
    ConsoleOne 1.36e
    Windows 2000 Clients
    Best regards

    [email protected],
    >I would like to copy a application-object and modify the parameter of
    >the application (maybe the lauchned url, or application).
    ZFS:TED can do this for you. It can even do the associations to groups or
    containers. The only parameters it will change, would be the source path.
    So if you created the golden app in London and are distributing the app to
    New York, the apps source both would be changed to point to the New York
    server. TED is a very powerfull product and all the customers I have
    installed it for, love it.
    http://www.novell.com/documentation/...a/acqbvs2.html
    Jared Jennings
    Data Technique, Inc.
    Novell Support Forums Sysop
    http://wiki.novell.com

  • How to close application with IOS 7

    With the new update, I don't know how to close all my app. Could someone please help me :)
    Thanks in advance
    Vicky

    All you have to do is double tap the home button to bring up the multi-tasking view, then swipe up on the screenshot of the app you want to exit.

  • How do I uninstall applications with a MacBook Pro?

    Hai, I need help finding out how to uninstall applications with a MacBook Pro?
    -I just got this computer 5-6 days ago and I hardly know anything about it. (AS expected from a new user to a Mac computer. ) Everything is kind of confusing to me especially with unziping and ziping files.
    -I have researched trying to find out ways to uninstall with a Mac but everyone seems to have a different way to uninstall. And I really don't want to do something to mess up my new computer while trying to find out how to uninstall applications. (These computers are "expensive" and are non-returnable.)
    If anyone can answer my question that would be so great and I would surely appreciate you!
    Thank you, CreeSuki.
    OH, and if needed I am running on operating system "Lion" (Rawrrrr). And I am trying to uninstall Adobe Photoshop CS5.1 in general.
    Thank you!

    The basic way to uninstall an app is just trash it.  But to get (most, sometimes all) of its associated data files, for example, preferences (usually .plist files in ~/Library/Preferences -- ~ is your home directory) you either have to know what to look for or try to use one of the 3rd party generic uninstallers.  Here's a (partial?) list of potential uninstallers:
    Amnesia
    AppCleaner
    AppDelete
    AppZapper
    CleanApp
    iTrash
    TrahsMe
    Go to www.macupdate.com and search for them.
    Note, there is no guarantee these uninstallers will find all the potential stuff an app can install but even if it misses stuff no harm is done other than wasting a little disk space.
    Oh, almost forgot.  Many apps that come with their own installers sometimes provide their own uninstallers to uninstall themselves.  Use those if they are provided instead of one of the generic uninstallers.

Maybe you are looking for

  • Getting more information on a slide

    I have a couple of slides where there is quite a lot of information I want to pass over, either in the slide iteself or in a sidelet. So can I create something that has a scroll bar or find some way to present 2 - 3 pages of text on one slide! I thou

  • My hp pavilion dv6 laptop hp_ tools e drive is full?

    hey i was wondering why my hp_tools e drive is full, i got this laptop not too long ago in march so it's still fairly new but i keep getting notifications about that drive being full but all it says that i can delete is my already empty recyling bin.

  • Mess up layout chordie cut and paste..

    Hi when i go to http://www.chordie.com/ find a song i want copy and paste in to pages 08 it mess up the the layout, when i do it in program called text edit it does it more right .. but not perfect. try to copy the song and chords in this link http:/

  • Iphone in restart mode il loop

    hi.my iphone get into restart mode in loop and dont sttoped. i try the hard reset and nothing. i menege to open it and asked to conect it to the computer and then to make restore that way i will lose my infomation. is there aonother way for reset?

  • How to config Dreamweaver to open .pt files which are essentially html templates?

    Hi, I am a python developer. I want to use my Dreamweaver5.5 to open some .pt page template which are essentially html templates. However, the file can only be edited in the code view. The Split view and Disign view are disabled. Could someone tell m