IBMPredictiveAnalytics / R_Essentials_Statistics

Download R Essentials required for SPSS Statistics
GNU General Public License v2.0
43 stars 22 forks source link

Issue with Java? #10

Closed elenos-md closed 4 years ago

elenos-md commented 4 years ago

When running "STATS R33 CONFIGURATION R_HOME="D:\Program Files\R\R-3.3.0"." which is the directory in which my R program is installed, I get an error with the following content:

java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) at java.lang.reflect.Method.invoke(Method.java:508) at com.ibm.statistics.plugin.Extension.processcmd(Unknown Source) at STATS_R33_CONFIGURATION.Run(STATS_R33_CONFIGURATION.java:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) at java.lang.reflect.Method.invoke(Method.java:508) at com.ibm.statistics.plugin.Extension.main(Unknown Source) Caused by: java.lang.StringIndexOutOfBoundsException at java.lang.String.substring(String.java:1402) at CheckREnv.getRMajor(CheckREnv.java:108) at CheckREnv.(CheckREnv.java:11) at HandlePlugin.doInstall(HandlePlugin.java:24) at STATS_R33_CONFIGURATION.exec(STATS_R33_CONFIGURATION.java:33) ... 11 more

I guess it is related to Java or something, but couldn't fix it by updating Java on my PC. I'd be glad if someone could help me. Kindly,

wujiazhong commented 4 years ago

Could you try install R to the default path?

JKPeck commented 4 years ago

Also try starting Statistics as Administrator before doing the R Essentials install. (I have R and Statistics installed in non-default locations with no problem)

On Tue, Apr 14, 2020 at 7:36 AM Jia Zhong Wu notifications@github.com wrote:

Could you try install R to the default path?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/IBMPredictiveAnalytics/R_Essentials_Statistics/issues/10#issuecomment-613447156, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAEWQNTHS43GSMNKQ5DMHLRMRRHLANCNFSM4MHSNGGQ .

-- Jon K Peck jkpeck@gmail.com

elenos-md commented 4 years ago

Thank you for your answers, however, the issue persists :/

JKPeck commented 4 years ago

I presume that you are using V25, since you were installing R3.3. If you haven't installed fixpack2 for that version, that would be a good thing to try.

elenos-md commented 4 years ago

I managed to install everything, thank you very much.