Db2

Db2

Connect with Db2, Informix, Netezza, open source, and other data experts to gain value from your data, share insights, and solve problems.

 View Only

DCW MacOS Big Sur Patch Instructions

By Jordan Hodges posted Mon December 07, 2020 01:13 PM

  

DCW MacOS patch

Problem:
DCW is unable to launch on MacOS platforms with Big Sur (MacOS v11) update.

Error seen:
When ./dcw is executed in a terminal window, following alert window pops up on the screen with message “Failed to create the Java Virtual Machine” and DCW is not launched.

Workaround:
To fix the above problem, a patch is made available. Users need to download this patch and follow the instructions contained within README-macos-patch.txt

User can also follow instructions as below -

Workaround 1: Download and execute patch

Terminologies
: DCW_HOME = Where DCW is been extracted.

  • Download patch zip - dcw-macos-patch.zip

  • Unzip the zip file in DCW_HOME. Make sure unzipped data should be in the

    DCW_HOME directory (Not in the child directory)

  • In a terminal window, execute the shell script named dcw-patch-macos.sh

    sh dcw-patch-macos.sh

    The command executes, and if errors, then proper message is given. Correct the error before executing the command again.


Workaround 2: Manual patching (without any download)


Terminologies
: DCW_HOME = Where DCW is been extracted.

  • Open terminal window

  • Execute command /usr/libexec/java_home -V

  • Output similar to following will be seen

    Matching Java Virtual Machines (2):
    11.0.6,x86_64: "JavaSE11.0.6" /Library/Java/JavaVirtualMachines/jdk-11.0.6.jdk/Contents/Home

    1.8.0_251, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home/ /Library/Java/JavaVirtualMachines/jdk-11.0.6.jdk/Contents/Home

  • Copy the path which starts with /Library/Java/JavaVirtualMachines
    In above case it will be, /Library/Java/JavaVirtualMachines/jdk-11.0.6.jdk/Contents/Home

  • Now traverse to that path then go to bin and check if file named as “java” exists Path should look like below

    ls /Library/Java/JavaVirtualMachines/jdk-11.0.6.jdk/Contents/Home/bin/java

  • Copy this path to clipboard.

  • Go to DCW_HOME

  • Open file named as dcw in an editor

  • Go to line number 3 which have content like ./dcw

  • Append java_home text with below argument

    Before change line number 3:

    ./dcw

    After change line number 3:

    ./dcw -vm <step_1_copied_text>/bin/java

    Should looks like this

    ./dcw -vm /Library/Java/JavaVirtualMachines/jdk<version>.jdk/Contents/Home/bin/java

  • Save the file.

  • Run DCW with command ./dcw


#Db2
0 comments
16 views

Permalink