KGS appear to be using "proper" installers

Comments, questions, rants, etc, that are specifically about KGS go here.
User avatar
Jujube
Lives in gote
Posts: 308
Joined: Sun Nov 14, 2010 8:49 am
Rank: EGF 5k Foxy 2k
GD Posts: 0
Has thanked: 54 times
Been thanked: 71 times
Contact:

KGS appear to be using "proper" installers

Post by Jujube »

Playing Go again after a break over December and January and I noticed that the KGS download page is now listing installers for Windows, Mac and Linux, so they must have provided wrappers for people.

(What I mean is, the install file used to be a few KBs and it downloaded the application as a Java web service and "installed" it somewhere in the existing Java runtime on your computer. Now the install file is like 40MB and seems to work as its own thing).

This may help people who are still finding it difficult to make it work with their Java installs.
12k: 2015.08.11; 11k: 2015.09.13; 10k: 2015.09.27; 9k: 2015.10.10; 8k: 2015.11.08; 7k: 2016.07.10 6k: 2016.07.24 5k: 2018.05.14 4k: 2018.09.03 3k: who knows?
RobertJasiek
Judan
Posts: 6272
Joined: Tue Apr 27, 2010 8:54 pm
GD Posts: 0
Been thanked: 797 times
Contact:

Re: KGS appear to be using "proper" installers

Post by RobertJasiek »

http://www.gokgs.com/ has a Windows EXE (do not know what the Mac file is) while http://www.gokgs.com/download.jsp has two JNLP files as a choice. For direct offline installation, there is also http://files.gokgs.com/javaBin/cgoban.jar according to unofficial working methods for the security sensitive users: http://senseis.xmp.net/?CGoban3OfflineInstallation

It is good to have a choice between different installation methods! The next improvement would be checksums.
User avatar
Bonobo
Oza
Posts: 2223
Joined: Fri Dec 23, 2011 6:39 pm
Rank: OGS 9k
GD Posts: 0
OGS: trohde
Universal go server handle: trohde
Location: Germany
Has thanked: 8262 times
Been thanked: 924 times
Contact:

Re: KGS appear to be using "proper" installers

Post by Bonobo »

RobertJasiek wrote:(do not know what the Mac file is)
cgoban.dmg is a 64 MB image file, contains CGoban.app, 171.5 MB (about CGoban tells me “CGoban 3.0 (1)”)
“The only difference between me and a madman is that I’m not mad.” — Salvador Dali ★ Play a slooooow correspondence game with me on OGS? :)
Marathon
Dies with sente
Posts: 78
Joined: Sun Mar 03, 2013 1:25 pm
GD Posts: 0
Has thanked: 16 times
Been thanked: 21 times

Re: KGS appear to be using "proper" installers

Post by Marathon »

RobertJasiek wrote:http://www.gokgs.com/ has a Windows EXE (do not know what the Mac file is) while http://www.gokgs.com/download.jsp has two JNLP files as a choice. For direct offline installation, there is also http://files.gokgs.com/javaBin/cgoban.jar according to unofficial working methods for the security sensitive users: http://senseis.xmp.net/?CGoban3OfflineInstallation

It is good to have a choice between different installation methods! The next improvement would be checksums.
The applet page still exists, and the download page still exists. However, the KGS main page no longer links to them. It is reasonable to suspect these will be abandoned or not supported. In fact, the applet already no longer works. However, those working on go playing software who want their bots to play on KGS will still want to download the GTP software, which is available on the download page.

The raw .jar file, http://files.gokgs.com/javaBin/cgoban.jar, is one of the three files linked to on the main page.
Javaness2
Gosei
Posts: 1545
Joined: Tue Jul 19, 2011 10:48 am
GD Posts: 0
Has thanked: 111 times
Been thanked: 322 times
Contact:

Re: KGS appear to be using "proper" installers

Post by Javaness2 »

It is nice to see an attempt to solve the installation woe, although I am slightly surprised to only find out about it in February. The help page isn't really fleshed out yet. :(

Code: Select all

Starting in December 2015 the Java Web Start client and applet were abandoned. Over time Java's code signing requirements became increasingly difficult, and finally these were abandoned. The new clients include java with them, and have a client for Windows, one for Mac, and one raw .jar file for Linux systems. Instructions for each are below.

