Showing posts with label netbeans IDE. Show all posts
Showing posts with label netbeans IDE. Show all posts

Thursday, 5 January 2012

Netbeans 7.1 is out but watch out before you grab that hot cake!

Good news Netbeans 7.1 is out with lots of support for the latest technologies ie JavaFx 2.0, Java EE 6 and JDK 7 but there are a few gotcha's if you decide to jump on-board now.


NB: I'm one of the noisiest Netbeans preachers wherever I find myself trying to win some eclipse souls. I just love the software but these gotchas are so raw I just want to warn you.

Netbeans 7.1 does not work with Subversion 1.7 period! So if you have just bought a new pc and you are setting up a new development environment or upgraded your subversion, or your company uses subversion 1.7, Netbeans 7.1 is not for you.

I now have to downgrade my subversion to use this but the advantages from Netbeans outweigh the downgrade so will have to. I have tried all the hack and command line client noise they usually throw at you and it just didn't work so don't bother trying

  • The JavaFx 2.0 project format in Netbeans have changed since the 7.1 RC2 so if you created your nice JavaFx 2.0 project with any of the previous Netbeans versions, such as 7.0.1, 7.1 beta or any version before the 7.1 RC2, your JavaFX 2.0 project will not run! The ant targets have changed and there is no migration support, so the only option is to recreate a blank project and copy your files manually.
  • Unfortunately, I don't have the patience for some other IDEs so my only options are to downgrade and to copy my files from my JavaFX 2.0 projects but I know its worth doing.
If you have any substantial development going on, then watch out before you grab that hot cake!

Tuesday, 3 January 2012

How to Set VM Arguments for Server in Netbeans - Solving PermGen space effectively

I'm an avid heavy Netbeans user but for some time now I have been fighting with a Horrible PermGen space error when debugging a Tapestry application.

After setting all the Options and environment variables in netbeans.conf, nbactions.xml, as a global environment variable, catalina.bat etc I still couldn't pass the VM options to the registered Tomcat server untill today I realised that, it's in the same place as you register the server!!!

And this took me ages to figure out (yea, daft me! ) so I'm sharing it here for my own reference and for anyone who runs into this.





Tuesday, 3 August 2010

Top 10 Netbeans IDE Java Editor Shortcuts. Required for Daily Editor Usage.

These are my top 10 basic Netbeans Java Editor shortcuts that I use all the time everyday.
Hope it helps you increase your productivity.

1. Commenting. (This works in all Standard IDE editors, not just the Java editor). The commenting works regardless of the language, it will comment it appropriately. You can try it in the css editor or the XML editor


If no text is selected, the current line is commented appropriately.

2.Duplicate Current line.


3.Find implementation of an interface
With the cursor on the name of the interface,

When the list turns up, you can just click to open that class or use the keyboard to select and press enter

4. Fix Imports


5. Open class by name

Supports Camel case search and wildcards
To open any Resource ie css, html, text file use


6.Formatting

if no code is selected, the whole class file is formatted.
The formatting is controlled from that specified in Tools -> Options -> Editor -> Formatting

7.Rename a variable, class or method


8. Insert Some code.
This is one of the most used shortcut. Loads of options just appear when pressed.
The best way to utilise them is to generate getters and setters. declare all those properties,
and then press ALT+INSERT(Insert Key on the keyboard)
It works in a lot of editors, for example, in the html editor, you can easily generate Lorem Ipsum place holder.



9. Toggle Bookmark.
This helps when your file is very large and you keep scrolling up and down.

If the line is bookmarked already, the bookmark is removed and vice versa

10. Navigate bookmarks.
You can easily jump between bookmarks by pressing


Coming up next, Letting the IDE do the unnecessary typing. Stay tuned