This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 262722 - After installing JDK and netbeans as non-root user Java modules not activated
Summary: After installing JDK and netbeans as non-root user Java modules not activated
Status: RESOLVED WORKSFORME
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: PC Linux
: P1 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-07 23:58 UTC by ajeh
Modified: 2016-08-09 23:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ajeh 2016-07-07 23:58:49 UTC
Installed today's JDK 1.8.92 RPM.
Ran netbeans8.1linux.sh,  selected /usr (1.8.92 by Oracle) as JDK home on the first tab of install wizard.

Under GUI Builder seeing this:

The JDK is missing and is required blah-blah
Please use --jdkhome command line option to specify a JDK
installation or see http://wiki. blah-blah

Under Maven:

Not all requested modules can be enabled: [StandardModule:org.netbeans.module.maven.kit jarfile:
/home/user0/netbeans-8.1/java/modules

Only after deleting the above path and re-running .sh as root it started working.
Comment 1 Tomas Hurka 2016-08-09 07:49:22 UTC
/usr directory is never JDK home directory. 
The messages from BUI builder and from Maven clearly show that you are running NetBeans on JRE instead of JDK. More information is visible in messages.log. 
If you still believe that there is a problem please use step-by-step description how to reproduce it. Also attach messages.log, so we can get detailed info. Thanks.
Comment 2 ajeh 2016-08-09 23:22:17 UTC
If Oracle provides JRE under JDK download that will have to be fixed on your end.
If Netbeans needs another directory, /usr should not be in the list.