You are not logged in.

#1 2009-05-24 14:14:45

virusso80
Member
From: Italy
Registered: 2007-03-09
Posts: 325

[SOLVED] jin chess and java

Hi all,
I'm trying to use jin chess to play some chess game online. I've java installed, if I type "java -version" i get the following message:

java version "1.5.0"
gij (GNU libgcj) version 4.3.3

Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

jinchess is a java application, it works using a jar file, but if I try to execute it I get the following error:

 ./jin
You seem to be running GNU's Java implementation, which is incomplete.
Jin requires Sun's Java (or a fully compatible version) 1.4 or later.
If you can't install it with your distribution's package manager, you
can obtain and install it manually from http://www.java.com

it comes from the sh file, where it performs the following check:

# Java command
JAVA_CMD=java

# Check if GCJ
$JAVA_CMD -version 2>&1 | grep -i -q "gcj\|gnu\|gij"
if [ $? -eq 0 ]
then
    echo "You seem to be running GNU's Java implementation, which is incomplete."
    echo "Jin requires Sun's Java (or a fully compatible version) 1.4 or later."
    echo "If you can't install it with your distribution's package manager, you"
    echo "can obtain and install it manually from http://www.java.com"
    exit
fi
...

What's wrong in my version?

Thanks in advanceSOLVED]

Last edited by virusso80 (2009-05-24 14:29:05)

Offline

#2 2009-05-24 14:17:06

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: [SOLVED] jin chess and java

The error message is fairly clear.  Uninstall gcc-gcj and java-gcj-compat and install openjdk6 or jre.

Offline

Board footer

Powered by FluxBB