Boards.ie uses cookies. By continuing to browse this site you are agreeing to our use of cookies. Click here to find out more x
Post Reply  
 
Thread Tools Search this Thread
19-05-2012, 15:19   #1
Damien360
Registered User
 
Join Date: Nov 2006
Location: Newbridge
Posts: 1,282
Learning JAVA and executing it

I have decided to try and pass a bit of time and learn a computer language. I have decided on Java and a bit of VBA for excel.

I found a site for java http://www.thanassis.com/java/java%2...to%20java.html

but... I want to try the lessons out and figure it out myself. I downloaded the java 2 JRE from oracle but that just seems to be the usual java update. I tried using the console on chrome but when I enter anything I get "unexpected response....".

What do I need to download to write, compile and execute JAVA. The only programming I have ever done was BASIC (I was decent at that) many moons ago and a good stab at PASCAL but that is long gone from the brain now.

Any help appreciated.

(once I get started on JAVA I will tackle VBA)

Mods: If this is in wrong place, please move it.
Damien360 is offline  
Advertisement
19-05-2012, 15:32   #2
chin_grin
Closed Account
 
Join Date: Mar 2007
Posts: 10,396
You could download a sort of writer/compiler or do it this way.

http://www.wikihow.com/Write-Your-First-Program-in-Java

Here is a quick vid on how to compile using Notepad++ (text editor).

chin_grin is offline  
Thanks from:
19-05-2012, 15:49   #3
yoyo
Moderator
 
yoyo's Avatar
 
Join Date: Aug 2005
Location: Dublin 6
Posts: 8,242
Moved to Development.
yoyo is online now  
19-05-2012, 16:25   #4
FullRetard
Closed Account
 
Join Date: May 2012
Posts: 112
I've jsut started studying for the java associate cert and my tutor recommends learning to compile and run from the command line as its good to learn the file paths etc.

Having said that we mainly use eclipse IDE..

I'd also recommend getting head first java as it has helped me no end.

Some sites I use for help are:
http://thenewboston.org/-> excellent video's and there s also 200+ on visual basics too

http://www.javaranch.com/java-college.jsp-> a decent java forum for all levels of expertise.Has helped me out(often by pointing out the obvious!)
FullRetard is offline  
Thanks from:
19-05-2012, 20:04   #5
duffman85
Registered User
 
duffman85's Avatar
 
Join Date: Apr 2007
Location: Dublin
Posts: 279
You just need to download the Java Development Kit from here http://www.oracle.com/technetwork/ja...ads/index.html

You just download the JDK that is the same version as your JRE.
You can check this in control panel or

from a command prompt type: java -version

If the first line says 1.6 then get the JDK were it says Java SE 6 Update 32
If it says 1.7 get JDK 7.

There's some good tutorials for Java on Oracle's website to start you off:

http://docs.oracle.com/javase/tutorial/index.html

Once JDK is installed you should be able to open a command prompt and run javac - it will print out usage information if all is working correctly.
duffman85 is offline  
Thanks from:
Advertisement
20-05-2012, 21:15   #6
Damien360
Registered User
 
Join Date: Nov 2006
Location: Newbridge
Posts: 1,282
Quote:
Originally Posted by FullRetard View Post
I've jsut started studying for the java associate cert and my tutor recommends learning to compile and run from the command line as its good to learn the file paths etc.

Having said that we mainly use eclipse IDE..
Paths in MS-DOS are no bother as my computing experience started back on 486 machines and before windows.

I had a look at the helloworld starting point and came across the case sensitive malarchy very quickly. With that I think an IDE is a must.

I am downloading eclipse from filehippo as I type but looking at the screenshots, it may be a bit of a monster. What is the most prevelant IDE in use. I am thinking I may just learn one IDE only and stick with the most common one for support.
Damien360 is offline  
20-05-2012, 21:27   #7
ThePandaboy
Registered User
 
Join Date: May 2012
Posts: 23
http://thenewboston.org/tutorials.php check this out this is how i am teaching myself very good i must say
ThePandaboy is offline  
20-05-2012, 21:32   #8
Damien360
Registered User
 
Join Date: Nov 2006
Location: Newbridge
Posts: 1,282
Quote:
Originally Posted by FullRetard View Post

Some sites I use for help are:
http://thenewboston.org/-> excellent video's and there s also 200+ on visual basics too

http://www.javaranch.com/java-college.jsp-> a decent java forum for all levels of expertise.Has helped me out(often by pointing out the obvious!)
Quote:
Originally Posted by ThePandaboy View Post
http://thenewboston.org/tutorials.php check this out this is how i am teaching myself very good i must say
I may take the hint
Damien360 is offline  
21-05-2012, 04:49   #9
daithimacgroin
Registered User
 
Join Date: Sep 2011
Posts: 187
this is a more comprehensive approach to learning java
http://math.hws.edu/javanotes/index.html
daithimacgroin is offline  
(3) thanks from:
Advertisement
21-05-2012, 23:54   #10
Damien360
Registered User
 
Join Date: Nov 2006
Location: Newbridge
Posts: 1,282
Quote:
Originally Posted by daithimacgroin View Post
this is a more comprehensive approach to learning java
http://math.hws.edu/javanotes/index.html
I had a scan of that and it starts right from scratch. A very nice resource complete with a downloadable pdf. It also explains some very basic questions I had concerning the hello world.

Thank you
Damien360 is offline  
Post Reply

Quick Reply
Message:
Remove Text Formatting
Bold
Italic
Underline

Insert Image
Wrap [QUOTE] tags around selected text
 
Decrease Size
Increase Size
Please sign up or log in to join the discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search