Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315334

Summary: unsupported major.minor version 50.0
Product: z_Archived Reporter: opener.park <opener.park>
Component: TPTPAssignee: Mike Reid <mikereid>
Status: CLOSED WORKSFORME QA Contact: Kathy Chan <kathy>
Severity: normal    
Priority: P2 CC: mikereid
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: closed472
Attachments:
Description Flags
Agent Controller JRE Setting
none
Project JRE Setting none

Description opener.park CLA 2010-06-01 22:34:01 EDT
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?
Comment 1 Kathy Chan CLA 2010-06-02 09:13:27 EDT
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?
Comment 2 Mike Reid CLA 2010-06-02 09:37:13 EDT
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?
Comment 3 Mike Reid CLA 2010-06-02 10:26:05 EDT
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.
Comment 4 opener.park CLA 2010-06-02 21:13:38 EDT
Created attachment 170902 [details]
Agent Controller JRE Setting
Comment 5 opener.park CLA 2010-06-02 21:18:50 EDT
Created attachment 170903 [details]
Project JRE Setting
Comment 6 opener.park CLA 2010-06-02 21:23:37 EDT
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)
Comment 7 Mike Reid CLA 2010-06-03 11:30:08 EDT
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.
Comment 8 Kathy Chan CLA 2010-06-03 15:23:38 EDT
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.
Comment 9 Mike Reid CLA 2010-06-10 09:08:21 EDT
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.
Comment 10 Kathy Chan CLA 2011-02-11 13:34:41 EST
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
Comment 11 Kathy Chan CLA 2011-02-11 13:57:35 EST
Closing in TPTP 4.7.2 release.