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

#1 2011-10-29 16:49:25

ipodbiped
Scratcher
Registered: 2011-02-06
Posts: 1000+

Java Official Topic

This is not a spam about Minecraft Topic! Just because its made in Java, doesn't mean you can spam it here. Anyway, here you can discuss Java coding, the JDK, Java 7 etc.

Offline

 

#2 2011-10-29 17:01:06

Aidan
Scratcher
Registered: 2007-06-15
Posts: 1000+

Re: Java Official Topic

Minecraft isn't made in Java...

It's written in C++

Offline

 

#3 2011-10-29 17:01:55

ipodbiped
Scratcher
Registered: 2011-02-06
Posts: 1000+

Re: Java Official Topic

Aidan wrote:

Minecraft isn't made in Java...

It's written in C++

it is? *ipodbiped suddenly panics and sets off some dynamite*

Offline

 

#4 2011-10-29 17:03:20

ipodbiped
Scratcher
Registered: 2011-02-06
Posts: 1000+

Re: Java Official Topic

Aidan wrote:

Minecraft isn't made in Java...

It's written in C++

Just checked. It's made in Java.

Offline

 

#5 2011-10-29 17:07:15

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: Java Official Topic

I, how do I put this eh, don't think we need this topic...


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#6 2011-10-29 17:11:43

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

Re: Java Official Topic

WindowsExplorer wrote:

I, how do I put this eh, don't think we need this topic...

Why not? I don't see a ton of Java discussion on Misc, but there's nothing really wrong with this topic. Like other "official topics" for less-discussed subjects, it'll die if there's no interest, and if it doesn't die, then it has a purpose.  smile


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

 

#7 2011-10-30 01:55:42

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: Java Official Topic

Nice idea! I know a tiny bit of Java...


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#8 2011-10-30 02:02:05

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: Java Official Topic

I know none


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#9 2011-10-30 04:28:21

ipodbiped
Scratcher
Registered: 2011-02-06
Posts: 1000+

Re: Java Official Topic

I'm learning Java.

Offline

 

#10 2011-10-30 04:45:41

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: Java Official Topic

Does JavaScript count?


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#11 2011-10-30 05:08:26

ipodbiped
Scratcher
Registered: 2011-02-06
Posts: 1000+

Re: Java Official Topic

WindowsExplorer wrote:

Does JavaScript count?

Java. JavaScript. Its all the same to me.

Offline

 

#12 2011-10-30 12:47:44

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

Re: Java Official Topic

ipodbiped wrote:

WindowsExplorer wrote:

Does JavaScript count?

Java. JavaScript. Its all the same to me.

Java and JavaScript are completely different languages. They share some syntax, but they're similar only in name.


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

 

#13 2011-10-30 14:37:43

recycle49
Scratcher
Registered: 2009-12-21
Posts: 1000+

Re: Java Official Topic

Harakou wrote:

ipodbiped wrote:

WindowsExplorer wrote:

Does JavaScript count?

Java. JavaScript. Its all the same to me.

Java and JavaScript are completely different languages. They share some syntax, but they're similar only in name.

Yup. I know javascript and am learning Java  big_smile


"Every challenge must be met, every battle must be won, and every story will end." -Me
Recycle49 December 09 - November 11 Goodbye

Offline

 

#14 2011-10-30 14:43:03

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: Java Official Topic

class hi {
    public static void main(String args[]) {
        System.out.println("I know a bit of Java");
    }
}


http://i45.tinypic.com/28rnqki.jpg

Offline

 

#15 2011-10-31 19:26:42

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Java Official Topic

Aidan wrote:

Minecraft isn't made in Java...

It's written in C++

No.  The Java Console pops up when I view it.

Offline

 

#16 2011-10-31 19:32:11

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Java Official Topic

poopo wrote:

class hi {
    public static void main(String args[]) {
        System.out.println("I know a bit of Java");
    }
}

import javax.swing.JOptionPane;
class HiAndAppletTrouble {
    public static void main(String args[]) {
        JOptionPane.showMessageDialog(null, "Me too.  I like these pop-up messages!");
        JOptionPane.showMessageDialog(null, "I code in Notepad/TextEdit!");
        JOptionPane.showMessageDialog(null, "But when I try to run applets, I get an error message saying something like 'error in method main: no method called main'.  It's weird.");
        System.out.println("Help is appreciated.");
    }
}

Offline

 

#17 2011-11-02 13:45:11

ipodbiped
Scratcher
Registered: 2011-02-06
Posts: 1000+

Re: Java Official Topic

Bump

Offline

 

#18 2011-11-04 21:04:00

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: Java Official Topic

Can someone show me a good website to learn java please? I wanna make a minecraft  mod! big_smile

Last edited by ImagineIt (2011-11-04 21:06:16)

Offline

 

