The Java Beginners Discussion And A Like - PINOYDEN


Go Back   PINOYDEN > PC Zone > Programming

Welcome to PinoyDen Forums.

You are currently browsing our forum as a guest, please consider registering to get full access to all of our forum features, download free games, get help for your pc and cellphone problems and learn new mobile tricks like how to browse the internet using your cellphone for free. All that and more, so what are you waiting for, JOIN us now!!!! Click here to register...
 Topic: The Java Beginners Discussion And A Like  (Read 2580 times)
0 Members and 1 Guest are viewing this topic.
Pages: [1] 2 3 4 ... 6   Go Down
06-05-12 07:49 AM
  • Jr. Member
  • **
  • Male Offline
 
Posts: 67
Thank You: 26
Reputation: 0
Funfun has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Hi guys I made this thread para makatulong sa mga gustong matuto mag program gamit ang Java pati narin sa mga nakapag simula na. Hindi po ako super magaling pero I am willing to help others who really needs help. Pwede natin pag usapan dito kahit anong topic related sa minamahal nating Java. I will also provide here some tutorials para sa mga newbie at pwede din po kaya gumawa.

My Beginners Java Tutorials In This Thread. 

Reply #1
06-05-12 01:08 PM
  • Full Member
  • ***
  • Male Offline
 
Posts: 750
Thank You: 119
Reputation: 1
Pyrexia has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
wow.... nice.. maganda to para sa mga magsisimula palang sa java.. pasubcribe dito huhh?
Reply #2
06-05-12 01:16 PM
  • Jr. Member
  • **
  • Male Offline
 
Posts: 67
Thank You: 26
Reputation: 0
Funfun has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Quote:
Originally Posted by : Pyrexia on 06-05-12 01:08 PM
wow.... nice.. maganda to para sa mga magsisimula palang sa java.. pasubcribe dito huhh?
Sige po sir subscribe lang po kayo. Ginagawa ko na po ang first tutorial ngayon. Sana makatulong ito kahit papano. Kasi medyo busy din kasi ako.
Reply #3
06-05-12 01:20 PM
  • Jr. Member
  • **
  • Male Offline
 
Posts: 67
Thank You: 26
Reputation: 0
Funfun has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Installing JDK in Windows XP

Hello guys this is my first tutorial. First of all you need a JDK to follow this tutorial. You can download it here:
Windows 32 bit installer

Pagkatapos ninyo po ma download pwede na po tayo ngayon mag simula. First install po natin ang JDK. Sundan ninyo lamang po ang images sa ibaba.







Yan tapos na po tayo mag install. Ang kaylangan naman natin gawin ay mag setup ng environment variable para pwede tayo mag compile at mag run ng program natin gamit ang console ng windows (cmd.exe).

Una punta po kayo sa directory na ito, C:\Program Files\Java\jdk1.7.0_03. Note po na iyong binigay kung path ay pwedeng hindi masyado kaparehas ng sa inyo dahil baka updated po iyong version ng Java ninyo. So baka imbes na _03 ang dulo baka _04 o kaya _05 etc... Then copy ninyo po iyong path.


Tapos punta na po kayo sa desktop then right click ninyo po iyong my computer icon tapos choose ninyo po iyong properties.


Then ito lalabas.


Click ninyo po iyong advance tab para ganito na po.


Tapos click ninyo po iyong environment variables button.


Then ganito na po tapos hanapin at highlight ninyo po iyong path variable.


Habang naka highlight po iyong path variable click ninyo po iyong edit button.


Then doon sa window na lumabas tingnan ninyo po kung may semicolon sa pinaka dulo. Kapag wala po lagyan ninyo kung meron naman na wag na ninyo lagyan.


Then sa pinaka dulo ulit, paste ninyo po iyong path na kinopya ninyo kanina. Then click ninyo na lang po iyong mga ok button para tapos na po.


O iyan naka install na po ang java at pwede na po tayong mag compile at mag run ng program natin gamit ang cmd.exe. So ang susunod po nating gagawin ay e testing kung gumagana ng mabuti iyong ininstall natin.

