Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Getting started
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
BenLi




PostPosted: Wed Aug 02, 2006 11:28 am   Post subject: Getting started

Alright, well after a year with the very simplistic Turing environment. I want to take a look at java. The question lies in how to get started...
Turing you just install and open the editor window, but with Java how do you get started?

I downloaded and installed the "j2sdk-1_4_2_12-windows-i586-p" off the website. What is this documentation and IDE thing?
Sponsor
Sponsor
Sponsor
sponsor
Aziz




PostPosted: Wed Aug 02, 2006 12:23 pm   Post subject: (No subject)

Good, welcome to java. I need to clarify something first. Java, like most other languages, uses a compiler. You write a java file (.java), using any text editor (notepad). Then, java has 2 programs you'll use: javac.exe and java.exe.

"javac.exe" is java compiler. You run it on a java source file (.java) and it compiles it to a ".class" file. Then, "java.exe" runs that .class file. You should check into setting up your "classpath".

First off, unistall that version. The newest is 1.5, or simply, 5. (update 7)

http://java.sun.com/javase/downloads/index.jsp

Choose "JDK 5.0 Update 7", the third one down (i think). You don't want the NetBeans IDE, especially for beginning. Now let's see if I can find you some tutorials:

First of, the official Java tutorial:

http://java.sun.com/docs/books/tutorial/index.html

It nicely explains Java concepts and compiling. You should start out by using notepad to right your code, or something simple like even TextPad or JEdit(which has syntax highlighting). IDEs only become useful when you get more advanced.

Secondly, some tutorials here, on CompSci:

Both rizzix's and wtd's Intro tuts are good:


Wtd's is all in one: http://www.compsci.ca/v2/viewtopic.php?t=9576

Rizzix' is split:

http://www.compsci.ca/v2/viewtopic.php?t=1082
http://www.compsci.ca/v2/viewtopic.php?t=1133
http://www.compsci.ca/v2/viewtopic.php?t=1534
http://www.compsci.ca/v2/viewtopic.php?t=2033

Do some stuff. Google up "java tutorials" or "learn java". Then, check out the Java Tutorials and Tips section here for more specific tutorials. Smile Have fun in Java.
wtd




PostPosted: Wed Aug 02, 2006 3:04 pm   Post subject: (No subject)

Yes, unless you have a compelling reason to learn Java 1.4.2, definitely use 5.0 (also goes by 1.5.0).

This version includes several noteworthy updates to the language that will make it less onerous than using the older versions.
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: