Write and run java program using Sublime Text 2

Sublime Text 2 is one of my Favorite text editor for coding after Geany. This is an awesome and light weight editor. What I loved to share is how to setting ST2 then you can use it to compile and run java programs directly.

Follow these steps below to prove it 🙂

  1. Firstly, make sure that you already have jdk installed. Or you can download here.
  2. After installing then set the PATH variable on Environment Variables (Right click on My Computer > Properties > Advanced system settings > Environment Variables).
  3. Then go to System variables > Path > add jdk bin directory path. On my laptop is C:\Program Files\Java\jdk1.7.0_17\bin
  4. Create a bash shell script file runJava.bat :runJava
  5. Next step is setting this bash shell script in the build system of ST2. Open ST2 > Preferences > Browse Packages > go to Java Folder > Open JavaC.sublime-build and replace this line “cmd”: [“javac”, “$file”], with this “cmd”: [“runJava.bat”, “$file”], then save.
    JavaC
  6. Done. Then open your java program using ST2 or write a simple program and click Tools > Build or simplify you can press Ctrl+B.
    TestJavac

Write and run java program using Sublime Text 2

How I Know My Wife Married the “Wrong” Person


CROSS-SHAPED STUFF

wedding 2
Photo Credit: Suni Danielle Photography

Today my wife Lindsay and I celebrate our two year anniversary. Two years ago, we tied the knot and took the plunge. Two years ago, the cutest girl in Indiana was taken off the market! Two years ago, we launched the beginning of the rest of our lives. Two years ago…

And after two years, there’s no hiding behind the dinner-and-a-movie façade of dating life any longer. I can’t buy enough flowers to conceal it. I can’t open enough doors. I can’t say enough “I love you’s.” She knows (and painfully, so do I) that she married the wrong person.

View original post 1,068 more words

Hapus username aneh di folder/file properties


Ada yang pernah ngalamin di properties folder atau file tiba-tiba muncul user name S-1-5-21-1935655697-448539723-682003330-1003 gak? Sesuai pengalaman edit permission folder atau file, pertama langsung ane delete tuh username alay. Bisa hilang sih, tapi efeknya folder atau file gak bisa di akses dan gak bisa dihapus. Apa-apaan ini !@*&$#!?

Ini gan penampakannya :

annoying

Mungkin username bisa bervariasi ( S-1-5-xxx… atau lainnya), kebetulan di laptop ane seperti itu. Setelah coba2 akhirnya berhasil juga, caranya gini gan :

  1. Klik kanan folder/file pilih properties.
  2. Buka tab security lalu klik advanced.
  3. Buka tab Effective Permissions lalu klik select, ketik “users” tanpa tanda kutip dan klik Check Names, OK.
  4. Buka tab Owner ganti dengan Administrators, centang Replace owner on subcontainers and objects, OK.
  5. Buka tab Permissions lalu centang Replace permissions, Apply dan klik Yes.
  6. Tunggu sebentar sampai proses selesai lalu klik OK.
  7. Klik OK dan ulangi dari langkah 1 jika masih ada folder atau file yang terjangkit.

Note: Kalau banyak file atau folder yang disusupi username alay tadi, lebih baik langsung edit permissions-nya dari parent folder atau folder utama biar lebih cepat.

Semoga membantu.