Una e open ninyo po iyong command prompt. WINDOWS LOGO + R then type cmd


Then type ninyo po eto: java -version
Kapag katulad ng nasa image sa baba iyong lumabas then successful iyong pag install ninyo ng Java.


Next testing po natin kung pwede po tayong mag compile tsaka mag run ng program gamit ang command prompt.

Una copy ninyo po ito sa notepad then save ninyo po as "Hello.java" without the double quotes tapos make sure na kapag sinave ninyo po yan ay "All Files" po iyong "save as type" sa notepad. Also save ninyo po yan kung saan location naka open iyong command prompt ninyo in my case sa C:\> naka open iyong command prompt ko so doon ko din dapat e save iyong "Hello.java".





Yan meron na tayong source code ngayong kaylangan naman nating e compile yan para maging Java program na. Balik po tayo doon sa naka open na command prompt tapos type po natin ito: javac Hello.java
Then press ninyo po iyong ENTER sa keyboard.


Kapag ganito po ang nakita ninyo ibig sabihin po successful iyong pag compile ninyo.


Then ang pinaka last po ay e run na po iyong program na ginawa ninyo. Type ninyo lang po ito: java Hello
Then press ninyo ulit iyong ENTER sa keyboard.


Kapag ganito ang lumabas ibig sabihin successful ang unang program na ginawa ninyo.



Oh yan tapos na po. Maraming salamat sa pagbasa.
Reply #4
06-05-12 01:45 PM
  • Full Member
  • ***
  • Male Offline
 
Posts: 750
Thank You: 119
Reputation: 1
Pyrexia has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
ayun ohh... sige na exited na ko sa first tutorial..
Reply #5
06-05-12 02:06 PM
  • Jr. Member
  • **
  • Male Offline
 
Posts: 67
Thank You: 26
Reputation: 0
Funfun has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
2nd tut coming soon...   
Reply #6
06-05-12 02:14 PM
  • Full Member
  • ***
  • Male Offline
 
Posts: 1003
Thank You: 82
Reputation: 0
Dantz has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
sana textpod nalang ginamit mo.
Reply #7
06-05-12 02:23 PM
  • Full Member
  • ***
  • Male Offline
 
Posts: 750
Thank You: 119
Reputation: 1
Pyrexia has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Ano naman yung textpod
Reply #8
06-05-12 05:15 PM
  • Jr. Member
  • **
  • Male Offline
 
Posts: 150
Thank You: 6
Reputation: 1
Snoopy has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
otor tut ka nga po, yung matinding gui?! hehe
Reply #9
06-05-12 06:28 PM
  • Full Member
  • ***
  • Male Offline
 
Posts: 750
Thank You: 119
Reputation: 1
Pyrexia has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Wag muna sa matindi, basic muna dapat
Reply #10
06-05-12 06:33 PM
  • Jr. Member
  • **
  • Male Offline
 
Posts: 67
Thank You: 26
Reputation: 0
Funfun has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Quote:
Originally Posted by : Dantz on 06-05-12 02:14 PM
sana textpod nalang ginamit mo.
Ganun po ba sir di pa kasi ako naka gamit nyan. Hayaan nyo sa susunod subukan ko din.
Reply #11
06-07-12 08:02 AM
  • Jr. Member
  • **
  • Male Offline
 
Posts: 67
Thank You: 26
Reputation: 0
Funfun has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Making A Runnable Jar

Hi guys! In this lesson we will study how to make a runnable jar file. First of all, ano nga ba yang runnable jar file na yan. Meron bang ma e dudulot na maganda yan para sa atin. Opo meron po dahil yan ang parang .exe sa Java. Kapag binuksan nyo po yan lalabas na po iyong program nyo ng kusa.

First, download this program small program then extract the content to c:\
source.2.1.zip

Pagkatapos nyo po ma extract sunod po natin gagawin ay e run iyong program bale na compile na po yan. Note kung di nyo pa alam mag compile at mag run refer po kayo sa first lesson ko dito.  type nyo lang po ito sa command prompt then hit ENTER para mag run ang program.

Code: [Select]
java HelloGUI
Pag ganito po ang lumabas ibig sabihin na run nyo po ng mabuti ang program.


