Results 1 to 10 of 10
Thread: newbie newbie newbie
- 08-14-2008, 01:29 AM #1
Member
- Join Date
- Aug 2008
- Posts
- 4
- Rep Power
- 0
newbie newbie newbie
i know nothing abt running programs of java
i'v learnt a bit of it in theory but have never ever compiled a single program/class.
also, rite now i dont even have any IDE to work in. (but hopefully i'l get it from a friend of mine)
the issue is: i want to start practicing java from the scratch. i gz that means using the java compiler / machine n console etc..
plz help me wid al the procedures to start with it, as you can see that i dont even know the terminologies too...
(i work on win xp)
so, what al installation files i'l need to install java in my pc?
what wil be the procedure to compile any java code/class (i assume the codes can be edited in notepad too)
*********
final requests:
once i'm well familiar with the above procedure, i plan to shift to a more comfortable platform. plz suggest me which would be better: netbeans or eclipse?
also,, i feel that if i start working on some project, that would be better rather than practicing simple/trivial programs.
finally finally,, can i get some tutorial which will guide me properly during the learning and project development phase?
i would be v v v v v v v happy n grateful to u al if you could help me out even a little bit.. thx agen in advance :oLast edited by krislogy; 08-14-2008 at 01:32 AM.
- 08-14-2008, 03:28 AM #2
- 08-14-2008, 03:36 AM #3
I'd suggest NOT starting with an IDE. Use an editor to create the first few programs and a commandline to execture them.
IDEs hide a lot of things that you need to know to solve problems.
classpath is one of them.
Download the JDK from the sun site, install it,add its bin folder to the PAtH, create a few directories to work in and start writing code.
- 08-14-2008, 09:07 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
But I think Norm a simple IDE is better, that's the Notepad++ with command prompt. Because it's only highlight keywords, it's much better to keep in mind at the beginning.
- 08-14-2008, 10:55 AM #5
I would suggest the same as Eranga .. use notepad++ or better use textpad (textpad.com) . they both have syntax highlighting feature but does no code assist .. this is a better way of learning java .. my opinion ..
- 08-14-2008, 01:59 PM #6
Yes, I agree. I didn't know of notepad++
Keep it simple to start with.
- 08-14-2008, 06:08 PM #7
Member
- Join Date
- Aug 2008
- Posts
- 4
- Rep Power
- 0
hey.. thx, u al.. :)
uh.. ohk i'v downloaded the jdk s/w, installed it too. 'v written a simple hello world program too. how do i now compile it and run the program finally.
dunno the commands... :(
plus abt the "add its bin folder to the PAtH" that norm has written,, can u plz tell me the exact procedures for that too?
coz, i'v tried this: right-click My Computer>Properties>Advanced>Environment Variables and added the variable name/path.. but it doesnt work :(
thx :)
- 08-14-2008, 08:34 PM #8
Can you open a command prompt window, enter: path
and copy the value for PATH= here?
Here's the value from my system:
It should be all on one line.C:\Documents and Settings\Owner>path
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sys tem32\Wbem;C:\Program Files\Java\jdk1.5.0_04\bin;C:\Perl\bin;C:\BatchFil es;C:\Program Files\Support Tools\;C:\
Program Files\QuickTime\QTSystem\
- 08-14-2008, 11:39 PM #9
Member
- Join Date
- Aug 2008
- Posts
- 1
- Rep Power
- 0
For compiling you'll want to use the command: javac
For running the compiled file (.class) you'll use: java
/zv/development/test->javac helloworld.java
/zv/development/test->java helloworld
Hello World
Hope that helps a little. You do have to make sure your system can find javac, so make sure the bin directory from your jdk is in your PATH environment variable, otherwise you'll have to specify the full location everytime.
- 08-15-2008, 12:28 AM #10
Member
- Join Date
- Aug 2008
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
newbie needs help...
By vicky08 in forum New To JavaReplies: 2Last Post: 03-31-2008, 04:26 PM -
Newbie
By CSnoob87 in forum IntroductionsReplies: 2Last Post: 02-18-2008, 08:49 AM -
Newbie in applet, Help me
By barney in forum Java AppletsReplies: 1Last Post: 08-07-2007, 07:14 AM -
Help, java newbie
By baltimore in forum New To JavaReplies: 1Last Post: 08-07-2007, 12:56 AM -
newbie: the app is loaded but i can't see it
By tamayo in forum New To JavaReplies: 1Last Post: 07-21-2007, 08:14 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks