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?

swingで作成したプログラムからexe形式で実行できるデスクトップアプリを作成する手順

Last updated at Posted at 2024-12-23

swingで作成した「Hello World」と表示するプログラムをexe形式で出力し、デスクトップアプリを作成する
スクリーンショット 2024-12-23 202011.png

jarファイルを出力する

「ファイル(F)」→「エクスポート(O)」をクリック。
スクリーンショット 2024-12-23 200156.png

「実行可能JARファイル」を選択し、「次へ(N)」をクリック。
スクリーンショット 2024-12-23 200233.png

以下を入力後、「完了(F)」をクリック。
・起動構成(L):mainメソッドがあるクラスを選択する
・エクスポート先(D):jarファイルの出力先を選択する
スクリーンショット 2024-12-23 200322.png

exeファイル(デスクトップアプリ)を作成する

Launch4jを起動し、Output fileとJarを入力後、左上の歯車マークをクリックする。
スクリーンショット 2024-12-23 201409.png

保存先とファイル名を入力し、保存をクリックする。
スクリーンショット 2024-12-23 201537.png

出力したexeファイルをダブルクリックすると、アプリが起動する。
スクリーンショット 2024-12-23 201757.png

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?