Ngayon kung hindi nyo pa po napapansin kung gusto natin e run ulit iyong program kaylangan natin pa ulit ulit na mag type sa command prompt. So para di na tayo mag type e lagay na lang natin sa runnable jar iyong program.

Gagamit po tayo ng jar command at eto ang syntax nyan.

Code: [Select]
jar cvef <entry point> <jar filename> <class>Note case sensitive po yan at wag ninyong babaguhin, Kung maliit na letra maliit talaga at kung malaki naman ay malaki talaga.

Bale may papalitan po tayo jan.
<entry point> - pangalan ng public class
<jar filename> - salitang gusto mo ipangalan sa jar file na gagawin mo. for example HelloGUI
<class> - lahat na class na kailangan e silid sa jar para gumana ang program.

Now tingnan nyo po itong image na ito.


kita nyo iyong kasunod na salita ng public class. Di ba HelloGUI po iyon. Yan po ang ipapalit natin sa <entry point>. In short kung ano pong salita ang kasunod ng public class yan po ang ilalagay natin. Note case sensitive po yan kung pano e sinulat ganun nyo din dapat e sulat. So ganito na po ang magiging hitsura ng command natin.

Code: [Select]
jar cvef HelloGUI <jar filename> <class>
Next palitan naman po natin iyong <jar filename> bale palitan nyo lang po yan ng salita na gusto nyo maging filename ng jar nyo. In this example we will use "HelloGUI.jar" without the double quotes. Note dapat po may .jar sa dulo.
Code: [Select]
jar cvef HelloGUI HelloGUI.jar <class>
Pagkatapos po natin palitan ang <jar filename> sunod naman po iyong <class>. Now punta po kayo sa c:\. Bale hanapin nyo iyong file na may extension name na .class. Kung ano po ang name nyan yan po ang ipapalit natin.


So ganito na po ang final syntax.
Code: [Select]
jar cvef HelloGUI HelloGUI.jar HelloGUI.class
Yan pwede na po tayo gumawa ng runnable jar. Kopyahin nyo po yan at ilagay sa command prompt then hit ENTER key.



Yan nakagawa na po tayo ng jar file tingnan po natin sa c:\ para makita natin.


Now double click nyo lang po yan para mag run na ng kusa ang program natin.


Tapos na po. Maraming salamat sa pagbasa at sana ay may natutunan po kayo.
Reply #12
06-07-12 09:59 AM
  • Full Member
  • ***
  • Male Offline
 
Posts: 3637
Thank You: 356
Reputation: 2
Leima22 has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
wow! Parekoy. Eto sayo hmm ganyan lang pala gumawa ng jar file edi pwede nang gumawa ng mga games   .hmm sarap mag programming.

paattach naman nung JDK mo?

edit:

ok to . Meron na akong jdk7u3. More tutorial naman. Author.

Reply #13
06-08-12 04:25 PM
  • Jr. Member
  • **
  • Male Offline
 
Posts: 67
Thank You: 26
Reputation: 0
Funfun has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
yes sir, more tutorial coming up. pero step by step lang muna tayo wag muna mahirap.
Reply #14
06-08-12 06:04 PM
  • Full Member
  • ***
  • Male Offline
 
Posts: 750
Thank You: 119
Reputation: 1
Pyrexia has no influence.barely matters.is working their way up.might someday be someone...is on the verge of being accepted.is a rising star!has a powerful will.is a force to reckon with.has great potential!has an aura about them.is leading the good life!is awe-inspiring!
Interesting isasabay ko na din sa development ko sa php to..
Pages: [1] 2 3 4 ... 6   Go Up
 



All dates are GMT+8:00. The date now is 05-20-13 04:15 AM
WWW.PINOYDEN.COM.PH does not store any files on it's server, we are just indexing other sites contents!
WWW.PINOYDEN.COM.PH [Ang Tambayan ng pinoy!] © copyright 2008-2009 All Rights Reserved.
Contents published on www.PinoyDen.com.ph requires permission for reprint.

Page created in 0.398 seconds with 22 queries.