Carcassonne Central

Carc Central Community => Online Games and Competitions => JCloisterZone FAQ, Suggestions & Bug Reports => Topic started by: forumisto on January 23, 2018, 05:46:12 AM

Title: JCZ does not work in linux and openjdk 8
Post by: forumisto on January 23, 2018, 05:46:12 AM
Hello

I have tried to run JCZ 3.4.3 in linux mint. For that I have installed openjdk-8 (the default jdk).

The machine is a Core2 Duo E8400 with 8GB  RAM. The SO is Linux Mint 18 64 bits.

Have you tried to execute in linux?

Thanks
Title: Re: JCZ does not work in linux and openjdk 8
Post by: Sinscerly on January 23, 2018, 08:08:48 AM
Hi Forumisto,

I'm on Ubuntu 16.04 LTS.
I have a Intel Core I5-3210M and also 8 gb of ram 8)
64-bit.
JCZ 3.4.3 is working on my machine. So it is executing here. Do you see something starting, a logo perhaps???

I tried to download the lastest version but that one isn't working for me :( ??? But 3.4.3 works :D
Title: Re: JCZ does not work in linux and openjdk 8
Post by: Decar on January 23, 2018, 01:45:58 PM
It would be worth sharing your execution error, it will likely provide some clue as to why it's not running on this strain of Linux+java.
Title: Re: JCZ does not work in linux and openjdk 8
Post by: Sinscerly on January 23, 2018, 03:50:04 PM
It would be worth sharing your execution error, it will likely provide some clue as to why it's not running on this strain of Linux+java.
Well Decar, I haven't had a chance to look at it. But for me it was loading, I saw the logo. But after that nothing happend.
Title: Re: JCZ does not work in linux and openjdk 8
Post by: forumisto on January 24, 2018, 05:00:42 AM
I execute java -jar JCloisterZone.jar, and the result is:

ene. 24, 2018 1:54:27 P. M. sun.util.PropertyResourceBundleCharset$PropertiesFileDecoder decodeLoop
INFO: Invalid or unmappable UTF-8 sequence detected. Switching encoding from UTF-8 to ISO-8859-1
[Fatal Error] :1:1: Final de archivo prematuro.
Exception in thread "Thread-0" java.lang.RuntimeException: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Final de archivo prematuro.
   at com.jcloisterzone.XMLUtils.parseDocument(XMLUtils.java:49)
   at com.jcloisterzone.XMLUtils.parseDocument(XMLUtils.java:36)
   at com.jcloisterzone.AppUpdate.fetch(AppUpdate.java:15)
   at com.jcloisterzone.ui.Bootstrap$2.run(Bootstrap.java:146)
Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Final de archivo prematuro.
   at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(java.xml@9-internal/DOMParser.java:256)
   at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(java.xml@9-internal/DocumentBuilderImpl.java:339)
   at javax.xml.parsers.DocumentBuilder.parse(java.xml@9-internal/DocumentBuilder.java:122)
   at com.jcloisterzone.XMLUtils.parseDocument(XMLUtils.java:47)
   ... 3 more
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fc9a60e7009, pid=2440, tid=2464
#
# JRE version: OpenJDK Runtime Environment (9.0) (build 9-internal+0-2016-04-14-195246.buildd.src)
# Java VM: OpenJDK 64-Bit Server VM (9-internal+0-2016-04-14-195246.buildd.src, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [libjava.so+0x1d009]  JNU_GetEnv+0x19
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P" (or dumping to /home/ffgr33/jcz/343/core.2440)
#
# An error report file with more information is saved as:
# /home/ffgr33/jcz/343/hs_err_pid2440.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted (`core' generado)

Title: Re: JCZ does not work in linux and openjdk 8
Post by: Decar on January 24, 2018, 05:13:22 AM
it looks like it failed to load an xml file that's checking for an updated version of JCloisterzone.

I have a feeling it may be trying to download it and your java doesn't have read/write access to the folder.

Can you provide the content of your config.yaml file too, the update URL may be in there?
But if not the default is: http://jcloisterzone.com/version.xml
Title: Re: JCZ does not work in linux and openjdk 8
Post by: forumisto on January 24, 2018, 05:39:43 AM
But if you don't have Internet connection, anyway the program starts.

I remove openjdk and I installed oracle jdk 9 and the error is the shame.
Title: Re: JCZ does not work in linux and openjdk 8
Post by: Decar on January 24, 2018, 05:40:22 AM
Now I'm wondering if your machine has internet access and is unable to load the version file.

I tried to create a yaml config file to specify a local version of the version.xml - however I just receive errors saying it can't load the file.
Title: Re: JCZ does not work in linux and openjdk 8
Post by: Decar on January 24, 2018, 06:14:47 AM
But if you don't have Internet connection, anyway the program starts.

I don't follow you.  I've tried to start JCZ without a network connection: It was successful.

Are you able to try with an internet connection?
Title: Re: JCZ does not work in linux and openjdk 8
Post by: TheSteveAllen on January 24, 2018, 09:30:27 AM
For what it is worth, I have been successfully running JCZ on Ubuntustudio, Mint and Edubuntu for over a year now and I have never encountered any problem with a single one of the releases.

I do seem to recall, however, that I used synaptic package manager to install 4 files of 'IcedTea' before I tried to use it. I'm not certain what 'IcedTea' does, as I thought that it ran Java in a browser, but it might help. Nothing ventured, nothing gained.
Title: Re: JCZ does not work in linux and openjdk 8
Post by: forumisto on January 25, 2018, 03:04:01 AM
Hello

Finally I could run JCZ on my linux. I removed all openjdk packages (I had several installed) and installed the Oracle JAVA 8 from its PPA.
Title: Re: JCZ does not work in linux and openjdk 8
Post by: Decar on January 25, 2018, 03:09:27 AM
Good for you!
Title: Re: JCZ does not work in linux and openjdk 8
Post by: farin on February 01, 2018, 07:53:02 AM
Stange error.

You don't need to turn off connection. You can instead comment out update url in config file. This disables update check.