To anyone that programs with java, i am a beginner and learning how to code with java. i donwloaded the runtime package, but dont know if i have to download anything else. Do i?
Java download question
u can use a simple text processor such as notepad to make a java file. For example:
then, save your java code as "HelloWorld.java" (must be the same with the class name, also the case). and then you can compile your java file in command prompt (Windows) with command:
to run your program type:
don't forget to make the CLASSPATH, but I don't know how... (any body can help?)
Because I usually use TextPad or NetBeans IDE to make a Java Project..
| Code: |
|
public class HelloWorld{ public static void main(String[] args){ System.out.println("HelloWorld!!!"); } } |
then, save your java code as "HelloWorld.java" (must be the same with the class name, also the case). and then you can compile your java file in command prompt (Windows) with command:
| Code: |
|
C:/javac Helloworld.java |
to run your program type:
| Code: |
|
C:/java HelloWorld |
don't forget to make the CLASSPATH, but I don't know how... (any body can help?)
Because I usually use TextPad or NetBeans IDE to make a Java Project..
alright that works
thanks
JRE is only for compiled applications.
To compile them you need download and install The J2SE Development Kit (JDK) at least.
To compile them you need download and install The J2SE Development Kit (JDK) at least.
