Skip to main content

Netbeans Missing New Project Categories

Jump to solution. (Skip stupid story.)

It was raining outside and it was a dark and said day and there was nothing to work on when I decided to give a try to Netbeans in J2EE development. If you have read my blog before you must know I am an Ubuntu user. Actually not a fan. I am not loving anything easily. But I am in general very satisfied with Ubuntu. I like it very much. Am I a fan? Together with its problem too. But from time to time I am running into problems which can make life harder than .... than is should be. (Life is hard anyway. It does not matter if you are Linux Windows or Mac OS user. So hold on your arguments about it. :) )

Back to the point I have Ubuntu Gutsy which currently contains Netbeans 5.5. So I started it and wanted to start a new project. What a surprise I have seen I could not. There were no menu items besides import existing ant project what I could reach. Holy s.... something! What is this? I was asking.
Tried to purge package and reinstall but no luck. So finally I concluded that the problem is around Netbeans 5.5. What can people do than? I have taken the lattes version Netbeans 6.0 and tried. Much more surprise I had the same situation. No menu to create new project. I started to think about some kind of global conspiracy and decided to unveil it so the day just turned darker.

So first started to Google around. It almost always helps. And I found ideas to delete the ~/.netbeans directory and restart IDE. It did not help me too much. Also find some idea to use different java version. Which also did not help me.
What helped me was deleting ~/.netbeans AND using a Sun java version together. Even java 6 or 5 from Sun. (Anyway you can specify the java version as a netbeans command line parameter like: $ netbeans --jdkome /usr/lib/jvm/java-6-sun )
So I would have sat back and enjoy it. But I wanted to know what was wrong. So first checked that the java version which prevented me to use netbeans was icedtea-java-7. The other thing I had to realize - and primarily made me to investigate it - was that if you ever started netbeans with icedtea-java-7 you can not start it after even with the sun java without deleting ~/.netbeans . This is very uncomfortable since you can loose your settings I decided to find out what was the problem. I do not think that you are interested how I did it but here is the result and how to correct it without loosing your settings.

Solution:
$ rm -rf ~/.netbeans/6.0/config/Modules

Simple right?
If you are missing New Project Templates in Netbeans and you have started netbeans ever with IcedTea Java 7 - or any other "unsupported one" - first use only SUN Java as long as this error is not corrected to run netbeans. I do not know if this is an error in Iced Tea Java or in Netbeans and do not care too much anymore. To correct the problem completely delete ~/.netbeans/6.0/config/Modules and restart Netbenas with a Sun Java. This directory will be recreated and you can enjoy the newly available menus without loosing your settings.

Hope it helped you too.

Comments

Popular posts from this blog

Insufficient Disk Space reported under wine

Did you try to install/setup any Windows Application - actually a Game what else could be necessary - and got a message that you do not have enough free space on your drive meanwhile you had lot of free space on the chosen mounted partition? You will learn the problem and hopefully the solution too. (Of course I suppose it is not the real situation you have no enough space. If so do not read ahead.) The problem is that wine does not check the amount of free space on the mounted partition corresponds to the selected directory but reports the free on the root of the directory the partition mounted to . ;( Probably it is not clean so here is an example: Let say you have / only and something is mounted as /mnt/part1 If you directly select /mnt/part1 during installation wine will check free space in fact on / and does not calculate free on the partition mounted under /mnt/part1. How to solve it you may ask? It is easy. Start winecfg and create a new drive with the directory you want to use....

User based queue mapping for Capacity Scheduler

When I  started to use Capacity Scheduler hierarchical queue features on top of Hortonworks' HDP 2.0 I have immediately realized that I need automatic assignment of job to queue based on username. Sounds easy and useful? Yes! But could not find any configuration parameter and example for that. I found only references to use mapred.job.queuename config option. This can be configured in HIVE via set mapred.job.queuename=yourqueue or using -Dmapred.job.queuename=yourqueue as a hadoop command argument. After some hours of unavailing googling I have checked the corresponding code part and have been shocked. This is available only since HADOOP-2.6 (HDP-2.2). Check YARN-2411 for details. According to the CHANGELOG this is a relatively new feature. So sadly this is not available to me until an upgrade. :( See below an example based on YARN-2411 to use it in Hadoop 2.6 or higher for Hortonworks HDP-2.2 1. user1 is mapped to queue1, group1 is mapped to queue2: yarn.schedul...

Ansible ec2 module "region must be specified" issue

Some month ago I made an Ansible based autoinstall for Hortonwork's HDP 2.2. Since HDP 2.2.4.2 is out I wanted to update my install process and test how it works. However I had to realize that my previously working ansible playbooks are failing with an error message. TASK: [Launching Ambari instance] ********************************************* failed: [localhost] => {"failed": true} msg: region must be specified FATAL: all hosts have already failed -- aborting First I have checked my ansible, eucalyptus and boto config. However everything was fine. So I have checked the code of the ec2 module of ansible and found the error message in the source. # tail -n +1205 /usr/share/pyshared/ansible/modules/core/cloud/amazon/ec2.py|head -17 ec2 = ec2_connect(module) ec2_url, aws_access_key, aws_secret_key, region = get_ec2_creds(module) if region: try: vpc = boto.vpc.connect_to_region( region, aws_access_key_id=aws_access_key, aws_secret_access_key=aws_secr...