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 / August 2005

Tip: Looking for answers? Try searching our database.

Very basic question

Thread view: 
Lee David - 26 Aug 2005 11:41 GMT
I went to the sun site and downloaded what I hope is the development part of
java.  I downloaded JDK5 with Netbeans.  I installed it and now have a
folder in my program group "Netbeans".  Is that java?  Would I execute that
to create a java application?

TIA, Lee
IchBin - 26 Aug 2005 14:41 GMT
> I went to the sun site and downloaded what I hope is the development part of
> java.  I downloaded JDK5 with Netbeans.  I installed it and now have a
> folder in my program group "Netbeans".  Is that java?  Would I execute that
> to create a java application?
>
> TIA, Lee

This is the Netbeans Java Developer IDE AND the JDK for developing Java
apps.

The JDK5 should also be on your system say "C:\Program
Files\jdk1.5.0_04". This is what you need to develop Java applications.

Netbeans is a Java developer IDE. You should see a Netbeans icon on your
desktop. Just double click on that to bring up the Netbeans IDE.

Or select  Start \ NetBeans 4.1 \ NetBeans IDE

If you do not see the icon then just goto your Netbeans subdirectory and
double click on "C:\Program Files\netbeans-4.1\bin\netbeans.exe"

Now that the Netbeans is open you will need to learn this IDE. You can
play with the samples off the welcome screen.

You can use any number of Java developer IDE's out on the Internet that
are also free.

If you have never developed Java code before I would recommend a easier
IDE like JGRASP http://www.eng.auburn.edu/grasp/ or BlueJ
http://www.bluej.org/

Signature

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

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)

Lee David - 26 Aug 2005 17:38 GMT
Thanks.  I have the icon on the desktop, but didn't realize it was for the
developers enviroment of Java.  This is all for my kid who is taking it in
high school.  I do other languages, but never got into Java (at least not
yet).

I was able to open it and appreciate the pointer.

Lee
IchBin - 26 Aug 2005 22:32 GMT
> Thanks.  I have the icon on the desktop, but didn't realize it was for the
> developers enviroment of Java.  This is all for my kid who is taking it in
[quoted text clipped - 4 lines]
>
> Lee

If this is for your kid for H.S.. I would not recommend Netbeans or
Eclipse or any of the professional Java developer environments.

These environments do to much for you and expect a certain level of
expertise in learning the IDE and basic knowledge of Java. Example, it
has a GUI to build java screens that he really should learn by coding by
hand. This is recommended for even seasoned programmers from other
languages. He will get lost if some does not work because most of the
code is automatically generated. You really have to learn the Java API's
to understand this part of Java programming.

I am sure the teacher would be teaching this by coding examples.

It would be much better for him to use say 'TextPad' http://www.textpad.com/

This is an editor that will at the least color parse his code and you
can set it up to compile the code. As to running the class files he will
learn about this in class.

These are basic concepts in Java programming that MUST be exposed to
learn Java.

I think you would be doing him or her a disfavor by having them use a
professional Java IE. There is a presumption of basic Java knowledge.

At most he could use JGRASP http://www.eng.auburn.edu/grasp/

If the class is teaching an OOD\OOP Java implementation he or she could
use 'BlueJ' http://www.bluej.org/ But I think this is at a college
level. Maybe nice if you could talk to the teacher to see what they are
actually teaching.

Just for his or her own reference these may help in their H.S. class..

The Really Big Index
http://java.sun.com/docs/books/tutorial/reallybigindex.html

The Java Developers Almanac 1.4
http://javaalmanac.com/egs/index.html

Oh, I have been in the programming field since 1977.

Signature

Hope this Helps for you kid...
IchBin, Pocono Lake, Pa, USA  http://weconsultants.servebeer.com
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)

David Moss - 27 Aug 2005 00:46 GMT
> I went to the sun site and downloaded what I hope is the development part of
> java.  I downloaded JDK5 with Netbeans.  I installed it and now have a
> folder in my program group "Netbeans".  Is that java?  Would I execute that
> to create a java application?

Yes.
Netbeans and the JDK provide everything you need to write and execute
Java programs. In fact the JDK alone is all you need to write and
execute Java programs, Netbeans just provides a sophisticated GUI
environment that helps with more complex projects.

Before you jump into Netbeans, however, I suggest you start with the
very basics.

Get yourself a basic book on Java or choose one of the web based
tutorials like http://www.iut-info.univ-lille1.fr/docs/tutorial/

Practice by writing some very basic Java programs using only a text
editor and the JDK. Once you understand how this works you will learn to
use Netbeans far more easily.

For example, here is how to do "Hello World" using only the JDK:

1) Using your favourite text editor (Notepad, Emacs, vi etc) create a
file called "hello.java".

2) Enter the following in the file:

class hello {
    public static void main(String [] args){
        System.out.println("Hello World");
    }
}

3) Save the file

4) At a console command line type:
javac hello.java

5) Step 4 caused the Java compiler to create a file called "hello.class"

6) At the command line type:
java hello

7) Step 6 caused the Java Runtime to load java.class and execute it.
Note that you did not type "java hello.class" or "java hello.java" to
run the program. You just typed "java hello".

8) If you are lucky you should see the words "Hello World" appear on the
console.

The Java compiler (javac) and the Java Runtime (java) are both included
in the Java Developers Kit (JDK). While you can use only the JDK for
Java programming, for any serious development you need a GUI based
development environment, like Netbeans.

Trying to use Netbeans without learning a few simple things with the JDK
first is like trying to solve a Integral Calculus problem without
learning arithmetic first.

BTW I use Netbeans as my development environment.
I'm very happy with it.

Oh yes, you will be much happier if you download the documentation that
goes with the JDK too. Last time I looked it was a separate download.
Once downloaded and installed it the documentation becomes available to
Netbeans and this helps immensely. Netbeans will prompt you with
function parameters and descriptions if it has access to the
documentation.

Signature

DM
personal opinion only

Hal Rosser - 27 Aug 2005 20:22 GMT
I agree with the others - leave off the IDE untill after you/(your son)
have Java in the bag.
There's quite a learning curve just learning the IDE - whether its Netbeans
or Eclipse - or some other.
> I went to the sun site and downloaded what I hope is the development part of
> java.  I downloaded JDK5 with Netbeans.  I installed it and now have a
> folder in my program group "Netbeans".  Is that java?  Would I execute that
> to create a java application?
>
> TIA, Lee


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



©2008 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.