I really want to learn how to program java, because I want to mod minecraft, or perhaps create java games.
The problems:
First of all, does it cost money?
What do I program with?
Where does my learning start?
It would be awesome if I knew java, but I don't know anything about it in general.
Could someone help?

Offline
Get a book at Borders (if you still have one that's open and has going-out-of-business sales) or at Barnes and Noble.
Offline
There are books on java programming.

Offline
Probably. Just look.
Offline
You can get the standard Java SDK for free here at Oracle's site, so you can get started completely for free.
If you're going to be writing Java, I really recommend an IDE. (Trust me, you don't want to use notepad.) Personally, I use Eclipse, but you can use whatever you want.
Of course, you want a way to learn the language too. May I suggest thenewboston's video tutorials? He's very good at bringing you through everything one step at a time and explaining everything in layman's terms, so even if you're not familiar with programming vernacular and techniques, you'll be able to understand everything he says. Here's a link to the first video in the series.
Offline
No, it doesn't cost money unless you want to get a book or something. You write out your programs (mods, whatever) in a normal text editor, but then you use the Java SDK (here) to compile it. For learning -- don't use the "official" tutorials. They're outdated crud.
EDIT: Ninja'd.
EDIT2: Twice.
Last edited by jackrulez (2011-07-31 20:13:33)
Offline
I'm trying to learn as well... but the book I have is really not so good... so I'll try the youtube videos...
Offline
Whats the difference between the SDK and the JDK?

Offline
Nexstudent wrote:
Whats the difference between the SDK and the JDK?
The SDK is just a general name for a development kit for any language. (SDK = Software development kit.) The JDK is just a specific name for the Java SDK. (JDK = Java development kit.)
Offline
Thanks guys, I'll definitely consider all of this. Do you guys think its a good idea to start such learning at 13?

Offline
wmays wrote:
I want to start learning at 12.
![]()
For something like this, there is no minimum age. Notch started programming when he was 7.
Now that I think of it, your right!
I think I'll start with the school year, since I have summer work to do, and I'm still in middle school, so I can mix both.

Offline
Nexstudent wrote:
Thanks guys, I'll definitely consider all of this. Do you guys think its a good idea to start such learning at 13?
Yeah, why not? Some of the stuff in Java is rather abstract and takes some practice to get the hang of, but as long as you can understand that there's nothing too particularly hard about it. I'm learning Java at 15 now and lots of people have started earlier than that, so I don't see why you couldn't do it.
Last edited by Harakou (2011-07-31 20:48:11)
Offline
With Javascript, I believe the program is called Eclipse. It's free. To start, you can do whatever you want! That's what's so great about programming.
Nexstudent wrote:
Thanks guys, I'll definitely consider all of this. Do you guys think its a good idea to start such learning at 13?
I started at 11. Any age is fine, really.
Last edited by johndo77 (2011-07-31 22:30:16)
Offline
First of all, does it cost money? No. Absolutely nothing.
What do I program with? I suggest Eclipse.
Where does my learning start? Either buy a book about java, or search for tutorials on the internet.
Last edited by meew0 (2011-08-01 02:24:41)
Offline
Nexstudent wrote:
First of all, does it cost money? NOTHING AT ALL!!!
![]()
What do I program with? Netbeans, Eclipse, or some other less poular IDE
Where does my learning start? Try either a coding book, or a tutorial online. Use a coding book, as online tutorials either cost a ton, or are free but really bad.
If you want to make bukkit plugins, or minecraft mods, use eclipse, but in general, use whatever IDE your tutorial tells you to.
Last edited by gbear605 (2011-08-01 07:33:13)
Offline
johndo77 wrote:
With Javascript, I believe the program is called Eclipse. It's free. To start, you can do whatever you want! That's what's so great about programming.
Nexstudent wrote:
Thanks guys, I'll definitely consider all of this. Do you guys think its a good idea to start such learning at 13?
I started at 11. Any age is fine, really.
I started learning Ruby, and C++ and 11, Squeak Smalltalk at 10, and I'm learning Java and PHP now at 12 yrs old. And I started learning scratch at 8 (not like it is a real programming language). And HTML at 6
Last edited by gbear605 (2011-08-01 07:36:16)
Offline
Since I'm new to all of this, I'm going to ask more questions
Is Eclipse an SDK?
Is IDE another name for an SDK?

Offline
Nexstudent wrote:
Since I'm new to all of this, I'm going to ask more questions
![]()
Is Eclipse an SDK?
Is IDE another name for an SDK?
No. Eclipse is an IDE, or integrated development environment. An IDE checks your syntax, provides organization for your projects (keeping track of multiple classes can be difficult otherwise), allows you to run your code so you don't have to manually compile it, and lots of other stuff.
Offline
Nexstudent wrote:
Thanks guys, I'll definitely consider all of this. Do you guys think its a good idea to start such learning at 13?
I know a guy who started Scratch at 11 and started Java at 12. He can turn any program upside down, destroy Minecraft and be sentenced to life in prison for every computer crime ever made just by his looks.
Offline
gbear605 wrote:
johndo77 wrote:
With Javascript, I believe the program is called Eclipse. It's free. To start, you can do whatever you want! That's what's so great about programming.
Nexstudent wrote:
Thanks guys, I'll definitely consider all of this. Do you guys think its a good idea to start such learning at 13?
I started at 11. Any age is fine, really.
I started learning Ruby, and C++ and 11, Squeak Smalltalk at 10, and I'm learning Java and PHP now at 12 yrs old. And I started learning scratch at 8 (not like it is a real programming language). And HTML at 6
![]()
Oh well wellll I started learning stuff like Scratch at 8.
Offline
Java is free and most software for it is too (only the books cost).
I'll right a tutorial.
Download the jdk from oracle
Download a text editor. I use gedit which is avaliable for linux (standard with ubuntu) and windows.
Install all software. It's best to store to default locations.
Open up gedit and save the file as "HelloWorld.java" (You do this first as it activates gedit's code highlighting features)
Next type the following:
class HelloWorld { //This is the class "HelloWorld" must be the same as file name
public static void main(String[] args) {
System.out.println("Hello World!"); // Prints Hello World
}
}
Save the file.
Now test to see if the following commands work in command prompt/ console
java -version
If it doesn't produce and error then it's fine
javac -version
Note this didn't work for me so I'll show you what to do after the first part if this happens.
Open up the console.
Navigate to the file by typing (Windows/Ubuntu) cd "location of the file"
next type
javac filename.java (in this case "javac HelloWorld.java")
Now type
"java HelloWorld"
If javac doesn't work you will need to find it. If you let it install to defualt directory then the command to compile will be.
"C:\Program Files\Java\<java version>\bin\javac.exe"
Using the latest java version type
"C:\Program Files\Java\jdk1.7.0\bin\javac.exe" HelloWorld.java
My site Offline
So in all, what are all of the things I need to download?

Offline