0
我已經使用javafx構建了一個應用程序。它被開發用於觸摸屏。在我的虛擬機我指定了以下參數:如何使用javafx鍵盤部署應用程序?
-Dcom.sun.javafx.isEmbedded=true -Dcom.sun.javafx.touch=true -Dcom.sun.javafx.virtualKeyboard=javafx
有了這個論點時,我選擇某種數據輸入的JavaFX的數字鍵盤彈出。
現在我想使用maven部署具有相同參數的應用程序。我怎樣才能做到這一點?
我試着用下面的POM定義(由ItachiUchia的建議),但沒有運氣:
<plugin>
<groupId>com.zenjava</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>8.1.2</version>
<configuration>
<mainClass>com.mycompany.app_name.Main</mainClass>
<jvmArgs>
<argument>-Dcom.sun.javafx.isEmbedded=true</argument>
<argument>-Dcom.sun.javafx.touch=true</argument>
<argument>-Dcom.sun.javafx.virtualKeyboard=javafx</argument>
</jvmArgs>
</configuration>
</plugin>
謝謝
我試過你的建議,但沒有運氣。我已更新問題以反映您的答案。我做錯了什麼嗎? – belyid 2015-02-23 14:10:38
你可以試試' -Dcom.sun.javafx.isEmbedded = true '而不是' -Dcom.sun.javafx.isEmbedded = true ' –
ItachiUchiha
2015-02-23 14:16:56
已經嘗試過,並且不起作用。 – belyid 2015-02-23 14:22:19