#19 2011-11-04 21:05:51

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Java Official Topic

It's not that easy to mod guys. I know a bit of java, but it's still really hard.


http://i46.tinypic.com/dw7zft.png

Offline

 

#20 2011-11-04 21:06:37

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: Java Official Topic

SeptimusHeap wrote:

It's not that easy to mod guys. I know a bit of java, but it's still really hard.

I know. I just wanna learn how to program.  big_smile

Offline

 

#21 2011-11-04 22:09:02

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

Re: Java Official Topic

maxskywalker wrote:

poopo wrote:

class hi {
    public static void main(String args[]) {
        System.out.println("I know a bit of Java");
    }
}

import javax.swing.JOptionPane;
class HiAndAppletTrouble {
    public static void main(String args[]) {
        JOptionPane.showMessageDialog(null, "Me too.  I like these pop-up messages!");
        JOptionPane.showMessageDialog(null, "I code in Notepad/TextEdit!");
        JOptionPane.showMessageDialog(null, "But when I try to run applets, I get an error message saying something like 'error in method main: no method called main'.  It's weird.");
        System.out.println("Help is appreciated.");
    }
}

The class needs to be named the same thing as the file.

My version of that:
I make javatest.java

Code:

import javax.swing.JOptionPane;
class javatest {
    public static void main(String args[]) {
        JOptionPane.showMessageDialog(null, "Me too.  I like these pop-up messages!");
        JOptionPane.showMessageDialog(null, "I code in Notepad/TextEdit!");
        JOptionPane.showMessageDialog(null, "But when I try to run applets, I get an error message saying something like 'error in method main: no method called main'.  It's weird.");
        System.out.println("Help is appreciated.");
    }
}

I navigate to the javatest.java file in terminal (console)
I run in terminal (console) to make the class file:

Code:

javac javatest.java

Then I run in console to launch the program (you could also double click the .class on some OS's)

Code:

java javatest

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

 

#22 2011-11-05 08:36:59

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Java Official Topic

ImagineIt wrote:

SeptimusHeap wrote:

It's not that easy to mod guys. I know a bit of java, but it's still really hard.

I know. I just wanna learn how to program.  big_smile

Well, fill out my mini question-thing:

[] I have installed mods in Minecraft before
[] I have programmed in a text-based language. (PLEASE LIST)
[] I have programmed in a language other than Scratch. (PLEASE LIST)
[] I have been programming for ___ years. (Check if more than 1)
[] I am very good at Minecraft, I know all of the items and blocks, and most of the crafting recipes.


http://i46.tinypic.com/dw7zft.png

Offline

 

#23 2011-11-05 09:02:17

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

Re: Java Official Topic

SeptimusHeap wrote:

ImagineIt wrote:

SeptimusHeap wrote:

It's not that easy to mod guys. I know a bit of java, but it's still really hard.

I know. I just wanna learn how to program.  big_smile

Well, fill out my mini question-thing:

[X] I have installed mods in Minecraft before
[X] I have programmed in a text-based language. (PLEASE LIST) C, C++, ruby, java, squeak smalltalk, PHP, javascript, HTML
[X] I have programmed in a language other than Scratch. (PLEASE LIST) C, C++, ruby, java, squeak smalltalk, PHP, javascript, HTML
[X] I have been programming for 4 years. (Check if more than 1)
[X] I am very good at Minecraft, I know all of the items and blocks, and most of the crafting recipes.


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

 

#24 2011-11-05 09:11:28

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: Java Official Topic

Aidan wrote:

Minecraft isn't made in Java...

It's written in C++

minecraft.JAR
not cpp

SeptimusHeap wrote:

ImagineIt wrote:

SeptimusHeap wrote:

It's not that easy to mod guys. I know a bit of java, but it's still really hard.

I know. I just wanna learn how to program.  big_smile

Well, fill out my mini question-thing:

[x] I have installed mods in Minecraft before
[x] I have programmed in a text-based language. (PLEASE LIST)Visual BASIC, JustBasic, TI-Basic
[x] I have programmed in a language other than Scratch. (PLEASE LIST)Same as above
[x] I have been programming for 2 years. (Check if more than 1)
[x] I am very good at Minecraft, I know all of the items and blocks, and most of the crafting recipes.

Last edited by 16Skittles (2011-11-05 09:12:51)


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#25 2011-11-05 09:12:53

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Java Official Topic

SeptimusHeap wrote:

It's not that easy to mod guys. I know a bit of java, but it's still really hard.

Adding recipes and smelting stuff is kind of easy; creating new items and blocks is harder, but not really hard; modifying world generation is difficult in most circumstances but there are some easy things to do with it; modelling entities, writing physics code, modifying the renderer, doing stuff with OpenGL and most other bits is the really hard stuff.


/* No comment */

Offline

 

Board footer