On Wed, Dec 02, 2009 at 04:59:08PM -0500, Michael StJohns wrote:
> Mostly, you can use any JDK to do the build, but you need to add the
> target="1.4" or target="1.5"  to the "javac" task in the
> buildapplet.xml file  Which target depends on which version of the
> javacard SDK you're using.   So use the current JDK that comes with
> Ubuntu and it should work fine.

Thanks Mike, that brought me one step further:
- javac now runs through, I was using target=1.2 and had to add
  source=1.2, too otherwise I got a warning that the option was added
  for me.
- Seems the whole stuff has never been built on Linux, all the path
  names used backslashes for filenames -- that seems to be ok for java,
  but not for the classfile converter. I've converted all to forward
  slashes.
- But now I'm getting an error from the old 2.1.2 classfile converter:
convert:
     [java] 
     [java] Java Card 2.1.2 Class File Converter (version 1.2)
     [java] Copyright (c) 2001 Sun Microsystems, Inc. All rights reserved.
     [java] 
     [java] warning: You did not supply export file for the previous minor 
version of the package
     [java] parsing 
/usr/local/src/unpacked/MCardApplet/Cflex/com/musclecard/CardEdge/CardEdge.class
     [java] parsing 
/usr/local/src/unpacked/MCardApplet/Cflex/com/musclecard/CardEdge/MemoryManager.class
     [java] parsing 
/usr/local/src/unpacked/MCardApplet/Cflex/com/musclecard/CardEdge/ObjectManager.class
     [java] error: com.musclecard.CardEdge.CardEdge: unsupported class file 
format of version 46.0.
     [java] error: com.musclecard.CardEdge.MemoryManager: unsupported class 
file format of version 46.0.
     [java] error: com.musclecard.CardEdge.ObjectManager: unsupported class 
file format of version 46.0.
     [java] 
     [java] conversion completed with 3 errors and 1 warnings.

Isn't it strange that javac -- with a -target option -- produces output
that can't be read by old versions of the java software??  Seems I'll
have to try to find a newer version and see if it can produce
backward-compatible output.

Failing that I'll probably try to get this working with a precompiled
applet...

> At 02:54 PM 12/2/2009, gilles Bernabé wrote:
> >Hi,
> >I have followed this link :[1]
> >and it works well, compilation with "ant" and loading of the".ijc" in
> >the cyberflex but like you said i have been forced to do it under
> >Windows because on my last ubuntu it was too long to find the old
> >libraries compatible with the required JDK, but on windows it's very
> >fast.

Thanks. I was using the same instructions. But when the old javac
segfaulted I tried on Debian etch which also failed. Then before moving
to windows I asked :-)

Ralf
-- 
Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  Fax:   +43/2243/26465-23
Reichergasse 131                        www:   http://www.runtux.com
A-3411 Weidling                         email: [email protected]
osAlliance member                       email: [email protected]

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

Reply via email to