# can't run projects on netbeans

Ok here's the skinny, i'm new using linux (striving to be be a sysadmin one day), and i had trouble installing netbeans but managed through. I installed both JDK and JRE as well. So when i try to open a new java project i get a message saying that JDK is not installed...and then i get another error message stating that these bunch of modules are not found....help anyone? please?

edit retag close merge delete

I'm pretty sure you can set JDK path inside netbeans

( 2016-11-17 07:51:25 -0500 )edit

Sort by » oldest newest most voted

It's a two step process. First, you have to setup the JDK path. When you originally installed it, it asked where your JDK was and had a default value that was generic. You'll have to edit the path. The path for me was under /usr/java/Jdk...

I don't remember the exact folder, you'll just have to look in your directories. The other thing was having to activate the installed plugins. I believe if you click tools -] plugins, it will take you to the right place to activate.

--Edit-- (Now in front of my computer)

Set JDK

 **open:**
/home/rodney/netbeans-8.2/etc/netbeans.conf

**set this line:**
netbeans_jdkhome="/usr/java/default"
(on my system, this is where my jdk is)

**save, close**


Activate Plugins

When you open netbeans, if you go to Tools -> Plugins. It will open up the Plugin window. The tab that shows installed will need to be selected. In the left window pane, select all the options and hit the button that says activate on the bottom. That activates all the plugins or compilers in this case.

more

I'm not using Netbeans myself but if you downloaded the "all in one" bundle you will have a jdk installed for sure. Not sure if Netbeans installer will get it right though, according to oracle doucemntation it won't replace system jdk. It has some installer instructions though, maybe you didn't get the JDK right and need to change it in netbeans?

Installing the Software Type the following command from the directory where you placed the installation file: ./<installer-file-name> At the Welcome page of the installation wizard, click Next. At the JUnit License Agreement page, decide if you want to install JUnit and click the appropriate option, click Next. At the JDK Installation page, specify the directory where to install the JDK and click Next. At the NetBeans IDE Installation page, do the following: Specify the directory for the NetBeans IDE installation. Accept the default JDK installation to use with the IDE or specify another JDK location. Click Next. Review the Summary page to ensure the software installation locations are correct. Click Install to begin the installation. At the Setup Complete page, provide anonymous usage data if desired, and click Finish. When the installation is complete, you can view the log file, which resides in the following directory: ~/.nbi/log. Note: If you choose to install this bundle into a system-wide location such as /usr/local, you must first login as root to gain the necessary permissions.

more