Error in GoWrite Launcher, No usable JVM found

Reporting and discussion about bugs.

Moderator: lpaatero

Post Reply
spook
Posts: 2
Joined: Mon Feb 13, 2012 10:50 am

Error in GoWrite Launcher, No usable JVM found

Post by spook »

Dear,

Some problems while launching the application:
"Error in GoWrite Launcher, No usable JVM found" appears in a messagebox at startup.

I have a JRE as well as a JDK installed on my system:
  • C:\Java\jdk1.6.0_24
    C:\Java\jre6
I tried
  • Searching the register (regedit) but didn't find a place to declare the javapath for GoWrite
    Also searched in the GoWrite folder for configuration files, but didn't find any
    Finally I tried adding the java jdk bin folder to the PATH system environment constant, but made no difference
Anything else I can try? or am I simply using an unsupported Java version?

I noticed the same problem was mentioned in a previous thread, however I do not get the error message of the missing DLL file.


Using Windows7, 64bit system, Downloaded GoWrite2 just last friday.
lpaatero
Go liiton hallitus
Posts: 486
Joined: Fri May 21, 2004 12:20 pm
Location: Finland

Re: Error in GoWrite Launcher, No usable JVM found

Post by lpaatero »

Hi,

In 64 bit Windows GOWrite requires 64 bit Java. So please install 64-bit Java JRE.

- Lauri
spook
Posts: 2
Joined: Mon Feb 13, 2012 10:50 am

Re: Error in GoWrite Launcher, No usable JVM found

Post by spook »

Thanks,

I first looked up if 64bit and 32bit java can be installed on the same computer. Seems to be no problem.
Downloaded and installed it, works fine. :-)

Thanks !
rayw
Posts: 2
Joined: Sat Sep 01, 2018 1:15 pm

Re: Error in GoWrite Launcher, No usable JVM found

Post by rayw »

I have come to really hate Java. Always have problems with it and never easy to resolve, just a time wasting kludge IMHO. I have a 64 bit Windows 10 machine and have boith 32bit and 64 bit latest JAVA REs installed and it confirms they are there and running okay as you can see below from this screen shot I captured. Hmm cannot paste it in here ??? Never mind but both 32 and 64 bit JRE are running

I have installed - uninstalled - reinstalled GoWrite2 latest version 3.x.x and the previous version 2.x.x but always I get the same error meeaage when I try to run it. " Error in GoWrite launcher. No usable JVM found"

I see lots of people complaining about this bloodyu frustrating error, so can you not use something other than bloodyh Java for future editions. Cannot do anymore as have even reinstalled both 32 and 64 bit latest JREs as well and still get this same error. It is so incredibly annoying I am sure you will appreicate. Just wasted nearly 2 hours as I simply wanted to just run up GoWrite2 to re-examine a Go Game SGF file I have saved. So a big GRRRRRR

Do I give up or have you an easy non time consumming answer ??

Cheers
RayW
lpaatero
Go liiton hallitus
Posts: 486
Joined: Fri May 21, 2004 12:20 pm
Location: Finland

Re: Error in GoWrite Launcher, No usable JVM found

Post by lpaatero »

Java 8 is the LTS (long-term support) version of java. It should work with all recent gowrite versions.

Java 9 and Java 10 changed the way they are identified. Only 3.0.17 version work with Java 9 or Java 10.
If there are issues with 3.0.17 and java 9 or 10, please try to report specific versions not working with other. Without specific versions I cannot help in solving the issues.

regards
Lauri
rayw
Posts: 2
Joined: Sat Sep 01, 2018 1:15 pm

Re: Error in GoWrite Launcher, No usable JVM found

Post by rayw »

Thank you so much Ipaatero. I uninstalled GoWrite2 V2.x.x and downloaded and installed V3.0.17 as you suggested/ Bingo it now works straight away. I had used 3.0.14 before which as youj said would not have worked with Jave 10 64 bit. My Java 8 is of course only 32 bit version.

