Compile and Debug Java

I’d ask this method which is best.


public void printBestIDE()
{
    System.out.println("Eclipse!!! The Best of all!!!");
}

I like it’s look, speed, syntax colours, its integration with host os and whatnot, everything.

I have fallen in love with Eclipse, and it has solidified my ignorance of other IDEs, because it works for me the best.

In the end, they are your tool; and with me, Eclipse has the longest history of key-bindings, themes, and experience. Not to mention that I clearly cannot afford 24 hours to port those to NB or Intellij.

[sup]I like key-binding more than I would like to admit… :persecutioncomplex:[/sup]

-wes

Sometimes I think the only plausible explanation is that there is a huge Stockholm-Syndrom epidemic around the eclipse user base. :stuck_out_tongue:

I switched from Eclipse (used it for 1/2 of my java time) to IntelliJ. I really like it.

ra4king switched to IntelliJ from Eclipse, too :wink:

I mainly use Eclipse for the same reason I mainly use Windows. For some things I commonly want use to…it’s the only option.

I switched from Intellij to Netbeans, then Netbeans to Eclipse.

I’ve used all three IDEs and tried to get comfortable with them. However, I think the only reason I’m using Eclipse is because of the ease of using LibGDX with it. I’ve had some issues with Eclipse completely forgetting my workspace, but overall I didn’t eat huge errors where I lost big chunks of my code. It also has good repository support for GIT, which is a must for me.

Intellij lost out when I tried to use Mercurial with it. Netbeans had good support for it so I switched. Then Netbeans had horrible support for easily integrating Android and at the time I needed a fast solution so I moved to Eclipse Ganymede and never upgraded or looked back.

To be honest, all the IDEs are not hard to use, they just have little feature differences to get used to. I guess I won’t understand the war behind it as well as you folks. I’m using eclipse now, but I follow the IDE that suits my needs. Maybe it is the fact I am using Notepad++ in Windows to quick fix my code that doesn’t leave me dependant on the IDEs as much…

Everyone may already know these; they save me from having to click around Eclipse’s menus quite often.

Alt + Shift + R = rename the variable, method, or class your cursor is currently on, amazing for cleaning up class and method names!
Ctrl + Shift + G = find all references to the variable, method, or class your cursor is currently on.
Ctrl + PageUp/PageDown = cycle through currently open files.
Ctrl + Shift + left/right arrow = select the next portion of text on the line, if the text in front of the cursor is a variable name in TitleCase/camelCase, it highlights up to the first capital letter and subsequent arrow key presses highlight the next portion of the name.

[quote=“samuvk,post:1,topic:47279”]
I’d strongly advice starting learning how to make a java program using notepad + the commandline prompt first. Otherwise you’ll really have no clue as to what is going on whenever you run into a problem.

Also, no matter whether you use Eclipse, Netbeans or IntelliJ, they (usually) all use the same compiler: the Oracle one, and sometimes OpenJDK:

  1. You write the program in text (a .java file)
  2. A java compiler (javac.exe) compiles it to Java bytecode (a .class file)
  3. You can then run this bytecode using the JVM (e.g. java myapp command)

A development environment like Eclipse does not compile anything, its just a glorified text editor.

Wow…that’s like totally wrong. (I’m not advocating Eclipse in any way…this statement is totally incorrect). Now all compliant java AOT sdon’t perform any transformations (other than lowering to bytecodes) but that’s required to be compliant.

Eclipse has css themeing, code formatting and templates, auto import etc.

I have no idea if netbeans has any of this, my attempt to use multiple logical hot keys leads to random commands that make no sense.

Also the android ST kit that you can plug into it…is amazing and extremely simple to use.

Eclipse > Intellij > Netbeans. IMO

but what about BlueJ?

Would you mind sharing with me why this statement would like be totally wrong? :wink:

Because it’s like saying: “X is just a glorified binary image loader” where X is any OS that is or ever will be.

ITT: IDE debate on Eclipse/Netbeans/IntelliJ.

Yeah ok, you have a point. What I was trying to say is: Eclipse is not a compiler, it is an IDE (which is essentially a glorified text editor). :wink:

yawn

IDE wars v242.

Bzzz. Wrong answer. Eclipse has a built-in compiler framework. :wink: Examples: http://strategoxt.org/Spoofax, https://www.eclipse.org/xtend/, etc. etc. Like binary image loading in a OS…text editing is required but only a tiny part.

@Troubleshoots: I’m advocating any IDE…just partial sanity.

Whoa, I kind of knew that but I also did not know that. You are right, of course.

Anyways, using an IDE is definitely very very useful. However, for learning purposes notepad(++ with syntax highlight) + command line works quite well.

Personally I think using an editor + command-line is a poor first choice. It adds a needless extra complication for a beginner…keep it simple use an IDE which gives you realtime feedback.

Yeah maybe youre right, depends a bit on the beginner I guess. When I was learning Java I already knew C, Assembly and quite a bit about the hardware and operation system. But if you miss that background it may be a bit too much to start with learning how a virtual machine works etc…