What do i need to write java

hoov

Senior member
Nov 5, 1999
210
0
0
Here and check out the rest of the site for help and tutorials
Download the Java 2 Platform Standard Edition to get started
Here,s another Linkto the Standard Edition Tutorial page
 

hoov

Senior member
Nov 5, 1999
210
0
0
You need the SDK standard Development Kit to start with it has all your librarys and what not. You can use Notepad in windows to write the code Start Here It will guide you through what you need to get started
 

Trezza

Senior member
Sep 18, 2002
522
0
0
i really hate notepad i want to use this program that i have seen before. its colors the important words (system.out.println, int, etc..) and you can compile within the prog. anything like this? btw thanks for the links so far.
 

thornc

Golden Member
Nov 29, 2000
1,011
0
0
A good editor (Crimson Editor, Context), a java SDK (Sun rules here) and knowledge ( start with the tutorial at sun's java site)!

There's also a good book by Bruce Eckel: 'Thinking in Java' that you can download for free from the net!
 

Trezza

Senior member
Sep 18, 2002
522
0
0
ok got everything set up and i need DOS help. how do i make a command be able to be used in any directory... you know like how you can use copy, del, dir but for the commands java, javac
 

Trezza

Senior member
Sep 18, 2002
522
0
0
also if anyone knows how to tab in a string in java let me know.
example

System.out.println(TabFunction? "Hello, I am a Noob at Java.");
 

manly

Lifer
Jan 25, 2000
13,286
4,060
136
The same way as in any C-syntax (and similarly in most other) languages, with embedded escape sequences as such:

System.out.println("\tThis line is indented.\nThis is on a new line.");

Since you're new to Java, you should know that you can download a PDF of the book Thinking in Java at http://www.bruceeckel.com. It's considered one of the strong introductory Java programming books.

As for how to have the java commands available in the shell, you need to add the Java2 SDK bin directory to your environment's PATH. In Win98SE, you would add something like the following line in C:\autoexec.bat

SET PATH=%PATH%;C:\Program Files\JavaSoft\JRE\1.4.1\bin

I say something like because I don't use Java on Winblows so I don't recall the exact path to the Java2 SDK.