[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [statet-users] Set rJava VM to a different Java version than StatET is running with
|
Hi Stephan,
thanks a lot for your swift reply!
I am aware that the current StatET needs Java >= 17, but I had no idea about
the entanglement of the JVM it needs and the one that would run inside R
processing the rJava functions of my script. I am starting to realize that
this is actually the same instance/version, it processes the communication
between R and StatET (?).
I just found a somewhat inelegant workaround, I'm running the database part
in a foreach %dopar% worker instance, where I can set JAVA_HOME to the
version I need for it to work.
Thanks again and kind regards,
Gunnar
-----Ursprüngliche Nachricht-----
Von: statet-users [mailto:statet-users-bounces@xxxxxxxxxxx] Im Auftrag von
Stephan Wahlbrink via statet-users
Gesendet: Samstag, 1. Juni 2024 20:48
An: statet-users@xxxxxxxxxxx
Cc: Stephan Wahlbrink
Betreff: Re: [statet-users] Set rJava VM to a different Java version than
StatET is running with
Hi Gunnar,
in general, you have to set the Java runtime on the tab JRE in the launch
configuration dialog of your R Console in StatET.
But the current version of StatET requires Java >= 17, this also includes
the R Console (RJ library).
StatET 4.7 was the last version compatible with Java 11.
Regards,
Stephan
[01.06.2024 19:45] Gunnar Deuring via statet-users wrote:
> Hello all
>
> I am working on Windows 10 x64 with Eclipse 2023-12 (4.30.0), StatET
> 4.9.0.202402220600-r, and R 4.3.1.
>
> I need Java version 11 for my RJDBC drivers to work (it's complicated,
> very complicated), however, StatET requires version 17+ to run.
>
> RJDBC is a package that offers database connectivity by employing Java
> database drivers (JDB), which are available for a multitude of
> database types.
>
> RJDBC is based on rJava (1.0-11), and in plain R (RGui) I can set the
> JRE/VM version for rJava to use by setting JAVA_HOME and rJava will
> pick that version (yes, I have read this shouldn't work, but it does).
>
> In StatET, however, setting JAVA_HOME has no effect on the JRE/VM
> version that rJava will use, it will always pick the version that
> StatET is running with.
>
> My question: is there a way to force rJava to use a specific JRE/VM
> version, which is not the same as StatET is running with?
>
> Kind regards,
>
> Gunnar
_______________________________________________
statet-users mailing list
statet-users@xxxxxxxxxxx
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/statet-users