Compile and Debug Java

Hi All,

I’m Totally new in this World in I would like to know if there is any free compiler easy to use that you would recommend.

Thanks

Let’s say that I have the following code and I want to run it. I would like to have an easy and intuitive compiler instead of going through the promt.

Thanks again

public class HelloWorld{

 public static void main(String []args){
    System.out.println("Hello World");
 }

}

Er … what?
If you made this in a text editor: Use Eclipse or Netbeans like most people do.
So whats your problem?

https://netbeans.org/downloads/

Hope that helps :0

Or intellij. But Eclipse is probably the most common, its nice but it isn’t the best.

Thanks. I’ll try with netbeans

Mind if I ask what you prefer? Why is Eclipse not the best?

I ask because I have used netbeans and HATED IT with a passion, never used intellij. I find Eclipse very good, it acts strange sometimes but I have mine setup with custom color scheme and such, something that afaik is harder in other IDE’s.

Well I’ve actually never used intellij (besides for Android Studio which is based off intellij), but I’m told its much better! Eclipse is just clunky and has some weird issues sometimes, but it’s good.

I agree 100% with you on the netbeans thing though :stuck_out_tongue: Funny how much one can hate an IDE!

IL2P%SE I3 THS BESD IDI OT TERE ITX A FAST SORU BAD ENSIH GRAMMWE NAD TIPIK SKIZ

I hate Eclipse with all my beloved hate.

Netbeans is awesome, at least for me.
But i do use eclipse for libgdx builds… I kinda transfer the src folder and just build it there for android :stuck_out_tongue:

Now, dont come saying eclipse is better because both are good.

why?

Because it depends on which one you use first.
If you download eclipse as your first IDE, you fall in love with it and hate everything else.
If you download netbeans as your first IDE, you fall in love with it and hate everything else.
If you download intelij as your first IDE, you fall in love with it and hate everything else.

No, I genuinely think Netbeans is a bad IDE. Don’t tell me I can’t hate it, I do because I have used it before and have had bad experiences with it. I like Eclipse better. If you are offended because I do not like your favorite IDE then you need to take a step back and cool off.

You just said you hate Eclipse yourself Andre. Don’t be a hipocrite and then tell others not to be one.

Uh, you’re wrong.

I tried Eclipse first and it is the best IDE and I love it… I’ve hated everything else I’ve tried! Only a fool would use something else!

… gah… throws hands up in the air idiots.

I’m partial to Eclipse myself, though I started with Netbeans.

I personally think it can be kind of fun to use a text editor and compile from the console, just so that you’re really on your toes with your syntax as you’re learning.

IntelliJ instantly loses because you have to pay unless you’re working on open-source projects.

Eclipse and Netbeans seems to be pretty equal, although from what I’ve seen Eclipse is more popular.

Netbeans (at least the versions I’ve used) has a lot more quirks.

My favorite one (the one I hate the most):
The keyboard shortcut to delete a line is Ctrl + E by default. When programming I frequently highlit enter lines of code and use the shortcut to delete that line quickly. Well, Netbeans, being the smart mofo it is, decides to actually delete the line below the selected line as well. I just cannot comprehend who the hell thought that was a good idea. The shortcut is rendered completely useless because of that one flaw. Now again, this might be fixed in newer versions but that’s only one of the many things I have found about Netbeans that makes me just angry…

If it wasn’t obvious from my over sarcastic post, I use Eclipse. It really just “gets the job done”. I’ve never had any reason to even bother trying any other IDE. Also helps that since Eclipse is so popular it’s easy to find plugins for it, or if you’re have some oddball problem you can pretty much google just about anything about it and find a solution.

But my opinion is sort of invalid, since I have not even bothered with other IDEs.

I found Netbeans first, used it for some years, then tried Eclipse, now I use that for most things, but I’ll still use Netbeans if I want quick GUI prototyping or just the simple convenience of the built-in VisualVM. Have yet to try IntelliJ, mostly for the reasons Heroes cited.
Never hurts to have more than one hammer in your toolbox.

Ctrl D deletes a line
Ctrl T opens a class chooser to easily switch between files
Ctrl Up/Down copies and pastes the current line you are on in the direction that the currently hit arrow key is pointing.

There are a lot more but those are the top three I use besides the formatting and saving shortcuts.

My fav so far is CTRL+clicking an object’s method and going straight to the it’s method in it’s class. :smiley:

Makes it really easy when you have a brainfart and forget where you put something.