0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

javaで作成したexeを実行しようとしたらLaunch4jでエラーが発生する

0
Posted at

事象

exeを実行すると以下のエラーが発生する。
javaはポータブル版(zip版)を入れていてJAVA_HOMEおよびPATHは通している。

This application requires a Java Runtime Environment 1.7.0_09

image.png

原因

どうやら、javaをインストーラでインストールすることで登録されるレジストリ情報を
参照しているらしく、javaのパスが通っていてもLaunch4jが認識してくれないらしい。

バージョンを合わせたらいいのかと思い、
1.7.0_09のJREを準備してみたけど、同じエラーメッセージの一点張りだった。

インストーラでjavaをインストールするしかないのか

exeファイル単体でどうしても動かしたい場合は、
インストーラでのjavaのインストールがいちばん手っ取り早い

exeが起動できればいい

exeが起動できればいいのであれば、いかの方法で対応可能

コマンドプロンプトにて、

java -jar exeファイル名

備忘

jarファイルをexe化した場合、exeファイルを解凍すれば中身が見れる

以上

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?