2016-01-26 43 views
0

我試圖根據report development guide如何安裝BIRT報表設計器在Eclipse 3.7.1

我已經完成了大部分跟隨上安裝特定的報表設計工具的參考,但僅有1件事不會成功。

根據18頁我需要在目標更改爲

C:\birt371\eclipse\eclipse.exe -vm 「C:\Program Files\IBM\Java60\jre\bin\java.exe」 –vmargs –Xmx512m 

,但因爲我的JRE安裝在

C:\Program Files\Java\jre1.8.0_71\bin\java.exe 

我改成了

C:\birt371\eclipse\eclipse.exe -vm 「C:\Program Files\Java\jre1.8.0_71\bin\java.exe」 –vmargs –Xmx512m 

這給了我錯誤:

a java runtime environment (JRE) or Java Development kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations "C:\Program

如果我離開了目標

-vm 「C:\Program Files\Java\jre1.8.0_71\bin\java.exe」 –vmargs –Xmx512m 

所以我的目標變得

C:\birt371\eclipse\eclipse.exe 

的Eclipse正常啓動,沒有錯誤。

問題:

我無法導入我的報告,我想知道,如果配置的最後和平有什麼關係呢。

問題:

如何使用配置要求?

說明: 以前的java版本在java(控制面板)中沒有安全性,我的問題可能與此有關嗎?

+2

您實際使用哪種引號?在您的示例調用中,您似乎使用「和」,並且在錯誤消息中,它是「。 –

+0

這也是我的錯誤,也許它不會讀取完整路徑(程序未完成指定的完整路徑) – davejal

回答

1

-vm參數會強制要使用的計算機上的特定Java安裝。如果您安裝了多個Java,或者Eclipse無法找到Java,那麼這將特別有用。

如果只安裝了一個Java和Eclipse的發現它好了,可以只需啓動不-vm說法。

Eclipse help-vm

The location of Java Runtime Environment (JRE) to use to run the Eclipse platform. If not specified, the launcher will attempt to find a JRE. It will first look for a directory called jre as a sibling of the Eclipse executable, and then look on the operating system path. Relative paths are interpreted relative to the directory that eclipse was started from.

如果你需要得到-vm工作,推薦的方法是通過編輯eclipse.ini,並把-vm一個線和完整路徑VM下一行。請參閱eclipse.ini entry on the Eclipse Wiki

+0

似乎已經工作,但即使ini文件沒有改變,它已經執行了程序,所以有什麼區別? – davejal

+0

如果您在ini文件或命令行中沒有-vm,那麼eclipse通常只會將您的PATH關閉。 –