Java card - Unsupported class file format

Friends,
when im converting my class file to CAP file, im getting the message that "unsupported class file format of version 49.0". Can any one please help me out.
Thank you,
Harshavardhan

but in the pre Requisites of Installing, its mentioned that "The supported SDK version is 1.4.1. ". and im using 1.5.0. So i need to use only 1.4.1 or earliar versions?

Similar Messages

  • Unsupported class file format of version 48.0.

    Hi,
    I am new to Java Card. I have a problem to convert a class file to cap file. When I try to convert it, I got this message " unsupported class file format of version 48.0." Do you guys know any idea about it?

    The class file version is determined by the used java compiler (javac).
    The old Java Card development kit 2.1.2 was designed to work only with javac of the jsdk1.3 the current development kit 2.2.1 needs jsdk 1.4.
    In both cases you can not use jdk1.5 for compiling you java files.
    Jan

  • Invalid class file format... major.minor version '49.0' is too recent ...

    I am using the Eclipse 3.1 and Oracel BPEL designer 0.9.13
    After I created a new BPEL process (named: trybpel), I got the following output in the console:
    uildfile: D:\eclipse\workspace\trybpel\build.xml
    main:
    [bpelc] 正在验证 "D:\eclipse\workspace\trybpel\trybpel.bpel" ...
    [bpelc] error: Invalid class file format in D:\Java\jre1.5.0\lib\rt.jar(java/lang/Object.class). The major.minor version '49.0' is too recent for this tool to understand.
    [bpelc] error: Class java.lang.Object not found in class com.collaxa.cube.engine.core.BaseCubeProcess.
    [bpelc] 2 errors
    BUILD FAILED: D:\eclipse\workspace\trybpel\build.xml:28: ORABPEL-01005
    Total time: 8 seconds
    I am puzzled with the information in bold. Would anyone tell me how to fix this problem? Thank you very much.

    the same error ORABPEL-01005, but not the same error message,
    Errors occurred when compile the bpel process using bpel designer for Eclipse:
    (com.oracle.bpel.designer_0.9.13)
    using PM: bpel_jboss_101200
    More error infomation following:
    Buildfile: E:\OraBpelDEclipse3.2\workspace\AboutTest\build.xml
    main:
    [bpelc] E:\OraBpelDEclipse3.2\workspace\AboutTest\temp\bpelc762.tmp\BPEL-INF\src\bpel\p0\BPEL_BIN.java:835: Invalid expression statement.
    [bpelc] retun true;
    [bpelc] ^
    [bpelc] E:\OraBpelDEclipse3.2\workspace\AboutTest\temp\bpelc762.tmp\BPEL-INF\src\bpel\p0\BPEL_BIN.java:835: ';' expected.
    [bpelc] retun true;
    [bpelc] ^
    [bpelc] E:\OraBpelDEclipse3.2\workspace\AboutTest\temp\bpelc762.tmp\BPEL-INF\src\bpel\p0\BPEL_BIN.java:208: Method setPartneLinkBinding(com.collaxa.cube.rm.suitcase.PartnerLinkBindingDescriptor) not found in class com.collaxa.cube.engine.types.bpel.CXPartnerLink.
    [bpelc] __pl.setPartneLinkBinding(getProcessDescriptor().getPartnerLinkBindings().getPartnerLinkBinding(__pl.getName()));
    [bpelc] ^
    [bpelc] E:\OraBpelDEclipse3.2\workspace\AboutTest\temp\bpelc762.tmp\BPEL-INF\src\bpel\p0\BPEL_BIN.java:584: Undefined variable: __ctx
    [bpelc] __setOutgoingLinks(__sc, __ctx);
    [bpelc] ^
    [bpelc] 4 errors
    BUILD FAILED
    E:\OraBpelDEclipse3.2\workspace\AboutTest\build.xml:28: ORABPEL-01005
    Error in java files auto-generated when compiling ,why?
    Thanks!

  • Recent changes to the class file format?

    I have the JVM Spec, 2nd ed., on my desk. I'm trying to find out about changes to the class file format since its publication, i.e. what are the differences between class file versions 46.0, 47.0 and 48.0?
    So far, searching the JDC and the web hasn't helped. Does a document describing the changes exist?

    I have not found a list of changes, but the 2nd edition is at
    http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html
    Clarifications and Amendments to The Java Language Specification at http://java.sun.com/docs/books/jls/clarify.html has a section
    "Compilation of Symbolic References"
    that is useful.
    http://forum.java.sun.com/thread.jsp?forum=31&thread=27569
    says:
    javac v1.4 emits by default Java 1.2 compatible .class files while
    all javac implementations since between 1.1.0 and 1.3.1 emit byte
    default Java 1.1 .class files.
    Check to see what effect using the -target option in javac to get
    the two versions to produce Java 1.1, 1.2, or 1.3 .class files.
    discusses using javac -target to generate
    -Christopher

  • Help - Invalid Class File Format

    Got the following error when I was trying to load a JSP that imports a servlet class:
    2001-08-12 03:17:12 - Ctx( /guestbook ): JasperException: R( /guestbook + /Guest
    Book.jsp + null) Unable to compile class for JSPerror: Invalid class file format
    : C:\tomcat\jakarta-tomcat-3.2.1\webapps\guestbook\WEB-INF\classes\com\zen\guest
    book\GuestBook.class, wrong version: 46, expected 45
    C:\tomcat\jakarta-tomcat-3.2.1\work\localhost_8080%2Fguestbook\_0002fGuestBook_0
    002ejspGuestBook_jsp_6.java:14: Class com.zen.guestbook.GuestBook not found in i
    mport.
    import com.zen.guestbook.GuestBook;
    2 errors
    Apparently the GuestBook class is found but for some reason it couldn't be loaded/compiled by Jasper. Anybody has a clue about the "wrong version" error? Thanks a lot.

    I started with JDK1.4, switched back to JDK1.3 after seeing the error but it didn't help.
    The first line of installation.html says:
    "Tomcat will operate under any Java Development Kit (JDK) environment that provides a JDK 1.1, JDK 1.2 (also known as Java2 Standard Edition, or J2SE) or later platform" - so I assume I don't have to go back to JDK1.2?
    Thanks.

  • How to create a java card library (jar file to be used in other programs)

    Hi all,
    I am working on JCOP and writing quite a bit of applets for the java card . Now i have lots of code that could be reusable for example sending SMS, encryption routine, etc.. So this part of the code i want to put into a utility class and create a package out of it. This utility package i must be able to import into my programs what i write.
    I tried the normal way of creating the jar by renaming the CAP file of the utility class, also tried including the /javacard/* files also into the jar file as indicated by sfarmer(active forum member here). But none seems to work. I tried contacting NXP folks and they indicated that it may be possible only by way of Sharable Objects.
    But some how i am not convinced why i should use Sharable object for this. So if any one can throw some light into this regard it will be immensely helpful to me and my project.
    Regards
    Prakash

    Hi,
    Well the variable defined are as below
    public static byte[] msgdata = new byte[255];
    private static final byte[] HEADER_TEMPLATE = {
              (byte) 0x81, (byte) 0x03, (byte) 0x01, (byte) 0x21, (byte) 0x00, // Command details tag
                   (byte) 0x82, (byte) 0x02, (byte) 0x81, (byte) 0x02, // Device Identities tag
                   (byte) 0x8D, // Text String tag
                   (byte) 0x00, // length
                   (byte) 0x04, // Text String tag
    the msgdata is declared public so that i can access this as a Class member in my other program doing Utilities.msgdata. But the problem is now that if i dont declare it as final then the compiler gives me the below error
    "library has initialized array for non-final, non-static field Utilities, msgdata, [B, attr jc-field: tok 0, public static"
    If i make it final then i cannot change it... So now i am stuck..
    Any help will be highly appreciated...
    Regards
    Prakash                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Can i generate java API from class files

    I have only class files. Is it possible to generate the java API using the javadoc.If yes, pls tell me how can i do??

    Also, Javadoc 1.4.2 will contain an unsupported option -Xclasses
    that should allow you to do this. You must pass in class names
    and use -classpath to find them. For com.package.MyClass
    at /home/classes/com/package/MyClass.class,
    you would run:
    javadoc -Xclasses -classpath /home/classes com.package.MyClass
    For mroe info, see:
    http://developer.java.sun.com/developer/bugParade/bugs/4720100.html-
    Doug Kramer
    Javadoc team

  • Java Concurrent Program .class file location

    Hi frnds,
    I need to know the .class file location of a java concurrent prog. I know the filename from concurrent program executables and my concurrent program filepath is oracle.apps.xxogl.f04.cp.file. But I dont know where the exact location of the file is. pls help me.
    I searched for the same and found the following article in many places which doesnt seem to help me much.
    http://geektalkin.blogspot.com/2008/03/oracle-apps-java-concurrent-program.html
    pls help. thanks in advance.
    Lisan

    Hi;
    pls file can be found like
    /apps_st/appl/bom/12.0.0/patch/115/sql/
    Contains SQL*Plus scripts used to upgrade data, and .pkh, .pkb, and .pls scripts to create PL /SQL stored procedures.
    Regard
    Helios

  • Java wont open .class file

    ok i just started at this and found this web site http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html#1
    i copyed exactly what he says to copy:
    * The HelloWorldApp class implements an application that
    * displays "Hello World!" to the standard output.
    public class HelloWorldApp {
    public static void main(String[] args) {
    // Display "Hello World!"
    System.out.println("Hello World!");
    then put all that in notepad save it as "HelloWorldApp.java". i go to the msdos prompt type in javac HelloWorldApp.java it turns it in to a .class file and i type it
    java HelloWorldApp and it gives me an error:
    Exception in thread "main" java.lang.NoClassDefFoundError: helloworldapp (wrong
    name: HelloWorldApp)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    What did I/He do wrong.

    thanks it worked. can you tell my why?

  • Identify Java version from CLASS file

    Hi,
    I have a .class file. I would like to identify the Java version from that.
    Is there a way to find out?
    Also, is there a way to find out the Java version from JAR file?
    Thanks.

    Kavipriya wrote:
    I have a .class file. I would like to identify the Java version from that.
    Is there a way to find out?Sure, there's the major version number (48, 49, 50) included in the class files. Look for the class file specification, shouldn't be too hard to find.

  • Java version for class file

    i have some class files, and i need to know what Java compiler used to compiled that class file (only care for the version number...like 1.4.2, 1.5.0, 1.1.0, etc)
    any one know how i can get this info? or any good google keywords?

    thanx, since now i know how the class file bytes are set up..i guess i can get the version number by looking at the hex.
    tedious (but not that tedious)...thought there be a simplier way...oh well..
    thanx again

  • Java not creating .class file ?

    I copied and pasted text into textpad then saved textpad creats the java file but no class file ! What gives ? I tried rebooting , the class name is the same (not mispelled) even did a HD search for class file and its no where to be found

    You have to compile a Java source file into a class file.
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html

  • Java version from class file

    How to decide from class file that which java version (1.3, 1.4 etc) was used to compile it?

    Sorry I made a mistake,
    its minor, major
    Dont we have some utility given by Sun for this?
    javap -verbose <classname>will print out versions plus more...
    Do I need to use InputStream for reading class file then see the version?
    DataInputStream din = new DataInputStream(new FileInputStream(classFile));
    din.readInt();
    short minor = din.readShort();
    short major = din.readShort();Why do you need to do this?

  • Java not running .class files

    I rebooted my computer, and now whenever I type
    java <filename> it responds with:
    C:\Development\Java\Projects\Scratch>java T1
    Exception in thread "main" java.lang.NoClassDefFoundError: T1
    However, it compiles fine:
    class foo {
    class T1 {
        public static void main (String [] args) {
            foo [] fooArray = new foo[5];
            if (fooArray[1] instanceof Object)
              System.out.println("fooArray[1] is an object");
            if (fooArray[1] instanceof foo)
              System.out.println("fooArray[1] is a foo");
    }What am I missing to get it to run with java T1?
    (every other class file that used to work behaves the same way)

    Yes, it is the classpath. Strangely . is in my classpath in the environment settings in the control panel. I guess I can survive adding -cp . but it is kind of a pain in the a__ for no reason I can discern

  • Java card ISO 7816 file system

    Hello
    Java Card technology dose`t provide core APIs for ISO file system.Is there any mechanism for creating DF and EF on java cards.If there is,please guide me.Is there any sample code for this subject at sun.com?I want to creat DF and some EF on a java card and then manage them.How I can do it?Please guide me.
    Best
    [email protected]

    JavaCard doesn't contain a file system. It's been repeated in this forum over and over. How many times does this have to be answered ? Have you searched to forum prior to asking ?
    For JavaCard there isn't a need for a filesystem because of the power of having a language on the card. Also byte arrays with a TagLengthVariable (TLV) do the job just fine.

Maybe you are looking for

  • How do you know what week it is???

    OK, so my first 5 digits/letters on my serial number are : 1B738! Is that a week 38... and how do you know if its a good screen one?? Please send me some ways to test it!! Thanks once again!

  • Creating a Web Photo Album on Dreamworks CC

    I used to often use the create web photo album command in DW 3 regularly to build image pages with thumbnail links but this function has dissappeared from the new Dreamworks Creative Cloud.  I've read that this function has migrated to the new Bridge

  • Kerberos Configuration Manager for SQL Server is available

    This thread describes the Microsoft Kerberos Configuration Manager diagnostic tool for SQL Server. This tool is available for download from the Microsoft Download Center:  Download the  package now. About Kerberos Configuration Manager The Kerberos C

  • Icons Pixelated, AIM Freezing, Battery Crashing... HELP!

    I own an iBook G4 which was purchased in February of 2005. I have never had problems with the computer (with exception of the keyboard letters fading..) until a few weeks ago. The computer is running the latest version of OS X 10.3.9. The problems ca

  • SAP Data Source for OmniPortlet available for download

    What are we Announcing ? The beta release of SAP Data Source for OmniPortlet. SAP data source for OmniPortlet makes it easier than ever before to integrate SAP R/3 systems with Oracle Application Server(OracleAS) Portal. With the new SAP data source,