This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-07-31 19:28:38

Nexstudent
Scratcher
Registered: 2010-02-07
Posts: 1000+

Programming. I want to learn java.

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?


http://img696.imageshack.us/img696/9325/vedder.jpg

Offline

 

#2 2011-07-31 19:53:17

IHeartGaming
Scratcher
Registered: 2010-07-23
Posts: 1000+

Re: Programming. I want to learn java.

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.


IHeartGaming

Offline

 

#3 2011-07-31 19:56:06

Nexstudent
Scratcher
Registered: 2010-02-07
Posts: 1000+

Re: Programming. I want to learn java.

There are books on java programming.


http://img696.imageshack.us/img696/9325/vedder.jpg

Offline

 

#4 2011-07-31 19:57:18

IHeartGaming
Scratcher
Registered: 2010-07-23
Posts: 1000+

Re: Programming. I want to learn java.

Probably. Just look.


IHeartGaming

Offline

 

#5 2011-07-31 20:11:17

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Programming. I want to learn java.

You can get the standard Java SDK for free here at Oracle's site, so you can get started completely for free.  smile

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.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#6 2011-07-31 20:11:22

wmays
Scratcher
Registered: 2008-05-10
Posts: 500+

Re: Programming. I want to learn java.

It's free.

You would use the JDK (about 300MB)

Either get a book or get on youtube and look at the Java series from thenewboston.


http://i42.tinypic.com/2z5vcz9.gif
http://phpscripthost.comoj.com/imagescripts/ipimg.php

Offline

 

#7 2011-07-31 20:12:51

jackrulez
Scratcher
Registered: 2009-08-01
Posts: 1000+

Re: Programming. I want to learn java.

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)


Yawn, another boring text signature. I should really make something better.

Offline

 

#8 2011-07-31 20:15:46

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Programming. I want to learn java.

I'm trying to learn as well... but the book I have is really not so good... so I'll try the youtube videos...  big_smile


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#9 2011-07-31 20:18:24

Nexstudent
Scratcher
Registered: 2010-02-07
Posts: 1000+

Re: Programming. I want to learn java.

Whats the difference between the SDK and the JDK?


http://img696.imageshack.us/img696/9325/vedder.jpg

Offline

 

#10 2011-07-31 20:23:50

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Programming. I want to learn java.

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.)


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#11 2011-07-31 20:25:40

Nexstudent
Scratcher
Registered: 2010-02-07
Posts: 1000+

Re: Programming. I want to learn java.

Thanks guys, I'll definitely consider all of this. Do you guys think its a good idea to start such learning at 13?


http://img696.imageshack.us/img696/9325/vedder.jpg

Offline

 

#12 2011-07-31 20:28:32

wmays
Scratcher
Registered: 2008-05-10
Posts: 500+

Re: Programming. I want to learn java.

I want to start learning at 12.  tongue

For something like this, there is no minimum age. Notch started programming when he was 7.


http://i42.tinypic.com/2z5vcz9.gif
http://phpscripthost.comoj.com/imagescripts/ipimg.php

Offline

 

#13 2011-07-31 20:29:54

Nexstudent
Scratcher
Registered: 2010-02-07
Posts: 1000+

Re: Programming. I want to learn java.

wmays wrote:

I want to start learning at 12.  tongue

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.


http://img696.imageshack.us/img696/9325/vedder.jpg

Offline

 

#14 2011-07-31 20:47:19

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Programming. I want to learn java.

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)


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#15 2011-07-31 22:29:58

johndo77
Scratcher
Registered: 2010-07-30
Posts: 1000+

Re: Programming. I want to learn java.

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)


Crizapples

Offline

 

#16 2011-08-01 02:24:32

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: Programming. I want to learn java.

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)


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#17 2011-08-01 07:30:13

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Programming. I want to learn java.

Nexstudent wrote:

First of all, does it cost money? NOTHING AT ALL!!!  big_smile
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)


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#18 2011-08-01 07:34:09

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Programming. I want to learn java.

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  tongue

Last edited by gbear605 (2011-08-01 07:36:16)


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#19 2011-08-01 07:44:57

Nexstudent
Scratcher
Registered: 2010-02-07
Posts: 1000+

Re: Programming. I want to learn java.

Since I'm new to all of this, I'm going to ask more questions  tongue

Is Eclipse an SDK?

Is IDE another name for an SDK?


http://img696.imageshack.us/img696/9325/vedder.jpg

Offline

 

#20 2011-08-01 08:08:12

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Programming. I want to learn java.

Nexstudent wrote:

Since I'm new to all of this, I'm going to ask more questions  tongue

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.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#21 2011-08-01 08:09:32

helltank
Scratcher
Registered: 2010-05-21
Posts: 1000+

Re: Programming. I want to learn java.

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.


Error:Signature could not load. Please wait for an indefinite amount of time, until you realize you're gullible and go off to look for another potentially interesting signature to stare at.

Offline

 

#22 2011-08-01 09:58:24

johndo77
Scratcher
Registered: 2010-07-30
Posts: 1000+

Re: Programming. I want to learn java.

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  tongue

Oh well wellll I started learning stuff like Scratch at 8.


Crizapples

Offline

 

#23 2011-08-01 10:31:42

what-the
Scratcher
Registered: 2009-10-04
Posts: 1000+

Re: Programming. I want to learn java.

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


http://imageshack.us/m/64/9034/ddfss.pngMy site
Find someone post count. Click posts under username. Find number of pages. Times that by 40 for min and 60 for max and you have a rough estimate of post count.

Offline

 

#24 2011-08-01 11:24:25

Nexstudent
Scratcher
Registered: 2010-02-07
Posts: 1000+

Re: Programming. I want to learn java.

So in all, what are all of the things I need to download?


http://img696.imageshack.us/img696/9325/vedder.jpg

Offline

 

#25 2011-08-01 12:41:57

wmays
Scratcher
Registered: 2008-05-10
Posts: 500+

Re: Programming. I want to learn java.

You need Eclipse and the Java SDK. You need both, because the JDK is what compiles the programs. Together they are about 500MB, so I would suggest having a fast internet connection/lots of free time.


http://i42.tinypic.com/2z5vcz9.gif
http://phpscripthost.comoj.com/imagescripts/ipimg.php

Offline

 

Board footer