Anyway many thanks indeed. Great speedy help and now I can enjoy using this very useful program.

Cheers
RayW
efeustel
Posts: 2
Joined: Tue Jul 31, 2018 7:11 pm

Re: Error in GoWrite Launcher, No usable JVM found

Post by efeustel »

I have installed the latest Oracle Java JDK 16 and altered the path for system.
I get the above error message when trying to invoke GoWrite2 3.0.19
I then tried using OpenJDK 11. After fixing the PATH, I still get the error.
I don't know what I am doing incorrectly!

Ed
lpaatero
Go liiton hallitus
Posts: 486
Joined: Fri May 21, 2004 12:20 pm
Location: Finland

Re: Error in GoWrite Launcher, No usable JVM found

Post by lpaatero »

Hi,

I assume you installed 64-bit Java?
Other than that, I have no idea what the problem could be.
GOWrite uses registry settings to find the Java, so setting PATH is not needed for GOWrite.

Can you try in installation directory (using command line)
java -jar GOWrite.jar
It is not good way to use GOWrite, but it should validate that Java is ok.

/Lauri
psygo
Posts: 5
Joined: Mon Sep 20, 2021 2:17 am
Contact:

Re: Error in GoWrite Launcher, No usable JVM found

Post by psygo »

I'm also getting this error on a new Windows machine (in a previous machine from less than a month ago it was working fine). I've tried installing Java 8, 11 and 17, both solo and together, all the same (I've also tried to install Java 11 from the link in the Go Write website).

This is the error log I'm getting when running

Code: Select all

java -jar 'C:\Program Files\GOWrite2\GOWrite.jar'
:

Code: Select all

Exception in thread "main" java.lang.NoClassDefFoundError: net/gowrite/sgf/SGFUtil
        at GOWrite2.main(GOWrite2.java:326)
Caused by: java.lang.ClassNotFoundException: net.gowrite.sgf.SGFUtil
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
        ... 1 more
lpaatero
Go liiton hallitus
Posts: 486
Joined: Fri May 21, 2004 12:20 pm
Location: Finland

Re: Error in GoWrite Launcher, No usable JVM found

Post by lpaatero »

It seems openjdk has changed their stuff.
In order to get needed JRE, one should go to page https://adoptopenjdk.net/releases.html and select windows / X64.
Then download MSI package for JRE.
It seems during install one must select "Install Oracle compatible registry keys" (or something like this) in order to get needed registry keys.

If

Code: Select all

java -jar 'C:\Program Files\GOWrite2\GOWrite.jar'
does not work, there is likely some other problem.
If so, please post full output of GOWrite.

/Lauri
psygo
Posts: 5
Joined: Mon Sep 20, 2021 2:17 am
Contact:

Re: Error in GoWrite Launcher, No usable JVM found

Post by psygo »

Thank you again, @lpaatero. After enabling the registry keys during install (they were marked with red crosses), GoWrite2 seems to works as usual, albeit only with:

Code: Select all

java -jar 'C:\Program Files\GOWrite2\GOWrite.jar'
lpaatero
Go liiton hallitus
Posts: 486
Joined: Fri May 21, 2004 12:20 pm
Location: Finland

Re: Error in GoWrite Launcher, No usable JVM found

Post by lpaatero »

After JRE install and setting the registry keys gowrite should already work ok. It seems these JRE/JDK issues are getting only worse.

I will be looking at combining Java into gowrite install. This should remove the whole mess.

/Lauri
lpaatero
Go liiton hallitus
Posts: 486
Joined: Fri May 21, 2004 12:20 pm
Location: Finland

Re: Error in GoWrite Launcher, No usable JVM found

Post by lpaatero »

There is now a test version of Windows GOWrite with java embedded (https://gowrite.net/download/gowrite2_3_0_23.exe).
This installation does not require any java version installed. Internally this uses latest java (version 17).

Let me know if this works!
I have made only very limited testing.

Update: New installation package to add support for game database.

/Lauri
Post Reply