On 20/10/16 10:58, Sandor Kopacsi wrote:
Dear Andy,

I asked it because I tried it in a script that starts Fuseki like that,
but it did not work:

export JAVA_HOME= /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java
                 ^^^^ space

cd /var/www/skosmos/jena-fuseki1-1.3.0
./fuseki-server --update --mem /ds

(I have also tried it with
export JAVA_HOME= /usr/lib/jvm/jre-1.8.0-openjdk.x86_64
but it did not work either)

How should I use it?


You are still using Fuseki1 1.3.0. The fix is in Fuseki2 2.3.1

For Fuseki1, you can set JAVA to point to the binary directly.

"fuseki" is a shell script - there are comments and usage notes at the top of the script.

(JAVA_HOME is used to point to the installation of the JDK, not to the binary within the JDK).

export JAVA=/usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java
echo $JAVA
$JAVA -version

Note - no space after the "="

    Andy



export JAVA_HOME= /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java

I have read an issue (JENA-1035), that fuseki-server script ignores
JAVA_HOME variable while it executes the "java" command.
Has it been fixed?

At the top of the issue:

Resolution: Fixed
Fix Version/s: Fuseki 2.3.1




Thanks,
Sandor

Am 19.10.2016 um 17:08 schrieb Dick Murray:
On 19 October 2016 at 15:10, Sandor Kopacsi
<sandor.kopa...@univie.ac.at>
wrote:

Dear Dick,

You are right. I have Java version 1.6.0_37 and the exception says:

"minor version 52.0"

Am I right, that Fuseki 1.3 requires Java 8 (that I used previously)?

You'll probably want to upgrade to the latest version...


I am afraid that the administrators / or the system itself downgraded
the
Java version to Java 6, which is the pre set or automatic version.

Now I switched to Java 8, and now it works.

How can avoid this problem next time? Fuseki takes into consideration
the
JAVA_HOME system variable? If yes, how and where should I set it? In a
starting script of Fuseki

You can install multiple JRE's and "point" your application at the
required
one.

On windows via the command set JAVA_HOME=c:\jre8


Thanks and best regards,
Sandor


Am 19.10.2016 um 15:36 schrieb Dick Murray:

Hi.

Check what version of JRE you have with java -version

dick@Dick-M3800:~$ java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Your exception should say what version it is having trouble with...

Java SE 9 = 53,
Java SE 8 = 52,
Java SE 7 = 51,
Java SE 6.0 = 50,
Java SE 5.0 = 49,
JDK 1.4 = 48,
JDK 1.3 = 47,
JDK 1.2 = 46,
JDK 1.1 = 45


On 19 October 2016 at 14:32, Sandor Kopacsi
<sandor.kopa...@univie.ac.at>
wrote:

Dear List Members,
I wanted to start Fuseki 1.3.0 for test purposes, but I got an
exception
in thread "main" java.lang.UnsupportedClassVersionError:
org/apache/jena/fuseki/FusekiCmd : Unsupported major.

I do not want to update Fuseki by all means, I just wanted to try
something in this test environment.
It worked so far well, and I did not changed (deliberately)
anything.

What can be the reason for that, and what should I do?

Thank you in advance and best regards,
Sandor

--
Dr. Sandor Kopacsi
IT Software Designer

Vienna University Computer Center






Reply via email to