Can't build

Win10 Home, x64
My stupidity, removed JAVA (because JAVA is no more updated and has security hole on NET news), I can’t build GWS projects.
So I tried to reinstall JAVA build1.8.0_291-b10
I restarted PC and tried build GWS project, build stops at 10% and get .log file as below

!SESSION 2021-06-30 05:10:44.281 -----------------------------------------------
eclipse.buildId=unknown
java.version=16.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ja_JP
Command-line arguments: -os win32 -ws win32 -arch x86_64 -data @noDefault

!ENTRY org.eclipse.osgi 4 0 2021-06-30 05:11:58.171
!MESSAGE Application error
!STACK 1
java.lang.IllegalAccessError: class org.tizen.common.util.CipherUtil (in unnamed module @0x481ba2cf) cannot access class com.sun.org.apache.xerces.internal.impl.dv.util.Base64 (in module java.xml) because module java.xml does not export com.sun.org.apache.xerces.internal.impl.dv.util to unnamed module @0x481ba2cf
at org.tizen.common.util.CipherUtil.getEncryptedString(CipherUtil.java:117)
at com.samsung.gwd.Config.setAuthorPassword(Config.java:660)
at com.samsung.gwd.ui.dialog.build.CompositeBuildPopup$13.execute(CompositeBuildPopup.java:653)
at com.samsung.gwd.utils.EasyExecute.execute(EasyExecute.java:16)
at com.samsung.gwd.utils.EasyExecute.execute(EasyExecute.java:10)
at com.samsung.gwd.ui.popup.PopupButton.mouseUp(PopupButton.java:142)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:221)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4118)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3931)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3534)
at com.samsung.gwd.Application._start(Application.java:385)
at com.samsung.gwd.Application.start(Application.java:77)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:656)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:592)
at org.eclipse.equinox.launcher.Main.run(Main.java:1498)
at org.eclipse.equinox.launcher.Main.main(Main.java:1471)
!SESSION 2021-06-30 05:43:24.194 -----------------------------------------------
eclipse.buildId=unknown
java.version=16.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ja_JP
Command-line arguments: -os win32 -ws win32 -arch x86_64 -data @noDefault

!ENTRY org.eclipse.osgi 4 0 2021-06-30 05:44:34.548
!MESSAGE Application error
!STACK 1
java.lang.IllegalAccessError: class org.tizen.common.util.CipherUtil (in unnamed module @0x1583741e) cannot access class com.sun.org.apache.xerces.internal.impl.dv.util.Base64 (in module java.xml) because module java.xml does not export com.sun.org.apache.xerces.internal.impl.dv.util to unnamed module @0x1583741e
at org.tizen.common.util.CipherUtil.getEncryptedString(CipherUtil.java:117)
at com.samsung.gwd.Config.setAuthorPassword(Config.java:660)
at com.samsung.gwd.ui.dialog.build.CompositeBuildPopup$13.execute(CompositeBuildPopup.java:653)
at com.samsung.gwd.utils.EasyExecute.execute(EasyExecute.java:16)
at com.samsung.gwd.utils.EasyExecute.execute(EasyExecute.java:10)
at com.samsung.gwd.ui.popup.PopupButton.mouseUp(PopupButton.java:142)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:221)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4118)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3931)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3534)
at com.samsung.gwd.Application._start(Application.java:385)
at com.samsung.gwd.Application.start(Application.java:77)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:656)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:592)
at org.eclipse.equinox.launcher.Main.run(Main.java:1498)
at org.eclipse.equinox.launcher.Main.main(Main.java:1471)
!SESSION 2021-06-30 05:50:09.782 -----------------------------------------------
eclipse.buildId=unknown
java.version=16.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=ja_JP
Command-line arguments: -os win32 -ws win32 -arch x86_64 -data @noDefault

!ENTRY org.eclipse.osgi 4 0 2021-06-30 05:51:20.411
!MESSAGE Application error
!STACK 1
java.lang.IllegalAccessError: class org.tizen.common.util.CipherUtil (in unnamed module @0x481ba2cf) cannot access class com.sun.org.apache.xerces.internal.impl.dv.util.Base64 (in module java.xml) because module java.xml does not export com.sun.org.apache.xerces.internal.impl.dv.util to unnamed module @0x481ba2cf
at org.tizen.common.util.CipherUtil.getEncryptedString(CipherUtil.java:117)
at com.samsung.gwd.Config.setAuthorPassword(Config.java:660)
at com.samsung.gwd.ui.dialog.build.CompositeBuildPopup$13.execute(CompositeBuildPopup.java:653)
at com.samsung.gwd.utils.EasyExecute.execute(EasyExecute.java:16)
at com.samsung.gwd.utils.EasyExecute.execute(EasyExecute.java:10)
at com.samsung.gwd.ui.popup.PopupButton.mouseUp(PopupButton.java:142)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:221)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4118)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3931)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3534)
at com.samsung.gwd.ui.popup.PopupShell.open(PopupShell.java:40)
at com.samsung.gwd.action.project.BuildAction.action(BuildAction.java:293)
at com.samsung.gwd.action.Action$1.execute(Action.java:114)
at com.samsung.gwd.utils.EasyExecute.execute(EasyExecute.java:16)
at com.samsung.gwd.utils.EasyExecute.execute(EasyExecute.java:10)
at com.samsung.gwd.ui.toolbar.ToolbarButton.mouseUp(ToolbarButton.java:73)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:221)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4118)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3931)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3534)
at com.samsung.gwd.Application._start(Application.java:385)
at com.samsung.gwd.Application.start(Application.java:77)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:656)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:592)
at org.eclipse.equinox.launcher.Main.run(Main.java:1498)
at org.eclipse.equinox.launcher.Main.main(Main.java:1471)

Please help me back create watch face
Thank you

you may have installed the 32 bit Java version but usually that is error -12

Uninstalling Java does not remove it from the system environmental settings the path that could be the issue or you installed Java and not the JDK/JRE

open command prompt and type in
path
and see if there is a path to a java version that isn’t the one you just installed. If there is a bad path that is the issue.

If it looks good then type in
java -version
if it isn’t the x64 version that is the issue.

If it is then Type in
javac -version
If it doesn’t have anything then you didn’t install the Java JRE aka JDK you need to install that.

ultimate solution
Open add remove apps and remove all versions of Java.
Command prompt and check java -version and path again to be sure they are gone.
If the path is still there
from This PC (or the PC name if you named it) in file manager
Right click Properties
Advanced System Setting
Environmental Variable
System Path edit the path so Oracle or Java are removed.

Download the x64 Windows JDK
https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html

install it and you should be good to go. That should set up the correct path. to the java -version and javac -version check to be sure.

Ron
Samsung Developer Relations

Thank you, r.liechty

Yes, it was only 32bit jre in my PC. Because I could not install 64bit version somehow.
I just found the reason, I could not install 64bit java jre because of JAPANESE KANJI PROGRAM(FEP ATOK)
Now I have both 64bit jre and 64bit jdk then I could successfully build my projects

This is a suggestion to Japanese programmer who can’t install jre 64bit
if you run ATOK (KANJI Processor), you can not install jre 64bit.
Once you change to MS-IME then install jre 64bit version,
then back to ATOK if you need.

Thank you r.liechty again

There is a bit of work around if you need both 32 bit and 64 bit Java.
You have your system path set for the 32 bit Java
You put a shortcut to the 64 bit version in the Galaxy Watch Studio folder.
C:\Program Files\Galaxy Watch Studio

Ron
Samsung Developer Relations.