Page 1 of 1

Unknown Main-Class error

Posted: 03 Apr 2024, 12:33
by Tim-GDL
Hi,
I'm using OpenWebStart v1.9.1 with Eclipse Temurin 8u372-b07
I'm trying to run a third party WebStart application which is a new requirement - so not migrating from any legacy Oracle Java setup.
I've got past the first error I encountered, which was a "Cannot grant permissions to unsigned jars", by updating the java.security of my Eclipse Temurin to allow MD5 signed jars.

Old:

Code: Select all

jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024, \
      DSA keySize < 1024, SHA1 denyAfter 2019-01-01, \
      include jdk.disabled.namedCurves
New:

Code: Select all

jdk.jar.disabledAlgorithms=MD2, RSA keySize < 1024, \
      DSA keySize < 1024, SHA1 denyAfter 2019-01-01, \
      include jdk.disabled.namedCurves
This has got me one step closer to working - my error now is
Initialization Error: Unknown Main-Class. Could not determine the main class for this application.
I have tried clearing my cache folder, but this hasn't had any effect. Can anyone suggest any further steps I can take please?

Re: Unknown Main-Class error

Posted: 04 Apr 2024, 14:49
by Janak Mulani

Code: Select all

<application-desc main-class="dcsWebStart.RunWebStartScreen.class">
should be

<application-desc main-class="dcsWebStart.RunWebStartScreen">