On 19 October 2016 at 16:39, Sandor Kopacsi <[email protected]>
wrote:

> Thank you, Dick.
>
> 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
>>
>> And how can I set it in Linux? Is it enough like that?
>

Depends on how you are running Fuseki? You have set, env, declare and
export.

dick@Dick-M3800:~$ name=a
dick@Dick-M3800:~$ echo ${name}
a
dick@Dick-M3800:~$ declare name=b
dick@Dick-M3800:~$ echo ${name}
b
dick@Dick-M3800:~$ export name=c
dick@Dick-M3800:~$ echo ${name}
c

With export the variable is available in sub shells.


>
> 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?
>

Unknown, as i don't use Fuseki (we rolled our own similar).


>
> Thanks,
> Sandor
>
>
> Am 19.10.2016 um 17:08 schrieb Dick Murray:
>
>> On 19 October 2016 at 15:10, Sandor Kopacsi <[email protected]>
>> 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 <
>>>> [email protected]>
>>>> 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
>>>>>
>>>>>
>>>>>
>>>>>
> --
> Dr. Sandor Kopacsi
> IT Software Designer
>
> Vienna University Computer Center
> Universitätsstraße 7 (NIG)
> A-1010 Vienna
>
> Phone:  +43-1-4277-14176
> Mobile: +43-664-60277-14176
>
>

Reply via email to