Windows

TBD

Mac

TBD

Linux

For Linux you need to use the raw .jar file. Go to the Java download page, and download and install (or install the Java that came with your Linux distribution). Then download the .jar file, and run from the shell with:

$ java -jar cgoban.jar
Jhyn
Lives with ko
Posts: 202
Joined: Thu Sep 26, 2013 3:03 am
Rank: EGF 1d
GD Posts: 0
Universal go server handle: Jhyn
Location: Santiago, Chile
Has thanked: 39 times
Been thanked: 44 times

Re: KGS appear to be using "proper" installers

Post by Jhyn »

Not having to wait 30 seconds at each launch is a nice improvement compared with the old software, and well worth a one-time download.
Furthermore making a ssh tunnel is now way easier.

A positive upgrade for me.
La victoire est un hasard, la défaite une nécessité.
Marathon
Dies with sente
Posts: 78
Joined: Sun Mar 03, 2013 1:25 pm
GD Posts: 0
Has thanked: 16 times
Been thanked: 21 times

Re: KGS appear to be using "proper" installers

Post by Marathon »

Javaness2 wrote:It is nice to see an attempt to solve the installation woe, although I am slightly surprised to only find out about it in February. The help page isn't really fleshed out yet. :(

Code: Select all

Starting in December 2015 the Java Web Start client and applet were abandoned. Over time Java's code signing requirements became increasingly difficult, and finally these were abandoned. The new clients include java with them, and have a client for Windows, one for Mac, and one raw .jar file for Linux systems. Instructions for each are below.

Windows

TBD

Mac

TBD

Linux

For Linux you need to use the raw .jar file. Go to the Java download page, and download and install (or install the Java that came with your Linux distribution). Then download the .jar file, and run from the shell with:

$ java -jar cgoban.jar
It would have been nice had we been given some advanced warning. I didn't find out about this until some time in January, when someone borrowing a computer asked for help logging in on his. Those of us trying to help discovered he was an applet user, and the applet wasn't working. We then saw the change to the KGS home page.

Suggestion for KGS admins: Address this using the KGS announcement page.

Suggestion for WMS: The applet page and Web Start client download pages still exist. Change those pages with a message that those clients are no longer supported. Move (or duplicate) the link to download the GTP client.
jeromie
Lives in sente
Posts: 902
Joined: Fri Jan 31, 2014 7:12 pm
Rank: AGA 3k
GD Posts: 0
Universal go server handle: jeromie
Location: Fort Collins, CO
Has thanked: 319 times
Been thanked: 287 times

Re: KGS appear to be using "proper" installers

Post by jeromie »

I recommend testing the new client before getting rid of your old one. The jar file didn't work for me on Ubuntu 15.10 - it would freeze every time I tried to accept a game. The old Java Web Start client still works fine.
User avatar
psk31
Dies with sente
Posts: 74
Joined: Wed Apr 21, 2010 9:38 pm
Rank: OGS 17K
GD Posts: 0
KGS: psk31
OGS: psk31
Location: Near Denver, Colorado
Has thanked: 11 times
Been thanked: 6 times

Re: KGS appear to be using "proper" installers

Post by psk31 »

jeromie wrote:I recommend testing the new client before getting rid of your old one. The jar file didn't work for me on Ubuntu 15.10 - it would freeze every time I tried to accept a game. The old Java Web Start client still works fine.


Same here, since this was my first install on a Linux machine (Mint, 17.3 Cinnamon) I was beginning to wonder if it was something I did. The application opens up, I can go through the setup, look in different rooms, etc., but as soon as a game starts it freezes. Luckily I was only trying to do a few bot games.
"Play confidently. Make the best of mistakes."
- Janice Kim, Learn to Play Go Vol. 1
Marathon
Dies with sente
Posts: 78
Joined: Sun Mar 03, 2013 1:25 pm
GD Posts: 0
Has thanked: 16 times
Been thanked: 21 times

Re: KGS appear to be using "proper" installers

Post by Marathon »

