Bug 515501 - The VM specified in eclipse.ini of my AUT is not recognized by AUTsManager.java
Summary: The VM specified in eclipse.ini of my AUT is not recognized by AUTsManager.java
Status: RESOLVED FIXED
Alias: None
Product: RCPTT
Classification: Technology
Component: IDE (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 2.5.5   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-20 06:50 EDT by Luna Li CLA
Modified: 2024-05-07 20:17 EDT (History)
4 users (show)

See Also:


Attachments
the eclipse.ini of my aut. (311 bytes, application/octet-stream)
2017-04-20 06:50 EDT, Luna Li CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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