1. 程式人生 > >Version xx of the JVM is not suitable for this product

Version xx of the JVM is not suitable for this product

在官網下載了linux eclipse 4.5版本,檔案為eclipse-cpp-mars-R-linux-gtk-x86_64.tar.gz

執行eclipse時出現類似下面提示:

 Version 1.6.0_22 of the JVM is not suitable for this product.

 Version:1.7.0or greater is required

下載jre,檔案為jre-8u60-linux-x64.rpm

執行sudo rpm -ihv jre-8u60-linux-x64.rpm命令安裝jre,

執行java –version檢視版本

java version "1.8.0_60"

再執行eclipse,解決該問題。