- Create a temporary folder
C:\mywork
. Using Notepad or another text editor, create a small Java fileHelloWorld.java
with the following text:public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!"); } }
Save your file asHelloWorld.java
inC:\mywork
. To make sure your file name isHeloWorld.java
, (notHelloWorld.java.txt
), first choose "Save as file type:" All files, then type in the file name HelloWorld.java. - Run Command Prompt (found under All Programs/Accessories in the Start menu). Type
C:\> cd \mywork
This makes C:\mywork the current directory.C:\mywork> dir
This displays the directory contents. You should seeHelloWorld.java
among the files.C:\mywork> set path=%path%;C:\Program Files\Java\jdk1.8.0_51\bin
(use the JDK folder for the version installed on your system). This tells the system where to find JDK programs.C:\mywork> javac HelloWorld.java
This runsjavac.exe
, the compiler. You should see nothing but the next system prompt...C:\mywork> dir
javac has created theHelloWorld.class
file. You should seeHelloWorld.java
andHelloWorld.class
among the files.C:\mywork> java HelloWorld
This runs the Java interpreter. You should see the program output:Hello, World!
If the system cannot find javac, check the set path command. If ja
The Nintendo DS is region free in the sense that any console will run a Nintendo DS game purchased anywhere in the world; however, the Chinese version of iQue DS games can only be played on the Chinese iQue DS, whose larger firmware chip contains the required Chinese character glyph images, this restriction is removed on Nintendo DSi and 3DS systems. Although the Nintendo DS of other regions cannot play the Chinese games, the iQue DS can play games of other regions. Also, as with Game Boy games, some games that require both players to have a Nintendo DS game card for multiplayer play will not necessarily work together if the games are from different regions (e.g. a Japanese Nintendo DS game may not work with a North American Nintendo DS game, even though some titles, such as Mario Kart DS and Pokémon Diamond and Pearl versions are mutually compatible). With the addition of the Nintendo Wi-Fi Connection , ...
Comments
Post a Comment