WebSphere Application Server V7 fa supporto Java Platform, Standard Edition (Java SE) 6 (vedere Specifications and API documentation nel Network Deployment (tutti i sistemi operativi), Versione 7.0 Information Center) ed è da allora the release V8.5 when Java 7 has been supported.
Non è stato possibile trovare la documentazione di Java 6 SDK e potrei solo consultare IBM JVM Messages in Java 7 Windows documentation. Ahimè, non sono riuscito a trovare il messaggio di errore nella documentazione.
Poiché java.lang.UnsupportedClassVersionError è "generato quando Java Virtual Machine tenta di leggere un file di classe e determina che i numeri di versione maggiore e minore nel file non sono supportati.", si è verificato un problema di creazione dell'applicazione con una versione più recente di Java rispetto a quella supportata dall'ambiente di runtime, ad esempio WebSphere Application Server 7.0.
Potrei sbagliarmi, ma penso che l'offset = 6 nel messaggio sia per farti sapere quale posizione ha causato il problema di incompatibilità. È irrilevante per te, per me e per molte altre persone, ma alcuni potrebbero trovare utile, esp. quando generano bytecode stessi.
Eseguire il comando versionInfo per informazioni sulle funzioni installate di WebSphere Application Server V7, ad es.
C:\IBM\WebSphere\AppServer>.\bin\versionInfo.bat
WVER0010I: Copyright (c) IBM Corporation 2002, 2005, 2008; All rights reserved.
WVER0012I: VersionInfo reporter version 1.15.1.47, dated 10/18/11
--------------------------------------------------------------------------------
IBM WebSphere Product Installation Status Report
--------------------------------------------------------------------------------
Report at date and time February 19, 2013 8:07:20 AM EST
Installation
--------------------------------------------------------------------------------
Product Directory C:\IBM\WebSphere\AppServer
Version Directory C:\IBM\WebSphere\AppServer\properties\version
DTD Directory C:\IBM\WebSphere\AppServer\properties\version\dtd
Log Directory C:\ProgramData\IBM\Installation Manager\logs
Product List
--------------------------------------------------------------------------------
BPMPC installed
ND installed
WBM installed
Installed Product
--------------------------------------------------------------------------------
Name IBM Business Process Manager Advanced V8.0
Version 8.0.1.0
ID BPMPC
Build Level 20121102-1733
Build Date 11/2/12
Package com.ibm.bpm.ADV.V80_8.0.1000.20121102_2136
Architecture x86-64 (64 bit)
Installed Features Non-production
Business Process Manager Advanced - Client (always installed)
Optional Languages German
Russian
Korean
Brazilian Portuguese
Italian
French
Hungarian
Simplified Chinese
Spanish
Czech
Traditional Chinese
Japanese
Polish
Romanian
Installed Product
--------------------------------------------------------------------------------
Name IBM WebSphere Application Server Network Deployment
Version 8.0.0.5
ID ND
Build Level cf051243.01
Build Date 10/22/12
Package com.ibm.websphere.ND.v80_8.0.5.20121022_1902
Architecture x86-64 (64 bit)
Installed Features IBM 64-bit SDK for Java, Version 6
EJBDeploy tool for pre-EJB 3.0 modules
Embeddable EJB container
Sample applications
Stand-alone thin clients and resource adapters
Optional Languages German
Russian
Korean
Brazilian Portuguese
Italian
French
Hungarian
Simplified Chinese
Spanish
Czech
Traditional Chinese
Japanese
Polish
Romanian
Installed Product
--------------------------------------------------------------------------------
Name IBM Business Monitor
Version 8.0.1.0
ID WBM
Build Level 20121102-1733
Build Date 11/2/12
Package com.ibm.websphere.MON.V80_8.0.1000.20121102_2222
Architecture x86-64 (64 bit)
Optional Languages German
Russian
Korean
Brazilian Portuguese
Italian
French
Hungarian
Simplified Chinese
Spanish
Czech
Traditional Chinese
Japanese
Polish
Romanian
--------------------------------------------------------------------------------
End Installation Status Report
--------------------------------------------------------------------------------
fonte
2013-02-19 13:11:22
Ciao ho lo stesso problema, ma non riesco a capire come risolvere il problema. Potete fornire una risposta diretta per questo numero – Himanshu
sto usando webspare 8.5 dove webspare usa 1.6 internal e il mio compilatore eclipse 1.7 – Himanshu
Se si usa un compilatore Java 7 e si targetizza un ambiente Java 6 è necessario impostare il compilatore della versione superiore per generare un bytecode conforme a 1.6. Vedi le opzioni '-source' e' -target' di 'javac'. –