Hi, Matheus,

Just to complement Karsten's comment, here's an example of exracting
contents from a .cap file and creating a .bin file.

cp com/sun/javacard/samples/HelloWorld/javacard/HelloWorld.cap .
jar xvf HelloWorld.cap
extracted: com/sun/javacard/samples/HelloWorld/javacard/Header.cap
extracted: com/sun/javacard/samples/HelloWorld/javacard/Directory.cap
extracted: com/sun/javacard/samples/HelloWorld/javacard/Applet.cap
extracted: com/sun/javacard/samples/HelloWorld/javacard/Import.cap
extracted: com/sun/javacard/samples/HelloWorld/javacard/ConstantPool.cap
extracted: com/sun/javacard/samples/HelloWorld/javacard/Class.cap
extracted: com/sun/javacard/samples/HelloWorld/javacard/Method.cap
extracted: com/sun/javacard/samples/HelloWorld/javacard/StaticField.cap
extracted: com/sun/javacard/samples/HelloWorld/javacard/RefLocation.cap
extracted: com/sun/javacard/samples/HelloWorld/javacard/Descriptor.cap

cat com/sun/javacard/samples/HelloWorld/javacard/Header.cap
com/sun/javacard/samples/HelloWorld/javacard/Directory.cap
com/sun/javacard/samples/HelloWorld/javacard/Import.cap
com/sun/javacard/samples/HelloWorld/javacard/Applet.cap
com/sun/javacard/samples/HelloWorld/javacard/Class.cap
com/sun/javacard/samples/HelloWorld/javacard/Method.cap
com/sun/javacard/samples/HelloWorld/javacard/StaticField.cap
com/sun/javacard/samples/HelloWorld/javacard/ConstantPool.cap
com/sun/javacard/samples/HelloWorld/javacard/RefLocation.cap
com/sun/javacard/samples/HelloWorld/javacard/Descriptor.cap >
HelloWorld.bin

I have run this in cygwin.  You can see I have opened up
HelloWorld.cap and concatanated all the resulting .cap files into one
file, HelloWorld.bin.  Try the same thing to your .cap file, and
please let us know if it doesn't work.

I will add this to GPShell README in the next release.

Thanks,

On 11/7/05, Karsten Ohme <[EMAIL PROTECTED]> wrote:
> matheus ribeiro wrote:
> > Hi all,
> >
> > Im trying to use GPShell to load muscleTool applet into an Orga Open
> > Plataform Pk 32k V2.0 card, but I dont understand what the .bin file is,
> > and found no documentation about it.
>
> The bin file is an invented file extension by somebody. Usually the
> extension of the file is ijc, meaning Interoperable Java Card or
> somethiong like this. This are the contents of the CAP extracted and
> concatenated in a special order.
>
> By the way, if you want to use GPShell in Unix take the latest version.
> Only the Unix version had a bug. Check out both GPShell and
> GlobalPlatform from CVS and compile. Windows version are not affected.
>
> > How is it generated? I tried
> > loading the cap file with no success. The delete and list operations
> > were ok.
>
> The CAP file will not work. A CAP file is a zipped file containing the
> converted classes, something like a Java JAR file. The file is to big to
> be loaded on card and must be extracted on card. this is too much work
> for the card, so the above format is taken.
>
> Take a look at http://web.inf.tu-dresden.de/~ko189283/MuscleCard/ and
> download MCardApplet.zip. There are Ant build script in the MCardApplet
> dir, which you can use. And you can discover how the IJC file is
> produced. The README is important, as always.
>
> Karsten
> >
> > Thanks,
> > Matheus
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Muscle mailing list
> > [email protected]
> > http://lists.drizzle.com/mailman/listinfo/muscle
>
> _______________________________________________
> Muscle mailing list
> [email protected]
> http://lists.drizzle.com/mailman/listinfo/muscle
>

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to