Wednesday, 13 June 2012

Build an exe for your Java Program

Build an exe for your Java Program

Instruction

I write this manual because that my Data Structures Course teacher ask us to hand our Java program in as a .exe file, but some of my classmates don't know how to do it.



1. You need to build a .jar file for your program.

  *eclipse
     File > Export > Runnable Jar File > Launch Configuration(choose the program that you just run) > Choose the export path and File name.

  *Fat Jar
     File > Build a Fat Jar > Choose the File name and Main Class > Next > Add a library or Package > Finish(The jar file will export to your workspace/*porject name/*)

2. Then Download JSmooth Here

3. Application > choose "Use an embedded Jar" > Use the Jar File that you just export > Choose Main Class

4. Executable > choose the Binary and "File Name.exe"

5. Skeleton > if you have windows than choose "Windowed Wrapper", you choose "Console Wrapper"

6. Click the Gear Icon on the top -> choose the path that you tend to export

7. Done

Related Posts:

  • Mac OS X 奇怪的“.DS_store” Introduction 現在的資訊時代裡USB是非常普及的,成本較低,桌上型電腦亦或是隨身攜帶的筆記型電腦,都一定有USB的Port。       不同的系統中,我們也常常透過USB的隨身碟、行動碟來交換資料,當你把你的USB儲存裝置連接你的Mac OS X… Read More
  • OS X Dock for Windows  在Windows打造OS X Dock Preface 在Mac上的OS系統,擁有令人羨慕獨特的Dock,特別是搭載OS X的Mac不親民,如果要裝個虛擬機器在自己的Windows上,就要有心理準備去面對冗長的教學文,跑起來也不一定順暢。難道就沒有個簡單又便宜行事的方法?其實是… Read More
  • Windows OS CPU & RAM 監控 Preface 要觀察一個作業系統的穩定與否,最重要的兩個因素莫過於CPU還有記憶體(RAM)了,不僅僅是穩定度,也決定了,使用的流暢性。監控的目的在於發現問題的癥結點,才能夠了解到,我的系統是處於一個什麼樣的狀態。 How 現在我們要透過兩個軟體來做監控,分別監控CPU還有RA… Read More
  • Build an exe for your Java Program Build an exe for your Java Program Instruction I write this manual because that my Data Structures Course teacher ask us to hand our Java pro… Read More
  • How to Fix your DLL Error for on Windows You may not face this problem which when you start up the Windows then it pop up an  Error message "xxxxx.dll is missing!" but it is necessa… Read More

0 comments:

Post a Comment