Question:
What is the Best and Efficient Way to Compile and Run java Program?
tmcderricktan
2008-03-30 03:16:45 UTC
There are many ways to run java program, appreciate who could guide the best and easier way to compile and run it faster easier.

step by step guide and details
Thanks
Five answers:
anonymous
2008-03-30 04:26:01 UTC
Use NetBeans, it is capable of textbook code. Other IDEs require you to learn their way of coding.



NetBeans IDE catches your code syntax errors and NetBeans slams the PATH and CLASSPATH in front of your java code whenever you javac or java your program. Your code can reside anywhere on your computer and thus lets you build a library.



NetBeans also highlights your code in colors.



NetBeans builds your .jar files correctly because of how the folders are structured.
?
2016-10-16 03:34:31 UTC
a million installation java SDK it relatively is unfastened 2. verify / supply course in device variable course cutting-edge in strengthen configuration. 3. In plane programming Editor like Notepad++ create java application with document extension .java 4. JAVAC sourcefile.java ( compllation will create type document ) 5. JAVA courcefile.type OR installation Eclips or NetBeans & use at as quickly as
MMM
2008-03-30 03:27:53 UTC
Use an editor like Textpad http://www.textpad.com/ (the evaluation version is free and fully functional, only popups up a purchase dialog window intermittently but its fine. It works best for me).



First install the jdk and then install this editor. Write your code in it and then press Ctrl+1 to compile and Ctrl+2 to run your program. Its easy and fast.



There are other options too like more sophisticated ide like jeditorpro but they are not free. These ides are more helpful if u want to make a big project.



For simpler stuff, Textpad is the way to go



Hope this helps

MMM
chaot
2008-03-30 17:05:12 UTC
I would personally recommend BlueJ. I believe it is similar to NetBeans, but it's what I was introduced to, and I love it. It checks your code for compile-time errors, and even gives you hints as to how to fix the problem. It's extremely user-friendly, and you can even set up your own templates. For example, you can create a template for classes, so that when you create a new class, it already has the name, and any other lines of code you included in the template.
Jennifer L
2008-03-30 03:21:18 UTC
javac a.java

java a


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...