So if you're gonna use windows in programming a java language, use "JCreator". Just download and install it, then you can start. You can also use netbeans or eclipse. But I'm recommending you to use JCreator cause it's easy to use. If you need help in finding JCreator on internet just comment on this post.
If you are going to use Linux operating system, use the "text editor" in typing your codes. Then compile and run your program in terminal. But you had install first "sun java" on your system before get started.
Enter this command in terminal one by one to install java:
- sudo add-apt-repository ppa:sun-java-community-team/sun-java6
- sudo apt-get update
- sudo apt-get install sun-java6
In compiling and running the program in terminal, the first thing to do is to search the directory in terminal where your file located. Then compile and run it.
javac filename.java - use this command in compiling your program. Note: filename is the name of your file, so it's not static.
java filename - then use this command in running your program. Note: if you made changes on your program, compile it again before running it so the changes you made takes effect.
No comments:
Post a Comment