Ask Your Question
0

can't run projects on netbeans

asked 2016-11-16 22:07:25 -0500

Carlos99 gravatar image

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 flag offensive close merge delete

Comments

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

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

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-11-17 12:31:56 -0500

Rodneyseales gravatar image

updated 2016-11-18 21:05:01 -0500

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.

edit flag offensive delete link more
0

answered 2016-11-17 10:15:38 -0500

elwis gravatar image

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.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2016-11-16 22:07:25 -0500

Seen: 1,451 times

Last updated: Nov 18 '16