Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

Help on the necessary tools to start programming in Java

Thread view: 
JavaScriptJon - 13 Dec 2005 13:48 GMT
Hello all,

I am very keen to start learning a new programming language and have
chosen Java as it is more productive than the previous language i have
learnt.

I have chosen a book to start learning from but the CD Rom is missing
which contains the necessary tools and libraries etc to install for me
to begin.

I have already installed the following from the main java website:

Java(TM) 2 Platform Standard Edition
Runtime Environment
Version 5.0

I have installed this program and then tried to compile a program in
Command Prompt after saving a file as myProgram.java.

I used the following line to start....

vi myProgram.java

I found this didnt do a thing.

The question i am asking is, do i have all the necessary tools to start
and how do i actually compile a program.

Thanks for the time taken in reading this article.

Jonathan
BartCr - 13 Dec 2005 14:11 GMT
Start here:

http://java.sun.com/docs/books/tutorial/reallybigindex.html#getStarted
Francesco Devittori - 13 Dec 2005 14:15 GMT
> Hello all,
>
[quoted text clipped - 27 lines]
>
> Jonathan

'vi myProgram.java' launches the vi editor. You can use any editor you
like. If you are on windows notepad, on linux use emacs or wathever (vi
is maybe not the easiest one).
to compile your program: javac myProgram.java
to run your program: java myProgram
Viator - 13 Dec 2005 15:08 GMT
In addition to what others have said you can install Eclipse IDE which
is free. Although, it will take some time to learn it fully it is
better to start early.

Amit :-)
ricky.clarkson@gmail.com - 13 Dec 2005 15:23 GMT
Newbies shouldn't use IDEs. [1]

In a course I taught, the students quickly demonstrated their lack of
ability to use command lines, so we used BlueJ.

BlueJ quickly demonstrated its lack of ability to work, so the next
course used JCreator.

JCreator worked pretty well, but I'd still suggest using the command
line at the start.

Unfortunately, our systems are poorly set up, so every time they start
cmd.exe they need to do set PATH=%PATH%;c:\java\whatever

This added complication puts students off using cmd.exe.  Plus, none of
them already know the nice stuff that it offers, such as history and
tab-completion.

Cygwin would be even better, but again it might require too much
instruction before getting started.

[1] http://jqa.tmorris.net/GetQAndA.action?qids=52&showAnswers=true
zero - 13 Dec 2005 17:53 GMT
> Newbies shouldn't use IDEs. [1]
>
[quoted text clipped - 18 lines]
>
> [1] http://jqa.tmorris.net/GetQAndA.action?qids=52&showAnswers=true

May I suggest TextPad (people who read this group regularly must be getting
pretty tired of me saying that).  If textpad is installed after the JDK, it
will automatically add items in the menu to compile & run java applets &
applications.  This works well for the the type of projects new java
students get: they can type the code, compile and run all in one place,
without having the downsides of a complete IDE.  I have encountered
problems when using multiple packages, but I'm sure these can be resolved
if you check out textpad's configuration.  And you normally wouldn't cover
custom packages too early in the course anyway.

Signature

Beware the False Authority Syndrome

JavaJon - 13 Dec 2005 21:52 GMT
I would like to thank everyone on their rather suprisingly quick
replies on this subject.
I will go through the steps stated by 'zero' and hopefully be up and
programming in no time.

Thanks for your time and support.
Jonathan
hilz - 14 Dec 2005 14:48 GMT
> May I suggest TextPad (people who read this group regularly must be getting
> pretty tired of me saying that).  If textpad is installed after the JDK, it
[quoted text clipped - 5 lines]
> if you check out textpad's configuration.  And you normally wouldn't cover
> custom packages too early in the course anyway.

TextPad is not free. Why should anyone pay a penny to learn java?

the best way to start (in my opinion ofcourse) is the command line, and
the tutorials at java.sun.com
On windows, notepad should be enough, or maybe notepad2
(http://www.flos-freeware.ch/notepad2.html) which is free and has syntax
hilighting.

once one is comfortable with the command line, it will be time to try
one of the free IDE's (such as Netbeans or Eclipse) that will make life
easier and has more  features such as easier compiling, debugging, code
completion, on-the-fly javadoc, etc. etc.

thanks
IchBin - 14 Dec 2005 22:58 GMT
>> May I suggest TextPad (people who read this group regularly must be
>> getting pretty tired of me saying that).  If textpad is installed
[quoted text clipped - 21 lines]
>
> thanks
I agree with hilz, but for an IDE I would start out with either JGRASP
or BlueJ before Netbeans or Eclipse. Both where developed and being used
at university. BlueJ to learn the OOD\OOP side of Java.

http://www.bluej.org/
http://www.eng.auburn.edu/department/cse/research/grasp/

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)
JavaJon - 15 Dec 2005 00:01 GMT
zero - 13 Dec 2005 17:26 GMT
> Hello all,
>
[quoted text clipped - 27 lines]
>
> Jonathan

You seem to be using Windows XP, so vi won't work - it's a linux tool.

In addition to the runtime environment that you already installed, you'll
need:

1. The JDK (look for JDK 5.0 at sun's downloads page).  This is the one
that actually compiles the programs you write.
2. A text editor.  Notepad will do, but there are better options.  I
suggest textpad, www.textpad.com - but there are others of course.
3. remember that your filename must be *exactly* the same as the class
name - including capitalization.  And, by convention, class names should
start with a capital letter, so use MyProgram.java instead of
myProgram.java.
4. a bookmark to http://java.sun.com/j2se/1.5.0/docs/api/  That's where
you'll find the details of the java libraries.
5. dedication

Good luck :-)

Signature

Beware the False Authority Syndrome

Roedy Green - 13 Dec 2005 22:21 GMT
On 13 Dec 2005 05:48:52 -0800, "JavaScriptJon"
<fishingmad1_2002@hotmail.com> wrote, quoted or indirectly quoted
someone who said :

>I am very keen to start learning a new programming language and have
>chosen Java as it is more productive than the previous language i have
>learnt.
see http://mindprod.com/jgloss/gettingstarted.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.