Hello,

Alessandro Matti wrote:
> 
> Please In which directory is the opencard.properties that method
> SmartCard.start() loads?
> 

In order to find which "opencard.properties" file is used by OCF,
you can compile and run the small program below (contributed by Jan
Peter Hecking from IBM; I modified it slightly to see "/" instead
of "\" on Linux! :-D). This program will give you the list of
searched paths for the properties file.

findOCP.java:
 - - - - - - cut here - - - - - - 

import java.io.File;
import java.util.Properties;

public class findOCP {
    public static void main(String[] argv) {
        final String sep = File.separator;
        Properties props = System.getProperties();
        String JavaHome  = props.getProperty("java.home");
        String UserHome  = props.getProperty("user.home");
        String UserDir   = props.getProperty("user.dir");

        System.out.println("Looking for OpenCard Properties file
in:\n\t"
                           + JavaHome + sep + "lib" + sep 
                           + "opencard.properties\n\t"
                           + UserHome + sep + ".opencard.properties\n\t"
                           + UserDir  + sep + "opencard.properties\n\t"
                           + UserDir  + sep + ".opencard.properties\n");
    }
}
 - - - - - - cut here - - - - - - 

Cheers,
Christophe.

 = This is your receipt for your husband...and this is my receipt =
 = for your receipt.      -- Arresting Officer (Brazil)           =
--
-------------------------------------------------------------
[EMAIL PROTECTED] - Gemplus Research Lab
Phone: +33 4-42-36-57-83 | Disclaimer: I don't speak for Gemplus
Gemplus doesn't speak for me... it is better that way!
-------------------------------------------------------------


---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe 
! in the body.

Reply via email to