WebSphere Application Server V7 does supportJava Platform, Standard Edition (Java SE) 6(seeSpecifications and API documentationin the Network Deployment (All operating systems), Version 7.0 Information Center) and it's sincethe release V8.5 when Java 7 has been supported.
I couldn't find the Java 6 SDK documentation, and could only consultIBM JVM MessagesinJava 7 Windows documentation. Alas, I couldn't find the error message in the documentation either.
Sincejava.lang.UnsupportedClassVersionErroris"Thrown when the Java Virtual Machine attempts to read a class file and determines that the major and minor version numbers in the file are not supported.", you ran into an issue of building the application with more recent version of Java than the one supported by the runtime environment, i.e. WebSphere Application Server 7.0.
I may be mistaken, but I think thatoffset=6in the message is to let you know what position caused the incompatibility issue to occur. It's irrelevant for you, for me, and for many other people, but some might find it useful, esp. when they generate bytecode themselves.
Run theversionInfocommand to find out about theInstalled Featuresof WebSphere Application Server V7, e.g.
C:\IBM\WebSphere\AppServer>.\bin\versionInfo.bat
WVER0010I:Copyright(c) IBM Corporation2002,2005,2008;All rights reserved.
WVER0012I:VersionInfo reporter version 1.15.1.47, dated 10/18/11--------------------------------------------------------------------------------
IBM WebSphereProductInstallationStatusReport--------------------------------------------------------------------------------Report at date and time February19,20138:07:20 AM EST
Installation--------------------------------------------------------------------------------ProductDirectory C:\IBM\WebSphere\AppServer
VersionDirectory C:\IBM\WebSphere\AppServer\properties\version
DTD Directory C:\IBM\WebSphere\AppServer\properties\version\dtd
LogDirectory C:\ProgramData\IBM\Installation Manager\logs
ProductList--------------------------------------------------------------------------------
BPMPC installed
ND installed
WBM installed
InstalledProduct--------------------------------------------------------------------------------Name IBM BusinessProcessManagerAdvanced V8.0Version8.0.1.0
ID BPMPC
BuildLevel20121102-1733BuildDate11/2/12Package com.ibm.bpm.ADV.V80_8.0.1000.20121102_2136
Architecture x86-64(64 bit)InstalledFeaturesNon-production
BusinessProcessManagerAdvanced-Client(always installed)OptionalLanguagesGermanRussianKoreanBrazilianPortugueseItalianFrenchHungarianSimplifiedChineseSpanishCzechTraditionalChineseJapanesePolishRomanianInstalledProduct--------------------------------------------------------------------------------Name IBM WebSphereApplicationServerNetworkDeploymentVersion8.0.0.5
ID ND
BuildLevel cf051243.01BuildDate10/22/12Package com.ibm.websphere.ND.v80_8.0.5.20121022_1902
Architecture x86-64(64 bit)InstalledFeatures IBM 64-bit SDK forJava,Version6EJBDeploy tool for pre-EJB 3.0 modules
Embeddable EJB container
Sample applications
Stand-alone thin clients and resource adapters
OptionalLanguagesGermanRussianKoreanBrazilianPortugueseItalianFrenchHungarianSimplifiedChineseSpanishCzechTraditionalChineseJapanesePolishRomanianInstalledProduct--------------------------------------------------------------------------------Name IBM BusinessMonitorVersion8.0.1.0
ID WBM
BuildLevel20121102-1733BuildDate11/2/12Package com.ibm.websphere.MON.V80_8.0.1000.20121102_2222
Architecture x86-64(64 bit)OptionalLanguagesGermanRussianKoreanBrazilianPortugueseItalianFrenchHungarianSimplifiedChineseSpanishCzechTraditionalChineseJapanesePolishRomanian--------------------------------------------------------------------------------EndInstallationStatusReport--------------------------------------------------------------------------------
-source
and-target
options ofjavac
.–Jacek LaskowskiApr 2 '13 at 12:55