Community
Participate
Working Groups
I just downloaded all-in-one package to use TPTP at my java project's test automation module. I create simple Hello world program. But I encounter below error during profiling. "unsupported major.minor version 50.0" Installed jre is "Java(TM) SE Runtime Environment (build 1.6.0_20-b02)". Complier & Compilation level also 1.6. What happend?
Mike, could you please take a look to see if we can reproduce the problem using TPTP 4.6.2 as reported? Please also try the latest TPTP 4.7 driver?
It's not entirely clear the specifics of what you did. Here is what I did: 1. Download TPTP 4.6.2 all-in-one for Windows and extract 2. Launch eclipse.exe from the extracted package 3. For me the default selected in the "JRE" section was "Use execution environment JRE: JavaSE-1.6"; I left it unchanged. 4. I then created a simple 'hello world' type class and profiled it. It ran fine for me. I suspect Eclipse is picking up a JRE prior to 1.6 in your environment. Please check the following: Window > Preferences > Agent Controller > Java executable used by IAC This is the JVM that will be used to launch your program when profiling. If the value indicated here is a path to an older JVM this explains the problem. Change the workbench default JRE (under Java > Installed JREs) to one that matches the level of Java you are compiling for. If this does not help can you provide more details as to the steps you are taking?
I thought of another possibility: If you have another Agent Controller running on your system that is configured with an older JVM, then the internal AC will not be used. You can check by stopping all instances of Eclipse and check Task Manager for a process named "ACServer.exe". I am going to close this for now, please re-open with requested info if you are still having trouble.
Created attachment 170902 [details] Agent Controller JRE Setting
Created attachment 170903 [details] Project JRE Setting
Hello, Mike. Thanks for your info. But i still encounter this problem. Yesterday, I tried same way at another my notebook. It is no problem. (Only at this workstation- lenovo T61, i encounter this problem.) Below is my scenario. 0. My workstation have only one JRE. (i removed the others) java version "1.6.0_20" Java(TM) SE Runtime Environment (build 1.6.0_20-b02) Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing) 1. Download TPTP 4.6.2(tptp.runtime.allInOne.win32.win32.x86-TPTP-4.6.2.zip) 2. launch eclipse from the extraced package. 3. I also didn't change jre setting. 4. Make Hello World program and run it. Result: Java 클래스를 로드할 수 없습니다. java.lang.UnsupportedClassVersionError: HelloWorld (Unsupported major.minor version 50.0)
Let's dig a little deeper: - First, can you confirm that you are able to run this application in regular Run mode with no trouble? - Second, please confirm you are launching the program by: Right-click on .java file > Profile as > Java application - On the problem machine, open a command prompt, type 'set' and then press <enter> and copy the output into a text file and attach it to the bug. - Please attach serviceconfig.xml and servicelog.log from: <workspace>\.metadata\.plugins\org.eclipse.tptp.platform.iac.administrator\config - Finally, I'd like to see some details of the ACServer process: 1. Please download Process Explorer (http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx) 2. Reproduce the problem, and then leave Eclipse running 3. Open Process Explorer and find ACServer.exe in the process list 4. Right-click ACServer.exe and select Properties... 5. On the Image tab verify the Path to the ACServer.exe is somewhere in your Eclipse install 6. Switch to the Environment tab and paste the value of JAVA_PATH into the bug.
Since this is not a general problem and most likely some unique configuration problem with the user, deferring to TPTP 4.7.1 to continue the discussion as we are now shuting down for TPTP 4.7.
Any updates on the request info? I am going to close this for now. Again please re-open when you have obtained the requested info.
This defect had been resolved as WORKSFORME for more than 1 month. Closing this on the reporter's behalf. Please verify with the latest TPTP 4.7.2 driver and re-open if this is still a problem. TPTP 4.7.2 driver can be downloaded from: http://www.eclipse.org/tptp/home/downloads/?ver=4.7.2
Closing in TPTP 4.7.2 release.