Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[statet-users] Set rJava VM to a different Java version than StatET is running with

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

 

 

 

 


Back to the top