I run NetBeans 8.2, NetBeans 11, and NetBeans 11.1 daily on a Windows 10
Professional desktop. I've never had any trouble installing or running
the platforms.

For this mix, here's how I do things.

1. Download OpenJDK 11.0.4 from adoptopenjdk.net

Download the appropriate zip file (64 bit version for me).

2. Unzip it in a reasonable place

I usually put 64 bit code in D:\Programs-x64. This way I don't have
spaces in directory names in case there are legacy issues with spaces on
Windows. I also don't want to clutter up a limited size SSD (I should
really get a larger one).

3. Edit some environment variables

3.a. Add JDK_HOME to point to the location where you unzipped the openjdk
3.b. Add JRE_HOME to point to the location where you unzipped the openjdk

Please note that the location of the server JRE has changed, and it is
now mixed in with the JDK. In short, both java, and javac are in the
same subdirectory (bin).

I set JRE_HOME since Apache Tomcat makes use of that environment
variable if set.

3.c. Edit the PATH environment variable
1. Add %JDK_HOME%\bin to the path
2. Remove any previous JREs from the PATH (for me, %JRE_HOME%\bin)

3. If you have JDK / JRE 8 installed (I do)

Remove C:\Program Files (x86)\Common Files\Oracle\Java\javapath (or
wherever it is) from the path.

4. To verify that everything is installed correctly, open up a
PowerShell Window and type:

4.a. java -version
(you should get the following)
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.4+11, mixed mode)

4.b. javac -version
(you should get the following)
javac 11.0.4

4.c jshell
(you should get the following)
|  Welcome to JShell -- Version 11.0.4
|  For an introduction type: /help intro

jshell>

Ctrl-D should exit jshell.

5. Download the Apache NetBeans 11.1 zip file

6. Unzip it somewhere appropriate - I use D:\Programs\Apache

7. Launch the netbeans64.exe file from the directory

I usually tweak the netbeans.conf file for larger fonts, UTF-8, and some
other things. However, that's beyond the scope of these installation
notes. I also add the JDK 8 installation under Tools -> Java Platforms
since I still have projects that require JDK 8 (servlet specification
2.5, sigh).

I hope this gets you running.

. . . . just my two cents
/mde/

On 9/22/2019 5:08 PM, Carl Burke wrote:
> I did as you suggested and unzipped the ZIP file. I get the same error:
> 
> Error occurred during initialization of boot layer
> java.lang.module.FindException: Module jdk.jshell not found
> 
> I have never heard of jshell before, but when I'm in the netbeans\bin
> directory I can run it, so it's clearly present in the system.
> It just isn't found by netbeans64.exe.
> 
> 
> ----- Original Message -----
> From: "Geertjan Wielenga" <geert...@apache.org>
> To: "Carl Burke" <cdbu...@his.com>
> Cc: "users" <users@netbeans.apache.org>
> Sent: Sunday, September 22, 2019 3:00:15 PM
> Subject: Re: Netbeans 11 won't launch in Windows 10
> 
> Nothing needs to be moved or separated when you use the installer. I’d
> recommend you start from scratch with 11.1, if you’re having problems with
> the installer, unzip the ZIP file instead.
> 
> Gj
> 
> On Sun, 22 Sep 2019 at 20:14, Carl Burke <cdbu...@his.com> wrote:
> 
>> I've got a brand new laptop, just installed AdoptOpenJDK 11 and Netbeans
>> 11.1, and Netbeans will not launch in Windows 10 (1809). I have run
>> previous versions of Netbeans on other Windows 10 systems, including with
>> AdoptOpenJDK, but those were with Java 8 and earlier releases of both
>> Netbeans and Windows 10.
>>
>> There were some issues getting the installer to run: since AdoptOpenJDK
>> does not bundle a JRE under the JDK, the JRE had to be moved and renamed
>> from it's separate installation so that the installer would find both the
>> JRE and the JDK. However, after that was done the installer appeared to
>> work fine.
>>
>> When I try to launch Netbeans 11 by clicking the desktop icon, nothing
>> visible happens. When I open a command shell and run .\netbeans64.exe from
>> the Netbeans bin directory, I get:
>> <<
>> Error occurred during initialization of boot layer
>> java.lang.module.FindException: Module jdk.jshell not found
>>>>
>> This happens whether I add --jdkhome "C:\Program
>> Files\AdoptOpenJDK\jdk-11.0.4.11-hotspot" to the command or not;
>> netbeans.conf has the uncommented correct value.
>>
>> Typing jshell in that directory opens JShell 11.0.4, for whatever that's
>> worth.
>>
>> There is no {user}\AppData\Roaming\Netbeans directory, so no log output to
>> be had, possibly because the IDE never gets that far.
>>
>> Any suggestions how I might run Netbeans in this version of Windows 10? Do
>> I need to fall back to Java 8 and an earlier Netbeans as well?
>>
>> --
>> Carl Burke
>> cdbu...@his.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> 


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to