GlassFish 4.1.2 updatetool / pkg tools crash - missing pkg-bootstrap

Summary: pkg-bootstrap.jar and related files are missing in the latest GlassFish 4.1.2, and this prevents updatetool from starting. What is the correct way to install and run updatetool on Windows 10?

In detail: I worked with the Java EE 7 tutorial and downloaded the Java EE 7 SDK Update 3 (not a web profile), which is based on GlassFish Open Source Edition 4.1.2. I had a problem launching updatetool on Windows 10. When I start it, it gives me the opportunity to install it myself, but the installation fails. It looks like the update tool uses the pkg tool, and it uses pkg-bootstrap for installation for the first time. However, this is no longer included in GlassFish 4.1.2. The following errors occur when starting updatetool:

C:\glassfish4\bin>updatetool

The software needed for this command (updatetool) is not installed.

If you choose to install Update Tool, your system will be automatically
configured to periodically check for software updates. If you would like
to configure the tool to not check for updates, you can override the
default behavior via the tool Preferences facility.

When this tool interacts with package repositories, some system information
such as your system IP address and operating system type and version
is sent to the repository server. For more information please see:

http://wikis.oracle.com/display/updatecenter/UsageMetricsUC2

Once installation is complete you may re-run this command.

Would you like to install Update Tool now (y/n): y


C:\glassfish4>"C:\Program Files\Java\jdk1.8.0_121\bin\java" -Dimage.path="C:\glassfish4\bin\\.." -jar "C:\glassfish4\bin\\..\pkg/lib/pkg-client.jar" refresh    
Error: Unable to access jarfile C:\glassfish4\bin\\..\pkg/lib/pkg-client.jar

C:\glassfish4>"C:\Program Files\Java\jdk1.8.0_121\bin\java" -Dimage.path="C:\glassfish4\bin\\.." -jar "C:\glassfish4\bin\\..\pkg/lib/pkg-bootstrap.jar" "C:\Users\[userid]\AppData\Local\Temp\pkg-bootstrap21687.props"    
Error: Unable to access jarfile C:\glassfish4\bin\\..\pkg/lib/pkg-bootstrap.jar

C:\glassfish4\bin\pkg Java EE 7 SDK Update 3, GlassFish 4.1.2. , glassfish4/.org.opensolaris,pkg glassfish4/pkg glassfish-4.1.2-b03-02_25_2017 glassfish-4.1.2-b03-03_07_2017. , , , updatetool. , glassfish-4.1.2-b03-02_25_2017 c:\glassfish4 ( Java EE 7 SDK Update 3), , , . , , , , .

, . updatetool GlassFish 4.1.2?

jdk1.8.0_121 jre1.8.0_121.

.

+4
5

, DevDevDev.

:

http://download.oracle.com/glassfish/4.1.2/nightly/index.html

:

GlassFish-4.1.2-b03-02_25_2017

http://download.oracle.com/glassfish/4.1.2/nightly/glassfish-4.1.2-b03-02_25_2017.zip

:

/glassfish4/

/glassfish4/.org.opensolaris,pkg

DevDevDev , , ... ... , - . DevDevDev !

+5

Java SE. JAX-WS, , .

, , :

  • ( glassfish4)
  • ( )
  • voilá

, , : https://forums.netbeans.org/post-91328.html

netbeans plugin Manager:

Java EE

!

0

. , Glassfish 4.1 Update, doc of oracle , SDK 6 (glassfish 3), Java EE 6 SDK Update 3, , - JDK 7. JDK 10, .

.exe , SDK, .exe. :

java_ee_sdk-6u3-jdk7-windows-x64.exe -j [JRE-Home]

note, - .exe , JRE Home, :

java_ee_sdk-6u3-jdk7-windows-x64.exe -j D:\JDK\jre

0

, - Windows . , README, :

jar xvf glassfish-4.1.zip

, pkg .

0

? , . , :..../glassfish4/docs/javaee-tutorial/

0

Source: https://habr.com/ru/post/1677395/


All Articles