Author Topic: JCZ does not work in linux and openjdk 8  (Read 1630 times)

Offline forumisto

  • Labourer
  • **
  • Posts: 21
  • Merit: 0
  • I haven't updated my profile yet!
    • View Profile
JCZ does not work in linux and openjdk 8
« 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

Linkback: http://www.carcassonnecentral.com/community/index.php?topic=3786.0

Offline Sinscerly

  • Marquis
  • ***
  • Posts: 579
  • Merit: 18
  • Loving to play.
    • View Profile
    • WikiCarpedia - Wiki-CAR
Re: JCZ does not work in linux and openjdk 8
« Reply #1 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
« Last Edit: January 23, 2018, 08:10:21 AM by Sinscerly »
"What things can you find? Things that are hidden?

Offline Decar

  • Global Moderator
  • Chatelain Commandeur
  • *
  • Posts: 5353
  • Merit: 238
  • Shut up and take my money!
    • View Profile
    • tehill.net
Re: JCZ does not work in linux and openjdk 8
« Reply #2 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.

Offline Sinscerly

  • Marquis
  • ***
  • Posts: 579
  • Merit: 18
  • Loving to play.
    • View Profile
    • WikiCarpedia - Wiki-CAR
Re: JCZ does not work in linux and openjdk 8
« Reply #3 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.

Offline forumisto

  • Labourer
  • **
  • Posts: 21
  • Merit: 0
  • I haven't updated my profile yet!
    • View Profile
Re: JCZ does not work in linux and openjdk 8
« Reply #4 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)


Offline Decar

  • Global Moderator
  • Chatelain Commandeur
  • *
  • Posts: 5353
  • Merit: 238
  • Shut up and take my money!
    • View Profile
    • tehill.net
Re: JCZ does not work in linux and openjdk 8
« Reply #5 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

Offline forumisto

  • Labourer
  • **
  • Posts: 21
  • Merit: 0
  • I haven't updated my profile yet!
    • View Profile
Re: JCZ does not work in linux and openjdk 8
« Reply #6 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.

Offline Decar

  • Global Moderator
  • Chatelain Commandeur
  • *
  • Posts: 5353
  • Merit: 238
  • Shut up and take my money!
    • View Profile
    • tehill.net
Re: JCZ does not work in linux and openjdk 8
« Reply #7 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.

Offline Decar

  • Global Moderator
  • Chatelain Commandeur
  • *
  • Posts: 5353
  • Merit: 238
  • Shut up and take my money!
    • View Profile
    • tehill.net
Re: JCZ does not work in linux and openjdk 8
« Reply #8 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?

Offline TheSteveAllen

  • Marquis
  • ***
  • Posts: 451
  • Merit: 25
  • Power to the Meeple!
    • View Profile
Re: JCZ does not work in linux and openjdk 8
« Reply #9 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.

Offline forumisto

  • Labourer
  • **
  • Posts: 21
  • Merit: 0
  • I haven't updated my profile yet!
    • View Profile
Re: JCZ does not work in linux and openjdk 8
« Reply #10 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.

Offline Decar

  • Global Moderator
  • Chatelain Commandeur
  • *
  • Posts: 5353
  • Merit: 238
  • Shut up and take my money!
    • View Profile
    • tehill.net
Re: JCZ does not work in linux and openjdk 8
« Reply #11 on: January 25, 2018, 03:09:27 AM »
Good for you!

Offline farin

  • Duke
  • *
  • Posts: 233
  • Merit: 41
  • JCloisterZone maintainer
    • View Profile
Re: JCZ does not work in linux and openjdk 8
« Reply #12 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.


Share via delicious Share via digg Share via facebook Share via furl Share via linkedin Share via myspace Share via reddit Share via stumble Share via technorati Share via twitter

  Subject / Started by Replies / Views Last post
xx
Carcassonne At Work

Started by danisthirty

4 Replies
1785 Views
Last post December 15, 2016, 04:32:52 AM
by stalcupojoy
xx
Work in Progress

Started by danisthirty

2 Replies
3212 Views
Last post January 13, 2015, 06:20:21 AM
by danisthirty
exclamation
Planned forum work today!

Started by gantry

7 Replies
3104 Views
Last post September 05, 2013, 08:29:56 PM
by gantry
xx
AVATAR-line - Meeple at Work

Started by kettlefish

6 Replies
3230 Views
Last post May 01, 2013, 02:57:21 PM
by kettlefish
xx
Simple cheesy 3d cube rotation work

Started by Paul

2 Replies
1477 Views
Last post January 17, 2016, 10:05:20 AM
by gantry