PDA

View Full Version : [Java] Hello World - Tutorial


PhierWall
27th November 2007, 06:11
Credits to me for making it :P

#1. First download Eclipse IDE for Java Developers - Download (http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/20071103/eclipse-java-europa-fall2-win32.zip)

#2. When you have it installed, go to File > New > Java Project. For the project name put "HelloWorld". Then click finish.

#3. Create a new Java Class, then source folder should be "HelloWorld/src" and the name should be "HelloWorld". And below check the box "public static void main(String[] args)". Then click finish!

#4. Now your class file should look like this:

public class HelloWorld {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub

}

}

If it doesn't back track!

Below "public static void main(String[] args) {" add the line: "System.out.println("Hello World!");" .

Then it should look like this:

public class HelloWorld {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello World!");

}

}

#5. Next compile and run it by, Run > Run.

crazyhorse
1st December 2007, 13:56
Why do you post this? Is this possible to do anything with java?

paller
1st December 2007, 16:27
what to do with this?? lol

blaqdeaph
2nd December 2007, 18:05
Hi,

Thanks for the tut. However, most of the exploits here aren't written in Java, and secondly, anyone who doesn't already know how to write a hello world program shouldn't be hanging around here ;)

Augustus
5th December 2007, 06:09
Hi,

Thanks for the tut. However, most of the exploits here aren't written in Java, and secondly, anyone who doesn't already know how to write a hello world program shouldn't be hanging around here ;)

:wank:

Honestly If you really don't have anything nice to say you shouldn't say it (atleast in public) as for hanging around here? Who the hell should? While you can argue the usefulness of reposting another helloworld thread and even the usage of java its still something that could possibly spark some willing person to say "Oh shit I kinda see what this means and therefor I think I could actually give something like this a shot".

ANY topics made about anything other than programming or bypassing will be removed and the posters warned.

This is pretty much on topic by that rule.



Constructively:
There is a million other tutorials on google for making a hello world application in a million languages.
Java looks like shit and I honestly would say this would turn off many more people then something using lovely printf.

What to do with it: Read the post.

What can you do with it: OPEN YOURSELF THE WIDE WORLD OF POSSIBILITIES WITH THE MAGICAL POWERS OF PROGRAMMING.


And I said I would never use that wank emote again.

Toskel
7th December 2007, 11:53
I imagine it's a better idea to provide a link to a more in-depth java tutorial rather than writing up the tutorial for the most basic program, because telling someone how to write a hello world has next to zero contribution to their ability to "hack". Why? If they actually have any desire to come up with hacks, they ought to know how to write a hello world. If they don't already know it, it'll be at least a year or two before they can program well enough.

On a side note, though Java is powerful through its portability and safety, it is IMO a crappy language for "hacking" purposes. The lack of pointer manipulation and access to assembly makes it rather pointless. (or perhaps it's just my ignorance of Java)