Closed justin2004 closed 1 month ago
Hi Justin,
I've been looking at this issue for you.
In theory, I believe that this project should be able to run with a JRE only. The pyjnius
dependency however requires a jdk to enable all of its features. I believe that perhaps with some exception handling we may be able to circumvent this.
My problem at the moment, however, is that I seem to be unable to download JRE that is up to date enough for me to use. The Oracle and Java website give this the v8 of the JRE but I'm being told that this is too old to use with the Sparql Anything code.
Any idea where I could obtain a more advanced JRE?
since i always deploy in docker i get a JRE like this:
docker run --rm -it debian:12 bash
apt-get update && apt-get install -y openjdk-17-jre
# once finished installing
root@461281bae29f:/# java --version
openjdk 17.0.12 2024-07-16
OpenJDK Runtime Environment (build 17.0.12+7-Debian-2deb12u1)
OpenJDK 64-Bit Server VM (build 17.0.12+7-Debian-2deb12u1, mixed mode, sharing)
Hi Justin,
So I have uninstalled Java
on my Windows machine and installed a JRE via Eclipse Adoptium and it seems to be working fine?
This is what I get:
C:\Users\mr24397>java --version
openjdk 21.0.4 2024-07-16 LTS
OpenJDK Runtime Environment Temurin-21.0.4+7 (build 21.0.4+7-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.4+7 (build 21.0.4+7-LTS, mixed mode, sharing)
C:\Users\mr24397>javac
'javac' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\mr24397>py
Python 3.11.9 (tags/v3.11.9:de54cf5, Apr 2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pysparql_anything as asa
>>> asa.SparqlAnything()
<pysparql_anything.sparql_anything.SparqlAnything object at 0x000002AAFA8DE050>
>>> exit()
@enridaga maybe has an opinion on the matter?
so this project needs javac
for sure?
if so a JDK is necessary (since the JRE does not come with javac
)
EDIT: oh, i misread your comment. it looks like it works without javac
Hi Justin,
How are you going with this? Can this issue be closed?
this project works with a JDK (that includes
javac
) but can it work with a JRE (without ajavac
)?this might prevent me from being able to use this project. :(
e.g. with a JRE: