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 0031

I'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

Similar Messages

  • Class File Compilation Version

    Anyone knows how I can see in which version of jdk a class file is compiled?

    The first 4 bytes in the class file are the magic number, ie. 0xCAFEBABE
    The next 2 are the minor number, next 2 are the major number.
    I've a lookup table up to version 1.2 but not beyond that.
    So, assuming these are major & minor number pair ranges...
    ( 0, 0 ) - ( 44, 65535 ) = Unknown JDK, less than 1.0.2
    ( 45, 0 ) - ( 45, 3 ) = Sun JDK 1.0.2
    ( 45, 3 ) - ( 45, 65535 ) = Sun JDK 1.1.X
    ( 45, 0 ) - ( 46, 0 ) = Sun JDK 1.2
    ( 46, 0 ) - ( 65535, 65535 ) = Sun JDK 1.2 or greater
    regards,
    Owen

  • Determine based on .class file, the version/vendor of the compiler

    Is it possible to determine the version and/or vendor of the compiler used to create a .class file?
    As far as I can see, the only information stored in a .class file are the major_version and minor_version, both used by the JVM at runtime to determine whether or not that version of the JVM can support the .class file. Can these version numbers be interpreted in any way to determine the version of the compiler?

    Is it possible to determine the version and/or vendor
    of the compiler used to create a .class file?
    As far as I can see, the only information stored in a
    .class file are the major_version and minor_version,
    both used by the JVM at runtime to determine whether
    or not that version of the JVM can support the .class
    file. Can these version numbers be interpreted in any
    way to determine the version of the compiler?The compiler may insert its identification into the class file (as custom attributes), but is not required to do so.

  • 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.

  • Ant tools: converter java card -  class file  not belonging to the package!

    Hi
    I have another problem with converter. Could you help me please again if you have the time?
    I have created a directory when I save the class files generated by javac. After That , I use convert in this way:
    <convert
    JCA="true"
    EXP="true"
    CAP="true"
    packagename="testUn/classes/testUn"
    packageaid="0x01:0x01:0x01:0x01:0x01:0x01:0x01:0x01:0x02:0x00"
    majorminorversion="1.0"
    verbose = "true">
    <AppletNameAID
    appletname="testUn.classes.testUn.PorteAppUn"
    aid="0x01:0x01:0x01:0x01:0x01:0x01:0x01:0x01:0x02:0x00:0x00"/>
    <classpath refid="classpath"/>
    </convert>
    Here is the answer of the computer:
    [echo] Generation of the CAP,JCA and EXP files...
    [convert] Java Card Ant Tasks, Version 1.0
    [convert] Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
    [convert] Note: Usage of Java Card Ant Tasks is optional. Java Card Ant Tasks are not supported by Sun Microsystems, Inc.
    [convert] Java Card 2.2.2 Class File Converter, Version 1.3
    [convert] Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
    [convert] parsing /home/ehoudart/app-manager/VersionZero/src/testUn/classes/testUn/PorteAppUn.class
    [convert] converting testUn.PorteAppUn
    [*convert] error: class PorteAppUn does not belong to package testUn.classes.testUn.*
    [convert] conversion completed with 1 errors and 0 warnings.
    I do not understand why this unique applet class file does not belong to its own package. Is someone an idea?
    Thanks very much in advance for your answer.

    Here is a complete example build.xml (I think I have posted this before).
    <?xml version="1.0" encoding="UTF-8" ?>
    <project default="convert" name="javacard-starter">
      <!-- Build specific properties -->
      <property name="target.classes" location="${basedir}/target/classes" />
      <property name="target.javacard" location="${basedir}/target/javacard" />
      <property name="source.java" location="${basedir}/src/main/java" />
      <!-- Must point to the folder containing the JAR files from the JCDK -->
      <property name="javacard.libs" location="${basedir}/lib" />
      <!-- Must point to the folder containing the JAR file from the JCDK ant task -->
      <property name="javacard.ant-task" location="${basedir}/lib" />
      <!-- Must point to the folder containing the API export files from the JCDK -->
      <property name="javacard.export" location="${basedir}/src/main/export" />
      <property name="verbose" value="true" />
      <property name="noverify" value="false" />
      <!-- Path for JC tasks -->
      <path id="classpath">
        <fileset dir="${javacard.ant-task}">
          <include name="*.jar" />
        </fileset>
        <fileset dir="${javacard.libs}">
          <include name="*.jar" />
        </fileset>
      </path>
      <!-- set the export path to the Java Card export files -->
      <path id="export" description="set the export file path">
        <fileset dir="${javacard.export}">
          <include name="**/*.exp" />
        </fileset>
        <pathelement path="${javacard.export}" />
        <pathelement path="${target.classes}" />
        <pathelement path="${target.javacard}" />
      </path>
      <!-- Definitions for tasks for Java Card tools -->
      <taskdef name="capgen" classname="com.sun.javacard.ant.tasks.CapgenTask" classpathref="classpath" />
      <taskdef name="deploycap" classname="com.sun.javacard.ant.tasks.DeployCapTask" classpathref="classpath" />
      <taskdef name="convert" classname="com.sun.javacard.ant.tasks.ConverterTask" classpathref="classpath" />
      <taskdef name="verifyexport" classname="com.sun.javacard.ant.tasks.VerifyExpTask" classpathref="classpath" />
      <taskdef name="verifycap" classname="com.sun.javacard.ant.tasks.VerifyCapTask" classpathref="classpath" />
      <taskdef name="verifyrevision" classname="com.sun.javacard.ant.tasks.VerifyRevTask" classpathref="classpath" />
      <typedef name="appletnameaid" classname="com.sun.javacard.ant.types.AppletNameAID" classpathref="classpath" />
      <typedef name="jcainputfile" classname="com.sun.javacard.ant.types.JCAInputFile" classpathref="classpath" />
      <target name="init">
        <mkdir dir="${target.classes}" />
        <mkdir dir="${target.javacard}" />
      </target>
      <target name="clean">
        <delete dir="${target.classes}" />
        <delete dir="${target.javacard}" />
        <delete dir="${javacard.eeprom}" />
      </target>
      <target name="compile" depends="init" description="Compile source code to class files">
        <!-- Compile the java code from ${src} to ${classes} -->
        <javac debug="yes" optimize="no" srcdir="${source.java}" destdir="${target.classes}" source="1.5" target="1.5">
          <classpath refid="classpath" />
        </javac>
      </target>
      <target name="convert" depends="compile" description="Convert class files to cap files">
              <convert packagename="chaining" packageaid="0xF0:0x00:0x00:0x01:0x00:0x01" majorminorversion="1.0" classdir="${target.classes}" outputdirectory="${target.classes}" jca="true" exp="true" cap="true" debug="true" verbose="${verbose}" noverify="${noverify}">
                   <appletnameaid aid="0xF0:0x00:0x00:0x01:0x00:0x01:0x00:0x01" appletname="chaining.ChainingApplet" />
                   <exportpath refid="export" />
                   <classpath refid="classpath" />
              </convert>
      </target>
      <target name="copy-debug">
        <mkdir dir="${target.debug}" />
        <echo>Copying cap files</echo>
        <copy flatten="true" todir="${target.debug}" verbose="true">
          <fileset dir="${target.classes}" includes="**/*.cap" />
          <fileset dir="${target.classes}" includes="**/*.exp" />
          <fileset dir="${target.classes}" includes="**/*.jca" />
        </copy>
      </target>
      <target name="all" depends="clean, convert" />
    </project>

  • Jbuilder produced class files?

    I have a problem converting class files produced by JBuilder IDE (v 6.0). The converter reports the following error:
    "Missing static field initializer in field XYZ", where XYZ is declared in the source as:
    final static byte XYZ = (byte)0;
    If I declare it non-zero or remove the static keyword the converter accept the produced class files. Any ideas?
    Regards,
    Jonas

    Hi all!
    I also have the same problem like Jonas', even I have compile my program both with JDK-1.3.1-b24 dan JDK-1.2.2_010, but it still produces the same error in converting phase. It comes like this:
    peserta.jpr activated.
    --> ProjectEditor output : C:/Applet/peserta.gxp configured
    GemXpressoProject C:/Applet/peserta.gxp defined.
    peserta.jpr // C:/Applet/peserta.gxp closed.
    no project activated.
    peserta.jpr activated.
    --> Converter output : ====================================================================
    --> Converter output : Conversion in progress ...
    --> Converter output : Converter JC2.1 SUN Converter (version 1.0) Result on card GXP211_PK_IS :
    --> Converter output : Java Card 2.1 Class File Converter (version 1.0)
       Copyright (c) 1999 Sun Microsystems, Inc. All rights reserved.
       parsing C:\Applet\applet\peserta\applet\peserta\appletPeserta.class
       parsing C:\Applet\applet\peserta\applet\peserta\constPeserta.class
       converting applet.peserta.constPeserta
       converting applet.peserta.appletPeserta
       parsing C:\Gemplus\GemXpresso.rad3\resources\exportfiles\Gxp211_PK_IS\javacard\framework\javacard\framework.exp
       parsing C:\Gemplus\GemXpresso.rad3\resources\exportfiles\Gxp211_PK_IS\javacard\security\javacard\security.exp
       parsing C:\Gemplus\GemXpresso.rad3\resources\exportfiles\Gxp211_PK_IS\java\lang\javacard\lang.exp
       parsing C:\Gemplus\GemXpresso.rad3\resources\exportfiles\Gxp211_PK_IS\javacardx\crypto\javacard\crypto.exp
       writing C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.exp
       writing C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jca
       conversion completed with 0 errors and 0 warnings.
    --> Converter output : JC2.1 SUN Converter (version 1.0) process is completed
    --> Converter output : JCASM program result on card GXP211_PK_IS :
    --> Converter output : Java Card 2.1 CAP File Builder (version 1.0)
       Copyright (c) 1999 Sun Microsystems, Inc. All rights reserved.
       %%% Error %%% Missing static field initializer in field applet/peserta/constPeserta/INS_AUTHENTICATE declared in file C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jca at line 309.
       %%% Error %%% Missing static field initializer in field applet/peserta/constPeserta/P1_RUJUKAN_ID declared in file C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jca at line 332.
       %%% Error %%% Missing static field initializer in field applet/peserta/constPeserta/CLA_SELECT declared in file C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jca at line 376.
       %%% Error %%% Missing static field initializer in field applet/peserta/constPeserta/P2_SELECT declared in file C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jca at line 379.
    --> Converter output : **********************************************************************
    --> Converter output : * WARNING ! Exit Value for JCAsm process = 4
    --> Converter output : **********************************************************************
    --> Converter output : Converter SAP Converter (version 1.0) Result on card GXP211_PK_IS :
    --> Converter output : SAP file : C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.sap done
    --> Converter output : SAP Converter (version 1.0) process is completed
    --> Converter output : conversion End.
    --> ComputeSize output : ====================================================================
    --> ComputeSize output : Gemplus CapFile Tool (copyright (C) Gemplus 1999)
    --> ComputeSize output : -> Compute the memory Size :
    --> ComputeSize output : C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jar not found. File ignored.
    --> ComputeSize output : Load JAR file error in Compute Size module for C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jar
    --> ComputeSize output : Compute memory Size completed.
    --> ProjectEditor output : C:/Applet/applet/peserta/peserta.gxp configured
    GemXpressoProject C:/Applet/applet/peserta/peserta.gxp defined.
    --> Converter output : ====================================================================
    --> Converter output : Conversion in progress ...
    --> Converter output : Converter JC2.1 SUN Converter (version 1.0) Result on card GXP211_PK_IS :
    --> Converter output : Java Card 2.1 Class File Converter (version 1.0)
       Copyright (c) 1999 Sun Microsystems, Inc. All rights reserved.
       parsing C:\Applet\applet\peserta\applet\peserta\appletPeserta.class
       parsing C:\Applet\applet\peserta\applet\peserta\constPeserta.class
       converting applet.peserta.constPeserta
       converting applet.peserta.appletPeserta
       parsing C:\Gemplus\GemXpresso.rad3\resources\exportfiles\Gxp211_PK_IS\javacard\framework\javacard\framework.exp
       parsing C:\Gemplus\GemXpresso.rad3\resources\exportfiles\Gxp211_PK_IS\javacard\security\javacard\security.exp
       parsing C:\Gemplus\GemXpresso.rad3\resources\exportfiles\Gxp211_PK_IS\java\lang\javacard\lang.exp
       parsing C:\Gemplus\GemXpresso.rad3\resources\exportfiles\Gxp211_PK_IS\javacardx\crypto\javacard\crypto.exp
       writing C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.exp
       writing C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jca
       conversion completed with 0 errors and 0 warnings.
    --> Converter output : JC2.1 SUN Converter (version 1.0) process is completed
    --> Converter output : JCASM program result on card GXP211_PK_IS :
    --> Converter output : Java Card 2.1 CAP File Builder (version 1.0)
       Copyright (c) 1999 Sun Microsystems, Inc. All rights reserved.
       %%% Error %%% Missing static field initializer in field applet/peserta/constPeserta/INS_AUTHENTICATE declared in file C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jca at line 309.
       %%% Error %%% Missing static field initializer in field applet/peserta/constPeserta/P1_RUJUKAN_ID declared in file C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jca at line 332.
       %%% Error %%% Missing static field initializer in field applet/peserta/constPeserta/CLA_SELECT declared in file C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jca at line 376.
       %%% Error %%% Missing static field initializer in field applet/peserta/constPeserta/P2_SELECT declared in file C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jca at line 379.
    --> Converter output : **********************************************************************
    --> Converter output : * WARNING ! Exit Value for JCAsm process = 4
    --> Converter output : **********************************************************************
    --> Converter output : Converter SAP Converter (version 1.0) Result on card GXP211_PK_IS :
    --> Converter output : SAP file : C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.sap done
    --> Converter output : SAP Converter (version 1.0) process is completed
    --> Converter output : conversion End.
    --> ComputeSize output : ====================================================================
    --> ComputeSize output : Gemplus CapFile Tool (copyright (C) Gemplus 1999)
    --> ComputeSize output : -> Compute the memory Size :
    --> ComputeSize output : C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jar not found. File ignored.
    --> ComputeSize output : Load JAR file error in Compute Size module for C:\Applet\applet\peserta\oncard\GXP211_PK_IS\applet\peserta\javacard\peserta.jar
    --> ComputeSize output : Compute memory Size completed.Any suggestion? Thanks before :)

  • Major version number mismatch warning ?

    Flatform : RedHat Linux7.1
    Program : j2sdk-1_4_0-linux-i386.bin
    I have this error after installing jdk1.4.0 and typing 'javac' :
    ===========================
    Warning: Major version number mismatch.
    Warning: Minor version number mismatch.
    Warning: Major version number mismatch.
    Warning: Minor version number mismatch.
    Warning: Major version number mismatch.
    Warning: Minor version number mismatch.
    Warning: Major version number mismatch.
    repeat...
    Why this error do occur?
    How can I complete jdk1.4 installing?

    I'm getting the same warning as well. I recently upgraded from Red Hat 7.1 -> 7.2 and have j2sdk1.4.0.
    I get the following warnings when I actually run programs:
    Warning! Major version number mismatch.
    Warning! Minor version number mismatch.
    Did you ever find any resolution? I'll keep looking & if I find something, I'll post it here.
    Thanks-
    [email protected]

  • Help Updates Doesn't upgrade major version to 2014, only applies minor version updates

    I have Adobe Creative Cloud for OS X deployed to many machines using CCP and Casper and I have now set up AUSST.
    On one test machine, I opened one CC application and went to Help > Updates and installed all available updates. It appears to only install minor version number updates, not Major version number upgrades, so my machine is not on CC 2014.
    Is this expected behaviour? Should I now be on 2014, or do I need to build a new package using CCP for 2014?
    If I need to build a new package, what do I do regarding the existing installations? DO i need to remove all those components first?
    Thanks,
    Alan.

    Alan,
    This, like it or not, is the world of CC 2014. They are new versions -- upgrades rather than updates. The pre-CC 2014 versions can be installed alongside the new versions without a problem. They will need to be uninstalled individually if you don't want them lying around. And sadly, unlike the CS suites, there is no single uninstaller that will remove all the unwanted CC applications. They need to be removed one-by-one.
    We should let one of the Adobe moderators vet this response, but this is my understanding and experience.
    Ric

  • Java error message - Bad version number in .class file

    I get the  error noted below in Safari, Firefox, and Chrome when I try to view java containing web pages.
    Specifically this page: http://aviationweather.gov/adds/tafs/java/
    My Java Preferences are as follows
    My OS is 10.5.8
    Thanks!
    Java Plug-in 1.6.0_26
    Using JRE version 1.5.0_30-b03-389-9M3425 Java HotSpot(TM) Client VM
    User home directory = /Users/ernest
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    o:   trigger logging
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    x:   clear classloader cache
    0-5: set trace level to <n>
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
        at java.lang.reflect.Method.invoke(Method.java:592)
        at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Plugin2ClassLoader.java :1014)
        at sun.plugin2.applet.Plugin2ClassLoader.access$100(Plugin2ClassLoader.java:69)
        at sun.plugin2.applet.Plugin2ClassLoader$2.run(Plugin2ClassLoader.java:991)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Plugin2ClassLoader.java:9 55)
        at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:134)
        at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Plugin2ClassLoader.java:250)
        at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:180)
        at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:161)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:675)
        at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3046)
        at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.ja va:1498)
        at java.lang.Thread.run(Thread.java:655)
    Exception: java.lang.UnsupportedClassVersionError: Bad version number in .class file

    Hi, thank you for the reply.  However, java is definitely enabled on my computer, on all my browsers.  In fact, if I go to the SUN website and run the java test, I get that all is OK.
    I think it may have something to do with the .class (maybe in .jar-file) compiled with a higher version of java than the virtual machine trying to run it. 
    The example I found (google search) is .class-file that is compiled with JDK 6 and I am trying to run it with 1.4 JVM.
    There is some software error going on somewhere... but I do not know enough to fix it.
    Many thanks for all your help

  • JDBC error : UnsupportedClassVersionError:Bad version number in .class file

    Hi All,
    I am currently working with PI 7.1 on an Idoc ->XI->JDBC scenario. The DB being used in our case is SQL 2008. We have successfully installed the JDBC driver provided by MS. When the message reached the JDBC the following error is listed in RWB.
    JDBC Message processing failed, due to Error when attempting to get processing resources: com.sap.aii.af.lib.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Can not establish connection:: UnsupportedClassVersionError: Bad version number in .class file
    We tried reinstalling the JDBC drivers as well , but to no avail.. .
    Any idea on why this could happen ?
    Regards,
    Sandeep

    Hi Mallikarjun,
        Are you getting this error for only specific channel or all channels?
    If you are getting this for all channels check your drivers of they are installed correctly....
    if it is for specific channel then try increasing JDBC thread count and in restart the channel...
    Regards,
    Naveen

  • 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] &#27491;&#22312;&#39564;&#35777; "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!

  • 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());
    }

  • The Wizard doesn´t start ("Bad version number in .class file")

    Hi,
    I have done the steps from Adobe´s web to install the plugin and dependences... But when i try to start the wizard i have this problem:
    "The selected wizard could not be started.
      Plug-in com.adobe.livecycle.cde was unable to load class com.adobe.livecycle.cde.wizard.CdeWizard.
      Bad version number in .class file"
    Thanks

    Thanks for reply nothing

  • 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

  • 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.

Maybe you are looking for

  • FDM import script with selectable source file

    Hi All, I would like to build an import script attached to an import format that imports a text file with multiple value columns. Source file: Entity, Detail, Account 1, Account 2 E_abc, D_abc, 100, 200 In FDM this needs to be: Entity, Detail, Accoun

  • Working with SWF files...

    We're working on an editor to post letter's to a blog, and we're trying to implement something that will automate the process of adding SWF's to the code. Basically what we're looking for is some way to read the width and the height of the swf while

  • Best Browser for my MacBook

    My almost 5 year old MacBook running OS X 10.6.8 (I haven't upgraded yet) is overheating a lot when I use Safari 5.1.10, I've tried Chrome but I didn't like it. I'm looking for a browser that will perform well on a Core 2 Duo MacBook with 2 GBs of RA

  • Reports - Passing checkbox values and conditional column visibility

    Although I've been using Oracle databases for many years, I've to admit I'm rather new to APEX. I'm building a first prototype project to convince our project leaders and managers of the usefulness of the product for future projects (as for visual Da

  • DAQmx Create Virtual Channel AI Temp TC Deg F Bug

    Found a bug in DAQmx Create Virtual Channel AI Temp TC Deg F when using a cDaq-9174 with a NI 9213 Analog Inpout module.  When I change from Deg C to Deg F I do not get the correct temperature.  In Deg C I read ambient temp of 21.84 Deg C Vs. when I