Basically any word processing software can handle editing Java codes. You can use either Notepad, Wordpad, or even Microsoft Word on your PC to edit your Java codes. Make sure when you save Java files, save as text files (ASCII). If you are using a Mac, you can use SimpleText to edit your Java codes.
Here is WinEdit for you to be downloaded. You can use WinEdit to edit your Java codes. You can use it to compile, link, or run your Java codes.
If you use a PC, you can download Java2 SDK 1.3 form Sun's Java site. The file is called j2sdk1_3_0-win.exe.
If you use a Mac, you should go to Apple's site to download MRJM
First you should download your JDK1.3 on your PC. Install JDK is very easy. All you need to do is to doubel click the icon you download from and keep clicking Next Buttons.
In order to check the installation is correct or not, you can go to C drive and check if there is a folder or directory called djk1.3. If it exits, you has successfully install JDK on your PC. If not, you fail to install JDK, and you need to check out if you have a file called j2sdk1_3_0-win.exe or not.
The easiest way is to copy your Java file into the folder of JDK1.3\bin in your C drive. Then launch your MS-DOSPrompt, you should have a MS_DOS Window. It shows in the following
C:\Windows>Change your directory location using DOS commmand "cd", as shownC:\Windows>cd .. (return) C:>cd JDK1.3\bin (return) C:\JDK1.3\bin>
Now you can compile your Java code asC:\JDK1.3\bin>javac JavaFile.java (return)After success of your compiling, your can run your Java Byte code, asC:\JDK1.3\bin>java JavaFile (return)
If you want to compile and run your Java codes in different directory rather than in jdk1.3\bin directory, you do not need to copy or create your Java code in the bin directory, you can use one of the following methods.
Use notepad under Accessories, or other word processing software to open your autoexec.bat file in C dirve, and then append the following lines, before you save it.
set PATH=c:\jdk1.3\bin;%PATH%; set CLASSPATH=.;c:\jdk1.3\lib;%CLASSPATH%;Then, restart your computer. Now you can use javac or java in any directory.
Use the following command to compile your Java code
c:\jdk1.3\bin\javacFor example, you are in your homework directory (cshw) in DOS window
c:>cshw> c:\jdk1.3\bin\javac FirstProgram.java (return)If you want to run your code after successful compiling, you can use
c:\jdk1.3\bin\javaFor example, you are in your homework directory (cshw) in DOS window
c:>cshw> c:\jdk1.3\bin\java FirstProgram
You can use any Mac in ITC labs on UI campus. There is a software called Code Warrior which has been installed on all the ITC Macs. You can click here to read the handout material about how to use Code Warrior 6.0 to compile, link, and run your java application.