Bug 515501

Summary: The VM specified in eclipse.ini of my AUT is not recognized by AUTsManager.java
Product: [Technology] RCPTT Reporter: Luna Li <luna.li>
Component: IDEAssignee: Project Inbox <rcptt-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bugs.eclipse.org, jkemnade, matthias.mailaender, vasili.gulevich
Version: unspecified   
Target Milestone: 2.5.5   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
the eclipse.ini of my aut. none

Description Luna Li CLA 2017-04-20 06:50:41 EDT
Created attachment 267873 [details]
the eclipse.ini of my aut.

I got the following message from Jenkins console output during the execution of RCPTT tests. It can not recognize the file as a valid Java VM.

--------------------------------------------------------------
[INFO] Trying to use VM from application's ini file: features/com.oracle.jre.linux.gtk.x86_64_1.8.0.60/jre1.8.0_60/bin
[INFO] Unknown file system layout of Java VM from ini file
--------------------------------------------------------------------

I think this is caused by the following part of the function "public String addJvmFromIniFile()".

if (!"bin".equals(file.getParentFile().getName())) {
			System.out
					.println("Unknown file system layout of Java VM from ini file");
			return null;
		}

In my case, "file.getParentFile().getName()" will return the string "jre1.8.0_60".

Currently, i am using the RCPTT 2.0.0. This problem is not critical, but i am curious of the impact of it. Thank you.
Comment 1 Jochen Kemnade CLA 2020-04-15 09:56:17 EDT
AUTsManager also fails if a shared library is set as -vm, see https://wiki.eclipse.org/Equinox_Launcher#Finding_a_VM.2C_Using_JNI_Invocation_or_Executing_Java.
Comment 2 Jochen Kemnade CLA 2023-10-24 10:22:59 EDT
Still an issue in recent 2.5.5 snapshots
Comment 3 Vasili Gulevich CLA 2024-05-07 06:51:25 EDT
This is probably fixed in https://github.com/eclipse/org.eclipse.rcptt/pull/75