My Sokoban Source Code Plus How to Convert java Application into Windows Executable File
Tuesday, 26 January 2010 11:19
Kategori : J2SE | 11 | 757 views

  Hello... at this time I will show you step by step, screen by screen how to convert java SE application to Windows Executable File..
this tutorial is part2 from "'Convert JAR Java to executable file. '. You must read that first before you read this..

Enjoy this song while your read this.. just cozy... ^_^.. I like this song.. ^_^
Bonjovi - Always [Slow version Accoustic]

At first you must download this X-FILEdownload sokoban project source code + Exe4J Project File[X-FILE]
in that rar file include my sokoban source code and exe4j project file.
you can open the project file to view detail configuration.

  Okay.. let's start...
This is screen "Project Type" configuration. choose 'JAR in EXE' mode

  This is screen "Application Info" configuration. Just set your name of your application, and browse your output directory. (I'm setting that in my project source code folder).

  This is screen "Executable Info" configuration.

  This is screen "Java Invocation Info" configuration. in this part, you must Archive all your project file class path to ZIP file or JAR file. I use WinZip Application to make that. view 'sokoban.zip' in X-FILE for detail file in zip archive.
after that. you 'Add Class path' with symbol '+' and choose 'Archive'. view detail in screen capture.

  This is screen "JRE" configuration.

  This is screen "Splash Screen" configuration.

  It's Done. Compile that with click 'Compile Executable' Text in left menu.
Selamat Mencoba... Hope Useful... Hope can work.. 99% Guarantee
.

Best Regards,


Yupi Sugianto, S.Kom



Comments..

Yupi
16 April 2010 22:53:03
untuk play memasukan sound anda bisa ikuti petunjuk berikut.
http://www.javazoom.net/javalayer/javalayer.html
atau
http://forums.sun.com
/thread.jspa?threadID=5223116
atau
http://www.discussweb.com/java-programming
/5501-play-mp3-file-using-java-application.html

hope usefull ^_^
jack
13 April 2010 20:16:43
bos saya mau tanya, contoh buat tambahin suara yang formatnya mp3 di game ini memakai source codenya apa?
Yupi
03 February 2010 19:10:34
1 = block
0 = land
2 = key
3 = padlocks
I use 10 x 10 matrix
aira
03 February 2010 15:43:58
oke kak dah bisa di akalin.....

oia, kalo logika ngebaca map ama peletakan image pada lv1 tu gmn ya???
jadi kan kalo da y ty aira juga bisa ngajarin...
heheheheheh

mohon di bantu ya kak....
Yupi
02 February 2010 16:17:21
hmm.. di kk gak gitu lho.. coba kamu download ulang yang ini. check this out..

yang itu kayaknya kk uda tes delete semua user trus masukin lagi satu satu sampe 5 user. en running well.. dicoba download yang ini d..
aira
02 February 2010 10:11:19
oo... gitu ta kak?
tapi aira ga ngapus println nya
tapi kok selalu abis isi nama user, isi user.sav yang tadinya 1kb jadi 0kb setelah aira melakukan penambahan user.. tapi untuk yang k2 kali aira coba baru mau ke save...

oia kak, aira c smalem dapet cara ngakalinnya... jadi yang
for(int i=0;i di ganti jadi
for(int i=1;i nah kalo kaya gini bisa ke save..

TAPI tetep aja ada masalah baru....
data yang ke simpan cuma bisa 1 alias gabisa mpe 2 data ato lebih..
hiks..hiks...

penasaran nih...
gimana cara kerjanya ya kak???

bantuin ya kak.... :D
Yupi
02 February 2010 00:19:59
@aira: itu sudah benar disitu aira.. kalau printlnnya dihapus maka nanti tiap data di file user.sav akan tersimpan ke samping trus.. nah akibatnya fatal ketika file tersebut ingin dibaca ulang... WHY??? kamu lihat line 1006-1008. tertulis :
======================

while((line=buf.readLine())!=null) {
peoplesTemp.add(line);
}

artinya : dia membaca tiap line dari user.sav dan disimpan di vector 'peoplesTemp'. lalu ketika linenya berisi kosong maka dia keluar dari looping.

nah jikalau tidak ditulis println() maka tidak akan terbaca tiap linenya.. dan kk sengaja berikan line kosong di akhir data.. yang supaya mengakali hal ini.. ^_^
=================
Hope Useful ^_^
aira
01 February 2010 23:33:08
makasih mas,, errornya dah bisa di akalin.. hehehehhehehe :D

nah kalo println() nya di letakkan di "penyimpanan user save otomatis" ya yang di btnUserSubmit?? ato dm?n

p2.print(split2[0]+";");
p2.print(split2[1]+";");
p2.print(split2[2]+";");
p2.print(split2[3]+";");
p2.print(split2[4]);
p2.println(); yang ini ya?

sama

p2.print(tempNamaUser+";");
p2.print(tempGenderUser+";");
p2.print(tempMonth+";");
p2.print(tempDay+";");
p2.print(tempYear);
p2.println(); // yang ini ya?
p2.close();
peoplesTemp.add(tempNamaUser+";"+tempGenderUser+";"+tempMonth+";" +tempDay+ ";"+tempYear);

atau di mana di letakkan mas??
mr. Y
01 February 2010 20:58:43
kalo pake file project yang terlampir muncul gitu errornya.. hmm.. di saya tidak lho..
untuk bug itu.. harap di maklumi.. kamu tracing aja.. mungkin bisa diperbaharui... untuk code java ini memang sangat barbar.. waktu itu buat asal jadi.. untuk windowing saja saya gunakan JFrame di atas JFrame.. seharusnya digunakan JInternalFrame.. atau JWindow..
untuk user.sav dan hiscore.sav kamu harus berikan 1 println kosong supaya bisa run.. ^_^.. jadi selamat belajar..
aira
01 February 2010 18:11:56
file ini bisa jalan kalo yang map.txt ma user.sav dan hiscore.sav di sertakan tapi knp waktu mau registrasi user baru bisa trus waktu masuk new game malah "there are no user" jadi file user yang di user.savnya langsung kosong.. itu kenapa ya mas??
aira
01 February 2010 18:08:56
mas, aku dah coba tapi waktu mo coba malah erro dapet message kaya gini...

error during start up
yang isisnya :
java.lang.ClassNotFoundException: sokoban
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)

 Sponsor Link 

Add Comment

Name (required)
Mail (will not be published) (required)
Website

CAPTCHA Image
Security Code (required) Reload Image

Visitor
There were 15554 user(s) here
Your IP : 38.107.191.94
Your Browser : Unknown
Country : UNITED STATES
~~~~~~~~
Latest Visitor
10thSep10 02:06| UNITED STATES
10thSep10 01:51| UNITED STATES
10thSep10 01:49| INDONESIA
10thSep10 01:48| UNITED STATES
10thSep10 01:47| UNITED STATES
10thSep10 01:35| UNITED STATES
10thSep10 01:35| UNITED STATES
10thSep10 01:34| UNITED STATES
10thSep10 01:34| UNITED STATES
Search Subject |Auto Complete

Links