I have been using Eclipse at work and IntelliJ Idea at home for quite some time and find both very good. But do you really need a full fledged IDE when you are just trying out some basic java code or samples which dont run into hundreds of lines of code. You could very well use some notepad app for that, but would still miss things like adding external libraries, compiling and running your main program quickly etc. You would definitley need some basic ide without much fuss.
Just out of curiosity, I started looking around for a light weight IDE for java and TIDE popped up on google. Commentors on forums urged to use this one as it was very simple and small to get started, no installation required and works well for pure java projects. Sure enough, the entire application is only a jar file just under 4MB. Now thats impressive. I downloaded the jar from sourceforge and got started with it.
Fired it up using command
java -jar tide.jar
and there is was, a tiny IDE at work! It asked for basic configuration like project location, jdk installation location etc and in few quick clicks I was ready to go!
The interface is very simple and functional and themeable with tabs for different things like the console output, compile messages etc. Creating and editing packages and classes is quick and without a fuss. The tiny ide has excellent menu items useful for setting up projects, configuring and running applications, support for external tools like ant, git, subversion, PMD, findbugs etc. So if you depend on either of these for project work, you can enjoy the support this IDE provides.
I was able to setup a small project and execute it in no time. Tide also provides for class templates and autocompletion capabilities which you can extend and add some more of your own. The only down side I encountered was that the ide is purely for java, so much so that the only files I could create or edit were java classes. I found no way to add an xml config file, or a properties file in the project, which kind of defeats the purpose of an ide, but you can always add/edit these files externally. Opening the project location as a directory in sublime will support this very well.
What suprises me is that the developer has packed in so much functionality and third party support into this application and made it available as a runnable jar which does not really need any additional setup to run. This definitely come as a boon for less powered machines which may find it heavy to run eclipse or idea. So if you are low on resources or cant spare much memory Tide would be a good fit.
To be able to run tide from the command prompt, I tried a little hack and seems to work perfectly. I created a shell script to launch the jar using the above command and added an ampersand sign to it. so contents of the script are like so
java -jar /path/to/my/tide.jar &
This will execute the java code and set it as a background process in linux, this frees up the terminal and you can continue working with something else.
Also I created a softlink inside the /usr/bin folder using sudo rights and point it to my script which in turn launches tide.
sudo ln -s /path/to/script tide
This hack now allows me to execute tide from anywhere on the prompt, and it fires up the teeny tiny ide to get on with some quick code. Try it out, you’d be impressed!