Ok I reinstalled OCF however I still get the same error.
Sorry that this is a little cumbersome, but please bear with me. The
following is the error msg I get, followed by my opencard.properties
entries, and my setenv.bat relevant entries. I threw in my class path set up
as well.
ERROR:
------------------------------------------------------------
Starting demo...
------------------------------------------------------------
start use case: get information about registered terminals
Exception in thread "main" java.lang.NoClassDefFoundError:
opencard/core/terminal/CardTerminalFactory
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
....etc etc etc
OPENCARD.PROPERTIES:
OpenCard.terminals =
com.gemplus.opencard.terminal.GemplusCardTerminalFactory|MyGemCore|GCR410|CO
M1
SETENV.BAT:
rem * Where the OpenCard Framework is installed *
set OCF_INSTALLDIR=C:\OpenCard\OCF1.2\
rem * Path to the Comm API classes (comm.jar) *
set OCF_COMMAPI=c:\jdk1.3\jre\lib\etc\comm.jar
rem * Path to the OCF CardTerminal classes provided by *
rem * the reader hardware vendor
*
set OCF_PUREJAVA_CARDTERMINAL=%OCF_INSTALLDIR%\lib\gemplus-terminals-4.1.jar
rem * Set Classpath for JDK1.3
*
set OCF_CLASSPATH=%CLASSPATH%
PATH SETTINGS:
set JDKBIN=c:\jdk1.3\bin
set JDKJRELIB=c:\jdk1.3\jre\lib
set JARS=c:\jdk1.3\jre\lib\etc *note:
(comm.jar,gemplus-service-0.1.jar,gemplus-terminals-4.1.jar)
path = %JDKBIN%;%JDKJRELIB%;%JARS%
thank you in advance,
Casey
----- Original Message -----
From: "Patrick Ritschel" <[EMAIL PROTECTED]>
To: "Shawn Casey Elliott" <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 1:19 AM
Subject: Re: [OCF] question
> Hi Shawn,
>
> I think, your installation of OCF is bad. The system does not find the
> CardTerminalFactory. You have two choices: uninstall OCF and install it
> again (the installation program should adapt all paths) or check the path
> settings in setenv.bat in the OCF-demo-directory (are you operating under
> Windows?).
> That will help.
> Greetings, Patrick.
>
> At 00:43 17.05.2000 -0700, you wrote:
> >I figured that part out, OCF was looking in some weird place for the
> >opencard.properties.
> >note you can see where yours is looking by running the following code...
> >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");
> > }
> > }
> >However I still have some problems, and it is the following...
> >------------------------------------------------------------
> >Starting demo...
> >------------------------------------------------------------
> >start use case: get information about registered terminals
> >
> >Exception in thread "main" java.lang.NoClassDefFoundError:
> >opencard/core/termina
> >l/CardTerminalFactory
> > at java.lang.ClassLoader.defineClass0(Native Method)
> > at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
> > ....etc etc etc
> >
> >thanks
> >Casey
> >
> >----- Original Message -----
> >From: "Nitin" <[EMAIL PROTECTED]>
> >To: "Shawn Casey Elliott" <[EMAIL PROTECTED]>
> >Sent: Tuesday, May 16, 2000 11:49 PM
> >Subject: Re: [OCF] question
> >
> >
> > > I guess it should be in jdk1.3\lib and not
> > > jdk1.3\jre\lib
> > >
> > > Please try this
> > >
> > > Nitin
> > > --- Shawn Casey Elliott <[EMAIL PROTECTED]> wrote:
> > > > I have the file in the right place.
> > > > jdk1.3\jre\lib
> > > >
> > > > any ideas
> > > > ----- Original Message -----
> > > > From: "Nitin" <[EMAIL PROTECTED]>
> > > > To: "Shawn Casey Elliott" <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, May 16, 2000 9:48 PM
> > > > Subject: Re: [OCF] question
> > > >
> > > >
> > > > > It is referring to opencard.properties file
> > > > >
> > > > > Nitin
> > > > > --- Shawn Casey Elliott <[EMAIL PROTECTED]>
> > > > wrote:
> > > > > > what file is this referring too?
> > > > > >
> > > > >
> > > >
> > > ------------------------------------------------------------
> > > > > > Starting demo...
> > > > > >
> > > > >
> > > >
> > > ------------------------------------------------------------
> > > > > > start use case: get system properties
> > > > > >
> > > > > > OpenCardPropertyLoadingException:
> > > > > > property file not found
> > > > > >
> > > > > > finished use case: get system properties
> > > > > >
> > > > >
> > > >
> > > ------------------------------------------------------------
> > > > > > Press any key to continue . . .
> > > > > >
> > > > > > thanks
> > > > > > Casey
> > > > > >
> > > > > >
> > > > > >
> > > > > > ---
> > > > > > > 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.
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > __________________________________________________
> > > > > Do You Yahoo!?
> > > > > Send instant messages & get email alerts with
> > > > Yahoo! Messenger.
> > > > > http://im.yahoo.com/
> > > >
> > > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Send instant messages & get email alerts with Yahoo! Messenger.
> > > http://im.yahoo.com/
> >
> >
> >
> >---
> > > 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.
>
---
> 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.