Question

Posts 15 of 5 · Page 1 of 1
Question
I'm a beginner with java and I wanted to test out this thing everybody says beginners should learn to do first with notepad, for the program to say "Hello"
Now I follow the instructions, and I've seen a video when he makes "Compile.bat" a file the icon changes, and when he makes .java files they ask if they want to convert the file or something alike
When I do that it doesn't ask me anything and when I make a .txt file a .bat file it doesn't convert to a .bat file
Anybody know whats wrong?
Because you can't... Download a free Java compiler if you're still talking about java...
Save it as a .bat file originally?
Im confused..
where do u download this java program??!?!?!??!
holy crap, are you that much of a beginner? when writing a java file save it as a .java. Then, make a batch file (.bat or .cmd) in the same folder with the following code:
@echo off
javac *.java
pause

Running that file will tell the JVM ( Java Virtual Machine ) to copile it into a .class file.
To run your java program, which is the .class program, make another batch file with this code:
@echo off
java *.java

There, that's pretty much it on compiling and running basic java programs. Applets are a bit harder and you should learn more first.

Edit: Sorry btw, just saw the age of this post.
Posts 15 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

Need help?