Hmmm -- I also have Linux. So, I tried the running the raw .JAR file. For a test, I challenged an offer from the Golois bot. I didn't get the freeze. This is what I did get:
Feb 10, 2016 9:29:49 AM gh <clinit>
INFO: JnlpIo: JNLP unavailable
java.lang.NoClassDefFoundError: javax/jnlp/UnavailableServiceException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.newInstance(Class.java:412)
at gh.<clinit>(cgoban:53)
at org.igoweb.cgoban.CGoban.<init>(cgoban:97)
at org.igoweb.cgoban.CGoban.main(cgoban:62)
Caused by: java.lang.ClassNotFoundException: javax.jnlp.UnavailableServiceException
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more

Host = goserver.gokgs.com
Feb 10, 2016 9:30:54 AM ci e
INFO: Playing time warning
Feb 10, 2016 9:31:02 AM ci e
INFO: Playing time warning
Feb 10, 2016 9:31:10 AM ci e
INFO: Playing time warning
...

After the game was over, I engaged in some private chats and room chats. I had a few lines like this: FLAGS CHANGED on fh@2dfa313a

Also, clicking on a URL in a private chat and one in the EGR had no effect.
Last edited by Marathon on Wed Feb 10, 2016 9:47 am, edited 3 times in total.
Marathon
Dies with sente
Posts: 78
Joined: Sun Mar 03, 2013 1:25 pm
GD Posts: 0
Has thanked: 16 times
Been thanked: 21 times

Re: KGS appear to be using "proper" installers

Post by Marathon »

By the way, does the KGS client have command line arguments? For example, could I do something like this:

java -jar cgoban.jar -open=/home/marathon/games/go/foobar.sgf?

If so, what are the options, arguments, and syntax?
xed_over
Oza
Posts: 2264
Joined: Mon Apr 19, 2010 11:51 am
Has thanked: 1179 times
Been thanked: 553 times

Re: KGS appear to be using "proper" installers

Post by xed_over »

Marathon wrote:By the way, does the KGS client have command line arguments? For example, could I do something like this:

java -jar cgoban.jar -open=/home/marathon/games/go/foobar.sgf?

If so, what are the options, arguments, and syntax?

I just use

Code: Select all

java -jar cgoban.jar foobar.sgf

In fact, I have that wrapped in a scriptand set my file associations for sgf file to that script so I can just double-click any sgf file and have it open in CGoban
Marathon
Dies with sente
Posts: 78
Joined: Sun Mar 03, 2013 1:25 pm
GD Posts: 0
Has thanked: 16 times
Been thanked: 21 times

Re: KGS appear to be using "proper" installers

Post by Marathon »

Marathon wrote:...Also, clicking on a URL in a private chat and one in the EGR had no effect.
In addition, the client did not open help pages in my browser, neither using the "Help" button in the rooms screen nor the "Help" entry in the "Help" menu from the menu bar.
User avatar
Fedya
Lives in gote
Posts: 603
Joined: Tue Apr 20, 2010 8:21 pm
Rank: 6-7k KGS
GD Posts: 0
Has thanked: 43 times
Been thanked: 139 times

Re: KGS appear to be using "proper" installers

Post by Fedya »

So has anybody been able to get Cgoban to work with Linux?

I downloaded the cgoban.jar file, and when I typed the java -jar cgoban.jar into the terminal, I got "Unable to access jarfile cgoban.jar".

I'm new to Linux, so I have no idea what to do next. It would be easier just to have a nice clickable shortcut....
skydyr
Oza
Posts: 2495
Joined: Wed Aug 01, 2012 8:06 am
GD Posts: 0
Universal go server handle: skydyr
Online playing schedule: When my wife is out.
Location: DC
Has thanked: 156 times
Been thanked: 436 times

Re: KGS appear to be using "proper" installers

Post by skydyr »

Fedya wrote:So has anybody been able to get Cgoban to work with Linux?

I downloaded the cgoban.jar file, and when I typed the java -jar cgoban.jar into the terminal, I got "Unable to access jarfile cgoban.jar".

I'm new to Linux, so I have no idea what to do next. It would be easier just to have a nice clickable shortcut....


You may need to change to the directory that the file is in or use a full path to the file like java -jar ./cgoban.jar or java -jar ~/Downloads/cgoban.jar or the like. The actual path depends on how your filesystem and home directory are set up, and where your browser is set to download files to, of course.
Post Reply