運行 .exe 文件生成 bt jar2exe 軟件時出現 java runtime environment not found 錯誤 (Getting java runtime enviroment not found error while running .exe file produced bt jar2exe software)


問題描述

運行 .exe 文件生成 bt jar2exe 軟件時出現 java runtime environment not found 錯誤 (Getting java runtime enviroment not found error while running .exe file produced bt jar2exe software)

我在嘗試運行可執行文件後立即收到以下消息。

找不到 Java 運行時環境。

我已經安裝了 jdk 和jre 並且已經為兩者設置了路徑,並且能夠使用命令提示符運行任何類文件。不幸的是,我沒有使用 Netbeans 或 Eclipse。請人幫忙提前致謝。


參考解法

方法 1:

I found jar2exe website support that include install 32 bit jre for 32 bit OS and 64 bit jre for 64 bit OS. The best solution is reinstall correct version of Java and choose offline installer (since online installer mostly install 32 bit before, but I don't sure is smart enough to detect 32 bit or 64bit now). (I'm sorry that I don't gain enough reputation to post on comments)

方法 2:

You need an appropriate jre installed that is the same with your Jar2Exe (on step 6 during Exe creation). If you're check "Create 64 bits executive" on those step you'll need 64 bit jre, but if you unchecked it then you need 32 bit jre.

(by Shivam Rairk0_cAdi)

參考文件

  1. Getting java runtime enviroment not found error while running .exe file produced bt jar2exe software (CC BY‑SA 2.5/3.0/4.0)

#runtime #java






相關問題

通過java運行的執行程序似乎超時? (Executed programs run through java seem to time out?)

Kesalahan NullPointerException dalam kode Java saya. (NullPointerException errors in my Java code.)

Hentikan proses anak ketika proses induk berhenti (Stop child process when parent process stops)

Атрымаць шлях выканання кансольнага скрыпта Python (Get the runpath of a python console-script)

選擇不包含主要類型 - 錯誤 (Selection does not contain main type - error)

在活動之間使用意圖錯誤 (using intents between activities error)

在運行時使用 Spring 在表中創建新字段 (Create new field into a table with Spring at runtime)

如何添加運行時超時以防止 java.net.SocketTimeoutException? (How do I add a runtime timeout to prevent java.net.SocketTimeoutException?)

我有什麼方法可以覆蓋 Java 中的系統屬性嗎? (Do I have any method to override System Properties in Java?)

如何計算此代碼的時間複雜度? (How can I compute the time complexity of this code?)

運行 .exe 文件生成 bt jar2exe 軟件時出現 java runtime environment not found 錯誤 (Getting java runtime enviroment not found error while running .exe file produced bt jar2exe software)

在運行時在 VBA 中顯示所有變量及其值 (Show all variables and their values in VBA during runtime)







留言討論