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
Similar Messages
-
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,
Harshavardhanbut 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?
-
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. -
I have Jdeveloper Base installation and JDK 1.5..the classpath and JAVA_HOME environment variables are set to the respective JDK1.5\bin folders. Even then when i try to make a web application, with a simple JSP page i get the following error :
Initialization error: class file has wrong version 49.0, should be 45.3 or 46.0 or 47.0 or 48.0 on CLASSPATH ..(followed by a long list of paths)
pls help,
thanksi have windows XP. i have tried to unset the class path...i get the same error.
i have JDeveloper 10g 10.1.2.
i have changed the jdev.conf file to set the Java Home to the path that contains the JDK 1.5.. -
Class file has wrong version 51.0,should be 49.0
Dear All,
I have 2 jdk in my computer, one is 1.7 and another is 1.5. I got a eclipse from my co-worker, checkout project from svn, complied it successful. However, there is error : class file has wrong version 51.0,should be 49.0 when I run it in eclipse( this is google gwt project).
One of my colleague said I should modify one cache file under the eclipse direcotry, but he forgot the loaction of this file.
Anyone knows?After modified this file : org.eclipse.jdt.launching.prefs under : <project folder>\.metadata\.plugins\org.eclipse.core.runtime\.settings,
this problem has been fixed.
The modification is :
add
<libraryLocations>\r\n<libraryLocation
jreJar\="D\:/Java/jdk7/jre/lib/resources.jar"
jreJavadoc\="http\://docs.oracle.com/javase/7/docs/api/"
jreSrc\="D\:/Java/jdk7/src.zip" pkgRoot\=""/>\r\n
to it.
eclipse is :
Eclipse Java EE IDE for Web Developers.
Version: Luna Release (4.4.0)
Build id: 20140612-0600
my questions are :
1. what is this file used for?
2. when use this file?
3. why I have to add these information to it by hand rather than generate these automatically when I set jdk in eclipse preference?
4. why this error occur if this file doesn't has <libraryLocations> when running project(the project compile success before running)? -
Different format of .class file in different versions
I found that the format of .class files(extracted from rt.jar) in jdk1.3.1 are different from those in jdk1.3.0._02.
Can anyone tell me what's the exact difference between them?
and Is there any format difference between jdk1.3.1, jdk1.2, and jdk1.02?
any answers are appreciatedThe format or the content? Those two are significantly different.
As far as I know there can't be any difference in format, not in 1.3.x versions. If there were then the class files wouldn't run in the different jvms, and a new spec would have to be issued.
I am rather certain that the isn't any format change between 1.1.x and 1.2.x/1.3.x. The spec is rather specific about what did change and the format was not one of those. -
Determine the Java Class File Major & Minor Version
Did anyone tried to look at the Major & Minor version of a specific java class file.
Our server is running in version 1.3. We are including a third party class file, I like to check before our production move, whether the file is compiled is <= Jdk1.3.
Thanks in Advance.// 1) Download Jakarta BCEL
// 2) compile this class
import org.apache.bcel.classfile.*;
public class Main
public static void main(String[] args) throws Exception
printClassVersion("c:\\foo.jar", "com/foo/Bar.class");
public static void printClassVersion(String jarfile, String classfile) throws Exception
ClassParser cp = new ClassParser(jarfile, classfile);
JavaClass clazz1 = cp.parse();
System.out.println(jarfile);
System.out.println("Major: " + clazz1.getMajor());
System.out.println("Minor: " + clazz1.getMinor());
} -
Canon p&S File format - DPOF Version 1.1 ???
I've been thinking of buying a P&S as a "walk around" camera, specifically a Canon POWERSHOT SX1 IS 10.1MP 20XWA 2.8i (copied from the vendors site)
But under File format it says DPOF Version 1.1, I plead ignorance. What is it and does ACR support it?
MikerWolf
Thanks for the response.
I've done a bit more research and have begun to suspect there is an underlying difference between our normal use of "File Format" and that of the manufacturer. It appears that for a few more bucks I can upgrade to the SX1 IS which supports "Image Compression of Normal, Fine, SuperFine, RAW", at lower megapixels (10 vs 12), as opposed to the SX20 IS which supports only Normal and Fine.
I'm led to conclude that from our point of view the underlying File Format is likely, JPEG.
From my point of view its easier to understand DPOF as some sort of exchange protocol, rather than an image file format.
As much as I hate to physically go to the Mall, I guess I'll have to to settle the point.
Thanks again
Miker -
Error while converting class file to exp and jca file
error while converting *.class file to *.exp and *.jca file
=====================================================================================================================
linux-y60u:/home/admin/java_card_kit-2_2_1/samples/src # converter -exportpath "/home/admin/java_card_kit-2_2_1/lib/" com/sun/javacard/samples/HelloWorld 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b 1.0 -v -applet 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b:0x01 Identity
Java Card 2.2.1 Class File Converter, Version 1.3
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
parsing /home/admin/java_card_kit-2_2_1/samples/src/com/sun/javacard/samples/HelloWorld/HelloWorld.class
parsing /home/admin/java_card_kit-2_2_1/samples/src/com/sun/javacard/samples/HelloWorld/Identity.class
error: com.sun.javacard.samples.HelloWorld.HelloWorld: unsupported class file format of version 50.0.
error: com.sun.javacard.samples.HelloWorld.Identity: unsupported class file format of version 50.0.
conversion completed with 2 errors and 0 warnings.
=====================================================================================================================i compile a file javacard use this command:
===
javac -source 1.3 -target 1.1 -g -classpath ./classes:../lib/api.jar:../lib/installer.jar src/com/sun/javacard/samples/Identity/Identity.java
===
and try to convert this class use this command
===
/home/xnuxerx/admin/java_card_kit-2_2_1/bin/converter -exportpath "/home/xnuxerx/admin/java_card_kit-2_2_1/lib/" com/sun/javacard/samples/Identity 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b 1.0 -v -applet 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b:0x01 Identity
===
result convert:
===
Java Card 2.2.1 Class File Converter, Version 1.3
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
parsing /home/xnuxerx/admin/java_card_kit-2_2_1/samples/classes/com/sun/javacard/samples/Identity/Identity.class
converting com.sun.javacard.samples.Identity.Identity
error: export file framework.exp of package javacard.framework not found.
conversion completed with 1 errors and 0 warnings.
===
why ??
please your comment for this problem.
thank 4 all. -
Include metainformation (My version number) into a java class file???
Hy
It is possible to include metainformatins like the versions number to a java class file?
I think at the way of the VB6 programmers. The generated exe file contain a rigth click menu (Win Explorer) which shows the mettainformations from the developer (copyright, author, version number of the class file).The windows version info is specific to windows compound files, where the info is incuded as part of the file. Java is platform neutral, and doesn't support windows binary specific metadata (just like you can't add version info to a text file in windows). Other os's allow metadata that is seperate from the binary format of the file, so do not suffer from this limitation.
Distributing your jar as a self extracting exe for windows will allow this info to be added.
Pete -
Class file minor version number
I installed JDK 1.5.0_15, was previously on 1.5.0_06. It looks like the minor version number in the .class files didn't change - in fact, both have zeroes.
The first 8 bytes under both contain: cafe babe 0000 0031I'd say it's because the major and minor version number in the class file refers to the structure of the class file, ie. it's a version number of the class file format not of the JDK that created it.
The format hasn't changed between those JDK releases... so the version numbers stay the same.
regards,
Owen -
Determine the Version (File Format) in which the report was created.
I have an application which hosts various reports, these reports are all in Crystal 8.5. I want to switch some of these reports to Crystal 11 reports and also add new reports. Hence I will be displaying both Crystal 8.5 and Crystal 11 report in my application. Is there a way to determine the File Format Schema / Version in which the Crystal report was created at run-time so that i can then call the instance of that specific report viewer on my form and display the report. My Application uses VB6.
thank you.Hello,
Moved to Legacy SDK forum.
Yes, use the Object browser for the RDC and search on major and minor version you'll find info on how to get the report version.
If you can't figure it out I'll up date the post tomorrow with sample code.
Now that I have my test machine going again with VS 6 running I looked and I lied, the RDC only returned the version of the engine and not the report. The new CR Assemblies will allow you to get the report version.
Thank you
Don
Edited by: Don Williams on Dec 12, 2010 2:32 PM -
How to read the java class file to convert it in java.
hello all,
i m developing the java application which generated the java code from the java 'class file' .
Can anybody please help me, Is any java support for reading the class file? or how to know the class file format?
I know the application javad, jad, javap which is doing the same thing.
thanks for reply,
- Jayddo you mean decompiling? there are tons of java decompilers available out there, what exactly are you trying to do here?
Maybe you are looking for
-
Vendor account number and cargo custom number
Hi Gurus, Please let me know where we maintain the Vendor account number (LIFNR) and Cargo custom number (BKTXT) with respect to the material. Regards, Hari Challa.
-
Hi I want to INSERT a record in a Z-Table if a material belongs to a particular plant. My Code is:- IF plant is not initial and plant = say 'ABC'. INSERT ztable with material number ENDIF. Please corerct it if it is wrong at any place Thank You
-
SQL Server and Database Sequence
I am trying to use the Database Adapter to insert rows into a SQL Server table and have followed the directions in the other post on this topic. Those directions are specific to inserting into an Oracle Database. If I don't insert the <sequence-numbe
-
How To Edit And Delete Photo's & Video's
So after buying my new 5G video i rushed home and started to try and fill her up. In doing so i have added over 1000 pics but when i look through them on the ipod they are in no order. Question 1 is how do i edit or sort or even delete them now that
-
Drop-ship warehouse Inventory Qty
Hello Experts, I have made couple of transactions in Drop-ship warehosue / items (using GRPO document). I could not see the inventory quantity anywhere. Can you please guide me where could I check the inventory which is in DROP-ship warehouse ? Thank