Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7844673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:57:29+00:00 2026-06-02T16:57:29+00:00

I am using Netbeans IDE 7.1.1 on ubuntu 11.10, when I try to create

  • 0

I am using Netbeans IDE 7.1.1 on ubuntu 11.10, when I try to create JAVA project using File-> New Project-> JAVA Project-> JAVA Application, it shows me the following error:

The JDK is missing an required to run some NetBeans modules. Please use the –jdkhome command line option to specify a JDK installation or see http://wiki.netbeans.org/FaqRunningOnJre for more information.

So I used the following command

sudo update-alternatives --config java

and the result was:

    Selection    Path                                           Priority   Status
------------------------------------------------------------
    0            /usr/lib/jvm/java-6-openjdk/jre/bin/java        1061      auto mode
    1            /usr/lib/jvm/java-6-openjdk/jre/bin/java        1061      manual mode
  * 2            /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java   1051      manual mode

I tried to run through terminal using the following command:

netbeans --jdkhome /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java

but I got error:

Cannot find java. Please use the --jdkhome switch.

and netbeans doesn’t start as well.

I tried this command using every path which I found through this command also:

whereis java

but every time I got the same error and netbeans doesn’t start.

in netbeans config file (/usr/local/netbeans-7.0/etc/netbeans.conf) jdkhome path is :

netbeans_jdkhome="/usr/lib/jvm/java-7-openjdk-i386/jre"

when I tried to run netbeans using this path through this command:

netbeans --jdkhome /usr/lib/jvm/java-7-openjdk-i386/jre

netbeans runs but when try to create project the same JDK missing error is displayed.

One interesting thing also I encountered, if I use Eclipse every thing goes fine, I am able to create projects in eclipse and programs run smoothly.
Eclipse doesn’t show any wanning or errors like JDK is missing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:57:31+00:00Added an answer on June 2, 2026 at 4:57 pm

    I use Netbeans 7.1 on Ubuntu 11.10 and it works great, I didn’t need to specify anything extra to get the JDK working. Here is my update-alternatives:

    Selection    Path                                      Priority   Status
     ------------------------------------------------------------
      0            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      auto mode
    * 1            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      manual mode
    

    How did you install Netbeans 7.1? As far as I remember it is not in the repositories. I used the GUI Swing installer from the Netbeans website. I installed it as a user not using sudo or su.

    Also check how you run Netbeans, try going to NETBEANS/bin folder and running ./netbeans.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Netbeans IDE for a java project. In this project i need
I'm new to using the NetBeans IDE. When I try to look at the
When using Eclipse or NetBeans IDE on a Java project I get to see
I'm building a internationalized application based of Java using Netbeans IDE, I´m trying to
I am building an application in Java using Netbeans IDE. I am trying to
I am using NetBeans IDE and have created a new project. The new project
I'm using the NetBeans IDE. Normally, every PHP file in my project has code
I'm developing a desktop application using NetBeans IDE. 1) I'm opening a new JFrame
I'm developing a project in Java using netbeans IDE and I need to disable
I'm new to C++, and preparing a homework by using NetBeans IDE on Ubuntu

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.