Wlst doesn't start- java.lang.UnsupportedClassVersionError
i get the following error while running wlst
>>
bash-3.00$ java weblogic.WLST
Initializing WebLogic Scripting Tool (WLST) ...
Problem invoking WLST - java.lang.UnsupportedClassVersionError: Bad version number in .class file
<<
though it used to work perfectly fine ago, just couple of days back it started having these problem...
Hi,
It may be possible that recently you might have installed a Lower version of JVM in the same BOX.
So please verify that by doing the following:
1). Open a Shell prompt and then type:
java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)2). Make sure that this is the JVM which you want to invoke the WLST ....because it is possible that the weblogic.WLST is compiled in a higher version of the JDK which you might be seeing in your OUTPUT of the above command.
3). So please make sure to set the PATH variable by adding your Latest version of JDK (example JDK 1.6) AT the beginning of the PATH like following:
export PATH=/home/myuser/myJDKs/jdk1.6.0_2/bin:$PATH
echo $PATHThanks
Ravish Mody
Similar Messages
-
I want to migrate from NetBeans 6.7.1 to Java ME SDK 3.0 for several reasons.
However when trying to start it hangs for a couple of minutes and then this message come up in a pop-up box:
"A java.lang.reflect.InvocationTargetException exception has occurred. Click Show Details or see the messages.log file located in your C:\Documents and Settings\admin\javame-sdk\toolbar\3.0\var\log folder."
Log file contant here. I' have read the UsersManual but this seems different.
I run Windows XP Pro SP3. I have a F-Secure Internet 2010 FW application. Please enlighten me on what setting I shoud set in the FW or other part of my system.
BR
/Per
Log Session: Friday, January 15, 2010 4:02:04 PM CET
System Info: Product Version = Java(TM) ME Platform SDK 3.0
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_17; Java HotSpot(TM) Client VM 14.3-b01; Sun Microsystems Inc.
Runtime = Java(TM) SE Runtime Environment 1.6.0_17-b04
Java Home = C:\Program Files\Java\jdk1.6.0_17\jre
System Locale; Encoding = sv_SE (cdctoolbar); Cp1252
Home Directory = C:\Documents and Settings\admin
Current Directory = C:\Java_ME_platform_SDK_3.0\bin
User Directory = C:\Documents and Settings\admin\javame-sdk\toolbar\3.0
Installation = C:\Java_ME_platform_SDK_3.0\toolbar\javamesdk1
C:\Java_ME_platform_SDK_3.0\toolbar\ide10
C:\Java_ME_platform_SDK_3.0\toolbar\java2
C:\Java_ME_platform_SDK_3.0\toolbar\mobility8
C:\Java_ME_platform_SDK_3.0\toolbar\profiler2
C:\Java_ME_platform_SDK_3.0\toolbar\platform9
Boot & Ext. Classpath = C:\Program Files\Java\jdk1.6.0_17\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_17\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_17\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_17\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_17\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_17\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_17\jre\classes;C:\Program Files\Java\jdk1.6.0_17\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0_17\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0_17\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.6.0_17\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.6.0_17\jre\lib\ext\sunpkcs11.jar
Application Classpath = C:\Java_ME_platform_SDK_3.0\toolbar\platform9\lib\boot.jar;C:\Java_ME_platform_SDK_3.0\toolbar\platform9\lib\org-openide-modules.jar;C:\Java_ME_platform_SDK_3.0\toolbar\platform9\lib\org-openide-util.jar;C:\Program Files\Java\jdk1.6.0_17\lib\dt.jar;C:\Program Files\Java\jdk1.6.0_17\lib\tools.jar
Startup Classpath = C:\Java_ME_platform_SDK_3.0\toolbar\platform9\core\core.jar;C:\Java_ME_platform_SDK_3.0\toolbar\platform9\core\org-openide-filesystems.jar;C:\Java_ME_platform_SDK_3.0\toolbar\javamesdk1\core\locale\core_cdctoolbar.jar
VARNING
--- cut of Warnings and Info---
[ 680219] ERROR - un.jme.toolkit.bootstrap.Batch - Problem calling start() on DeviceManagerConnection
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.jme.toolkit.bootstrap.Batch.invoke(Unknown Source)
at com.sun.jme.toolkit.bootstrap.Batch.tryInvoke(Unknown Source)
at com.sun.jme.toolkit.bootstrap.Batch.startObjects(Unknown Source)
at org.netbeans.modules.javame.common.container.Module.start(Module.java:21)
at org.netbeans.modules.javame.common.container.ContainerSupport.startModule(ContainerSupport.java:67)
at org.netbeans.modules.javame.common.container.devicemanager.DevicemanagerHelper.getDeviceManagerConnectionI have tried to switch off the FW -> the SDK 3.0 hangs in the initial startup splash. The red line stops at ca 75% done
I have tried to open the port 1299 -> the SDK 3.0 hangs in the initial startup splash. The red line stops at ca 75% done
/Per -
Java.lang.UnsupportedClassVersionError with ADF and Websphere
I'm trying to get an app running with ADF/Tomahawk/MyFaces/Facelets going on Websphere 6.0. However Websphere is running with a 1.4.2 JVM instead of 1.5 so I get an error when it comes to the ADF NavigationHandlerImpl which has been built with Java 1.5. Is there a Java 1.4 version of ADF faces I should have downloaded somewhere?
Hints appreciated.
Regards, Murray
==<logs below >=================================
[5/4/06 13:15:47:816 GMT] 00000011 FacesConfigur I Reading config /WEB-INF/faces-config.xml
[5/4/06 13:15:48:236 GMT] 00000011 WebApp E LinkageError while defining class: oracle.adfinternal.view.faces.application.NavigationHandlerImpl
Could not be defined due to: oracle/adfinternal/view/faces/application/NavigationHandlerImpl (Unsupported major.minor version 49.0)
This is often caused by having a class defined at multiple
locations within the classloader hierarchy. Other potential causes
include compiling against an older or newer version of the class
that has an incompatible method signature.
Dumping the current context classloader hierarchy:
==> indicates defining classloader
==>[0]
com.ibm.ws.classloader.CompoundClassLoader@7d4e3ab9
Local ClassPath: C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\classes;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\activation-1.0.2.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\adf-facelets.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\adf-faces-api-ea20-SNAPSHOT.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\adf-faces-impl-ea20-SNAPSHOT.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\aui.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\common-annotations.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-beanutils-1.7.0.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-codec-1.3.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-collections-3.1.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-digester-1.6.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-el-1.0.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-fileupload-1.1.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-io-1.2.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-lang-2.1.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\commons-logging-1.0.4.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\el-api.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\el-ri.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\jsf-facelets1014.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\jsp-api.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\jstl-1.1.0.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\log4j-1.2.13.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\mob-impl-files.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\mob-layer-interfaces.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\mob-layer-standalone.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\myfaces-api-1.1.3-SNAPSHOT.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\myfaces-impl-1.1.3-SNAPSHOT.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\portlet.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\serializer.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\tomahawk-1.1.2-SNAPSHOT.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\xalan.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\xercesImpl.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\xml-apis.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\xpp3_min-1.1.3.4.O.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\xstream-1.1.3.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war\WEB-INF\lib\xstream-with-attributes.jar;C:\apps\WebSphere60\profiles\default\installedApps\localhostNode01Cell\aui_war.ear\aui.war;
Delegation Mode: PARENT_FIRST
[1] com.ibm.ws.classloader.JarClassLoader@630356666 Local Classpath: Delegation mode: PARENT_FIRST
[2] com.ibm.ws.classloader.ProtectionClassLoader@2333faba
[3] com.ibm.ws.bootstrap.ExtClassLoader@7f427ab8
[4] sun.misc.Launcher$AppClassLoader@7f4cbab8
[5] sun.misc.Launcher$ExtClassLoader@7f30bab8
---Original exception---
java.lang.UnsupportedClassVersionError: oracle/adfinternal/view/faces/application/NavigationHandlerImpl (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code))
at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:576)
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code))
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:414)
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:260)
at org.apache.myfaces.shared_impl.util.ClassUtils.classForName(ClassUtils.java:131)
at org.apache.myfaces.shared_impl.util.ClassUtils.simpleClassForName(ClassUtils.java:157)
at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:521)
at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:448)
at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:131)
at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:66)
at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:49)
at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1355)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:371)
at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:114)
at com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:127)
at com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:776)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:729)
at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:140)
at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1019)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1028)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:538)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:724)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:683)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:1678)
at com.ibm.ws.runtime.component.ComponentImpl$_AsynchInitializer.run(ComponentImpl.java:304)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)Hi,
you will have to compile the application with JDK 1.4 in this case. This should work for JSF and ADF Faces.
Frank -
Exception in thread "main" java.lang.UnsupportedClassVersionError:
when i run javac its works fine.when i run java.exe the problem occurs.my jre and other java package is a part of the file that i downloaded from sun.com. i tried to reinstall but i doesn`t help.
Exception in thread "main" java.lang.UnsupportedClassVersionError: NullPointer (Unsupported major.min
or version 49.0)
at java.lang.ClassLoader.defineClass0(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)
plz help..Hi,
I had the same problem. I got the sam advice about the 'two versions' story.
I was running java programs for Java 1.5 under Win ME (please don't laugh). I then I upgraded to XP. I re-installed Java 1.5. Suddenlu those same programs that were running under ME won't run under XP. Getting the same message as above.
I only had 1 (one) Java version installed. That was Jave 1.5
The funny thing is that jsp pages that I created under ME still worked fine under XP without me doing anything to them
I un-installed Jave 1.5, re-install it and what do you know? Everything is fine now?
It's a strange, strange world we program in, Master Jack (taken from a hit song in the late 60's in SA - need I say more?)
Phlip -
Server subsys tem failed. Reason: java.lang.UnsupportedClassVersionError
Hello!
Is not possible to run WebLogic 10R3 with JAVA 5?
<24/Nov/2009 10H14m GMT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic
Server with Java HotSpot(TM) Client VM Version 1.5.0_22-b03 from Sun Microsyste
ms Inc.>
<24/Nov/2009 10H14m GMT> <Critical> <WebLogicServer> <BEA-000386> <Server subsys
tem failed. Reason: java.lang.UnsupportedClassVersionError: Bad version number i
n .class file
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at weblogic.kernel.FinalThreadLocalList.initialize(FinalThreadLocalList.
java:44)
at weblogic.t3.srvr.PreConfigBootService.start(PreConfigBootService.java
:70)
at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesMan
ager.java:459)
at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServ
icesManager.java:164)
at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:711)
at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:482)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:440)
at weblogic.Server.main(Server.java:67)
>
<24/Nov/2009 10H14m GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state ch
anged to FAILED>
<24/Nov/2009 10H14m GMT> <Error> <WebLogicServer> <BEA-000383> <A critical servi
ce failed. The server will shut itself down>
<24/Nov/2009 10H14m GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state ch
anged to FORCE_SHUTTING_DOWN>
Thanks
A.Hi there,
your concern is not without reason. But there is a way to configure NWDI to use both JDKs as required.
In the CBS-Settings
BUILD_TOOL_JDK_HOME - has to point to the JDK with the highest version. This should be the JDK 6 of your CE 7.2 I guess.
JDK_HOME_PATHS - contains aliases for the JDKs and the PATH to them. This aliases will be used in the build variant.
For example: JDK1.4_HOME=/usr/lib64/jvm/java;JDK1.5.0_HOME=/nwdi/sap_build_vm/sapjvm_5;default=/nwdi/sap_build_vm/sapjvm_5
This example tells CBS that there are 2 JDKs 1.4 and 1.5 and that the 1.5 JDK will be used by default.
When you create a track you have to set a build variant to use , in my case JDK 1.4, instead od the JDK1.5 by default.
The build variant will be:
com.sap.jdk.home_path_key = JDK1.4_HOME
This tells CBS to use the JDK1.4 as defined in JDK_HOME_PATHS for building in this track. other tracks will use the default JDK as long as the build variant is not adjusted.
So its not problem to build with different JDKs in NWD if required.
Have a good time
Jan -
DPL Error: java.lang.UnsupportedClassVersionError
I was trying to use the DPL and ran into a little snag. I'm running my test code from within Eclipse with the jar file added to my class path.
I get the following error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at WordCounter2.<init>(WordCounter2.java:60)
at WordCounter2.getInstance(WordCounter2.java:78)
at Test.main(Test.java:19)For reference, this is my little tester code
private WordCounter2() throws DatabaseException {
EnvironmentConfig envConfig = new EnvironmentConfig();
envConfig.setAllowCreate(true);
envConfig.setTransactional(true);
myDbEnvironment = new Environment(new File("scratch"), envConfig);
StoreConfig config = new StoreConfig();
config.setAllowCreate(true);
store = new EntityStore(myDbEnvironment,"wordCount",config);
recordByWord = store.getPrimaryIndex(String.class, Record.class);
}I don't think there is anything wrong with my test program. When I run it with the BDB_je Eclipse project on my classpath (instead of the .jar file built using the ant script) my program works fine.
I'm not quite sure what exaclty what might be going on here but it seems to be something todo with the ClassLoader/ClassEnhancer.
I'm guessing that somewhere in the build of PDL with the ant script the bytecode enhancer is producing 1.6 code. I've worked through a bunch of other test which didn't use the PDL and those work fine with either the .jar file or compiled by Eclipse's "built-in" build process.
To eliminate whether this problem only existed because I built the .jar myself I also tried the .jar file I downloaded in the je-3.2.42.zip file and it had the same effect.
I wanted to try doing everything at commandline and didn't actually get the built to complete but I got a little hint when doing so:
kdvolder$ javac -cp ~/Desktop/downloads/je-3.2.42/lib/je-3.2.42.jar *.java
error: cannot read: *.java
1 error
tiny:~/eclipse_workspaces/jquery/berkeley_DB/je-3.2.42 kdvolder$ cd ../../berkeley_DB_trial/src
tiny:~/eclipse_workspaces/jquery/berkeley_DB_trial/src kdvolder$ javac -cp ~/Desktop/downloads/je-3.2.42/lib/je-3.2.42.jar *.java
WordCounter.java:20: cannot access com.sleepycat.persist.model.Entity
bad class file: /Users/kdvolder/Desktop/downloads/je-3.2.42/lib/je-3.2.42.jar(com/sleepycat/persist/model/Entity.class)
class file has wrong version 50.0, should be 49.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import com.sleepycat.persist.model.Entity;
^
1 errorNow here's the kicker, there's nothing on my system Java 1.6 (Mac OS X is still stuck with 1.5 only) so where did those 1.6 .class files come from???
I'm guessing it is the PDL bytecode enhancer that generated them. That's why I get problems when running from the .jar only because that .jar has enhanced .class files (I saw that the ant build script does some class enhancing), and that's why I don't get the problem when I just build using Eclipse (because in the "plain" eclipse build there's no .class enhancement of the Entity.class has happened).
This explanation seems to fit with the facts but it's only a guess.
Would there be a way to fix this problem? If I just take out the enhancement task from the ant script will that mean not getting the benefit of class enhancement? Or do I still get it in the classloader?
Alternatively, could I rig the enhancer to not output 1.6 byte code?Hi Kris,
We have not seen this error. There are no class format changes in Java 1.6 (from 1.5), and our enhancer doesn't change the class version. Plus, the com.sleepycat.persist.model.Entity interface is not enhanced by the build.
The biggest clue is this error:
bad class file: /Users/kdvolder/Desktop/downloads/je-3.2.42/lib/je-3.2.42.jar(com/sleepycat/persist/model/Entity.class)
class file has wrong version 50.0, should be 49.0
I'm wondering if the Java 1.4 javac is being used by accident from your path. The main difference between the DPL classes and other JE classes is that the DPL is compiled for Java 1.5 and the rest of the classes are compiled for Java 1.4.
After getting this error could you please send the output from these commands?:
java -version
javac -version
If the javac version is 1.4, that explains what's happening. I also suggest looking for Java 1.4 in your Eclipse path.
Otherwise, if it helps (although I don't know why it would) you should be able to comment out the use of the <enhancer> task in the build file, as long as you don't try any explicit enhancement yourself. We enhance our built-in proxy classes during the build only to make them compatible with enhanced application classes. I'm not saying that the class enhancer is to blame for this error, but if removing the enhancer helps, please do that as a workaround for now, and that will give us more information about the error.
--mark -
./asadmin gives - java.lang.UnsupportedClassVersionError:
I had facing problem to run the asadmin in my new server, it keep showing me an error as show in the attachment below. Can you please give advise on how to solve this problem as soon as possible, I really need to start my Sun One App server as soon as today. Thank you.
Actually I had migrate from the old server to a new server.
1. I had backup the /ext folder (which contains the sunone info) from the old server, and restore back to the new server.
2. I can start the web server.
3. When try to run the asadmin (/ext/sunone/s1as/asadmin), it give me an error.
root@test1 # ./asadmin
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/iplanet/ias/tools/cli/IasAdminMain (Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
root@test1 #Hi!
I had that exception too, and were because
the jdk version which I used to compile (jdk1.5) were
newer than the jdk version for the Sun App Server (jdk 1.4.2)
I solved it changing the jdk version for the compiler
I hope this can help you, good luck!!
Pilar -
Java.lang.UnsupportedClassVersionError while using java mail api
Hi Everybody ,
I am new comer to this forum , and would like to be an active member.
I am getting this error while trying to use the java mail api to send an email using smtp.
The error is as follows :
Exception in thread "main" java.lang.UnsupportedClassVersionError: javax/mail/Message (Unsupported major.minor version 48.0)
Can Anyone please tell where I am wrong.
I am using the following code
==============================================================
Properties props = new Properties();
props.put("mail.smtp.host", "smtp.abc.com");
// create some properties and get the default Session
Session session = Session.getDefaultInstance(props, null);
session.setDebug(debug);
// create a message
Message msg = new MimeMessage(session);
// set the from and to address
InternetAddress addressFrom = new InternetAddress(from);
msg.setFrom(addressFrom);
InternetAddress[] addressTo = new InternetAddress[recipients.length];
for (int i = 0; i < recipients.length; i++)
addressTo[i] = new InternetAddress(recipients);
msg.setRecipients(Message.RecipientType.TO, addressTo);
// Optional : You can also set your custom headers in the Email if you Want
msg.addHeader("MyHeaderName", "myHeaderValue");
// Setting the Subject and Content Type
msg.setSubject(subject);
msg.setContent(message, "text/plain");
Transport.send(msg);
==============================================================Hi Philip ,
Thanks for the prompt reply , I had installed oracle client services which overid my jdk1.4 installation with jdk1.3 and hence the error. I changed my classpath settings to point to jdk1.4 and it owrked properly.
Thanks once again.
regards,
Rupesh Rajan -
Java.lang.UnsupportedClassVersionError in Import Java Classes
Hi,
I have recently upgraded to Forms Developer 10g (10.1.2.3) and JDeveloper (10.1.3.4). I have recompiled my classes in JDeveloper, and when I go to Import them into my form I get
Exception occurred: java.lang.UnsupportedClassVersionError: classes/eps/palms/pickup/client/ResultSpec (Unsupported major.minor version 49.0).
Has anyone any clues as to how to resolve this?
Thanks
MargaretYes, the new version of JDeveloper must have the compiler default set to 1.4 or 1.5. Enforce it to 1.3 if you want to use the Bean with the JInitiator.
Francois -
Hi,
I have copied the essper application from inactive dc's and changed the visibility property to be derived dynamically depending on the subtype being displayed. After having deployed the essper, I am getting the java.lang.UnsupportedClassVersionError: (com/sap/xss/per/model/mac/Hrxss_Per_Subtype_Info) bad major version at offset=6.
My compiler compliance level is 1.4 and I am deploying the applications using jdk1.4. Could you please assist?
Root Cause:
The initial exception that caused the request to fail, was:
java.lang.UnsupportedClassVersionError: (com/sap/xss/per/model/mac/Hrxss_Per_Subtype_Info) bad major version at offset=6
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:252)
at com.sap.engine.services.deploy.server.ApplicationLoader.defineClassWithInterception(ApplicationLoader.java:168)
at com.sap.engine.services.deploy.server.ApplicationLoader.loadLocalClass(ApplicationLoader.java:140)
at com.sap.engine.frame.core.load.ReferencedLoader.loadRefClass(ReferencedLoader.java:573)
Detailed Exception Chain
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for component com.sap.xss.hr.per.za.family.overview.VcPerFamilyZaOverview. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)
at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:110)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.<init>(DelegatingComponent.java:51)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:382)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:940)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:177)
at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponentInternal(ComponentUsage.java:149)
at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponent(ComponentUsage.java:141)
at com.sap.pcuigp.xssfpm.wd.FPMComponent$ComponentUsageManager.createVACComponentUsage(FPMComponent.java:747)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:563)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:196)
at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:754)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:289)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:220)
at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1289)
at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:356)
at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:549)
at com.sap.portal.pb.PageBuilder.wdDoRefresh(PageBuilder.java:593)
at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:865)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:319)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:684)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(AccessController.java:219)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:80)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:44)
at java.lang.reflect.Constructor.newInstance(Constructor.java:315)
at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:74)
... 57 more
Caused by: java.lang.UnsupportedClassVersionError: (com/sap/xss/per/model/mac/Hrxss_Per_Subtype_Info) bad major version at offset=6
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:252)
at com.sap.engine.services.deploy.server.ApplicationLoader.defineClassWithInterception(ApplicationLoader.java:168)
at com.sap.engine.services.deploy.server.ApplicationLoader.loadLocalClass(ApplicationLoader.java:140)
at com.sap.engine.frame.core.load.ReferencedLoader.loadRefClass(ReferencedLoader.java:573)
at com.sap.engine.core.classload.impl0.LoaderInfo.loadClassByReference(LoaderInfo.java:34)
at com.sap.engine.frame.core.load.ReferencedLoader.loadClassByReference(ReferencedLoader.java:301)
at com.sap.engine.frame.core.load.ResourceLoader.loadClass(ResourceLoader.java:119)
at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:365)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:119)
at com.sap.xss.hr.per.za.family.overview.wdp.InternalVcPerFamilyZaOverview.<init>(InternalVcPerFamilyZaOverview.java:47)
... 62 more
Thanking you in advance.
Kind regards,
Nkonzohi,
you may get some idea from below lines
I changed the compiler complience level to 1.4 and deployed the application using jdk1.4. However the error was still there. When basis team checked the development config for PCUI_GP, it was sitting on SP03 which they then updated and the problem was fixed. Now I am getting a java.lang.UnsupportedClassVersionError on a different wd componet.
Thanks !
seventyros
http://learnsaponline.blogspot.com -
Java.nio package Runtime error java.lang.UnsupportedClassVersionError.
Hi
I am using nio package and create a java program for file locking (FileLocking.java).
Here is the sample
try {
file = new File("C:/acc.txt");
channel = new RandomAccessFile(file, "rw").getChannel();
lock = channel.lock(0, Long.MAX_VALUE, true);
try {
lock = channel.tryLock(0, Long.MAX_VALUE, true);
catch (OverlappingFileLockException e) {
return true;
using wsad 5.1 and jdk1.4 i compiled this program.
While executing i got the following runtime error..
java.lang.UnsupportedClassVersionError: FileLocking (Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:703)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:133)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:319)
at java.net.URLClassLoader.access$400(URLClassLoader.java:92)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:677)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:238)
at java.lang.ClassLoader.loadClass(ClassLoader.java:516)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:441)
at java.lang.ClassLoader.loadClass(ClassLoader.java:448)
Exception in thread "main"
Even if i try to recompile it in command prompt and run, i got the same error.
please suggest me how can i overcome this problem.UnsupportedClassVersionError means that you are trying to execute a class for a newer version of the JVM on an older version of the JVM.
Version 48.0 is for Java 1.4, so you have compiled your class with JDK 1.4.
The computer you are trying to run the class on, has an older version of Java than 1.4 - check it!
Try recompiling your source files with the "-target" switch, for example if you're running on Java 1.3, try compiling with:
javac -target 1.3 ... FileLocking.java -
Java.lang.UnsupportedClassVersionError: - Please do help !
Hi,
I am trying to run the following program. I am using Windows XP and using
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
public class OutFirstProgram {
public static void main(String[] args) {
System.out.println("Krakatoa, EAST of Java??");
I am geting the following error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: OutFirstProgr
am (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(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)
I looked up some of the discussion in the forums they had mentioned try
"javac OutFirstProgram.java - source 1.4 - target 1.4", I tried the same but still in vain.
The code I took it from one of the boook, but when I literally type on the editor and then run the program it works perfectly fine and the complete program is the same, i did not change anaything, but why is there is change. I am not able to undetstand the reason, could somebody throw light on this and also let me know to solve the problem.
PKHi,
Thanks. I tried the following and it worked:
javac -source 1.4 -target - 1.4 OutFirstProgram.java
But, I am compiling the source code using the same machine and same location and also running it from the same location and machine, so how can the change be. Also my java version provides this output, which says they both are same right:
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
I am not clear why is this problem happening.
It would be nice if you could provide me a way by this can be solved permanently not providing source and target and each and every time I run the program.
PK -
JPXImporter failed with java.lang.UnsupportedClassVersionError
Hi
I'm trying to import the substitution VO but encountered the following exception.
Would appreciate if anyone can shed some light on this. Thanks
java oracle.jrad.tools.xml.importer.JPXImporter $HISEM_TOP/mds/posummary.jpx -username apps -password apps -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hmdeverpdb)(PORT=1522))(CONNECT_DATA=(SID=pupg)))"
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/xml/sax/Locator (Unsupported major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
1)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at oracle.jrad.tools.xml.importer.JPXImporter.processJPXFile(JPXImporter
.java:254)
at oracle.jrad.tools.xml.importer.JPXImporter.main(JPXImporter.java:110)
Rgds
Ungwhat is your JDK version ?
This error would come up if you try to load a class compiled in a more recent JDK version than the one in which it is running.
try using a more recent JDK version
Thanks
Tapash -
Junit ,eclipse :java.lang.UnsupportedClassVersionError:
I have java 1.4.2_02,eclipse 3.2 and junit 4.3 versions. when I try to run a test case , encountring the following error can anyone explain the cause of this error
java.lang.UnsupportedClassVersionError: org/eclipse/jdt/internal/junit4/runner/JUnit4TestLoader (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadTestLoaderClass(RemoteTestRunner.java:324)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.createRawTestLoader(RemoteTestRunner.java:314)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.createLoader(RemoteTestRunner.java:309)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.defaultInit(RemoteTestRunner.java:287)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.init(RemoteTestRunner.java:210)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:195)So how can I run junit 3.8.1 with JRE 1.4.2 and eclipse 3.1?
-
Getting java.lang.UnsupportedClassVersionError error
Hi all,
I have implemented a module in struts here i am logging in by using the page login.jsp it contains two textboxes whenever i click on the button the action should go to next page that is display.jsp if the values are eaqual. For this i am checking whether the entered values are available in database or not after that only the action has to move display.jsp page
in struts-config.xml file i wrote
<form-bean name="ProjLoignForm" type="om.ProjLoginFB"/>
<action input="/userlogin.jsp" name="ProjLoignForm" path="/login"
scope="request" type="action.ProjAction" validate="true">
<forward name="success" path="/display.jsp"/>
<forward name="failure" path="/userlogin.jsp"/>
</action>here om and action are packages.
Please help me why it is giving a error like
java.lang.UnsupportedClassVersionError: action/ProjAction (Unsupported major.minor version 49.0Thank you in advance..Hi,
The class requires JDK/JRE 1.5 but you are probably executing with JDK/JRE 1.4
Kaj
Maybe you are looking for
-
Problem with HP C4380 wireless printer and MacBook
Hi - Bought a MacBook (first Mac in many, many years) and then a C4380 so I could have wireless printing. Geek Squad installed printer but it never worked wireless again after they left. Had them back, switched it to static IP, now they are gone and
-
After upgrade to maverick - file sharing ask for permission to open files
after updating to maverick. my files i share with my office pc. can't open the document & ask for permission from the computer or administrator for asstiance. very time i have open up info and push "apply to enclosed items". for to get these to open
-
ADF Faces + hardware device in the client side.( adf swing or adf java fx)
We are using adf+swing in desktop app. We like ADF Faces but we need interations with Hardware device in the client side: scan reader, web cam, bar code reader, finger prints reader - How to do that's in the adf faces web environment ( what about wit
-
To fix my ipad it shows i have wifi but when i go on wifi programs it doesnt work
-
How to install (using usb flash drive) os x snow leopard on 10.5?
i have a version 10.5 (leopard), but i would like to install snow leopard (10.6). i tried using bootable usb flash drive using the "utility drive". However, it did not quite work as i expected. Does anyone know how to use bootable usb flash drive to