kornl / crossover

Crossover Designs
6 stars 2 forks source link

java headless exception error on MacOS 10.13.1 #5

Open bsaul opened 6 years ago

bsaul commented 6 years ago

Hello, I installed the Crossover package and its dependencies from CRAN. However, when I run CrossoverGUI(), I get the following error:

Error in .jnew("org/mutoss/gui/CrossoverGUI") : 
  java.awt.HeadlessException
2017-11-30 15:15:03.072 R[511:4469] [JRSAppKitAWT markAppIsDaemon]: Process manager already initialized: can't fully enable headless mode.

I'm running OS 10.13.1 and R 3.4.2. My java version is:

java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)

I searched for "Process manager already initialized: can't fully enable headless mode." errors in google, but found nothing obvious.

Any ideas?

Thanks, -Bradley

kornl commented 6 years ago

Dear Bradley, this is a known problem for many packages using rJava and OS X. The only known workaround to me is to start R via JGR on OS X. Best regards, Kornelius

bsaul commented 6 years ago

AHA! Thank you.

On December 4, 2017 at 4:34:10 AM, Kornelius Rohmeyer ( notifications@github.com) wrote:

Dear Bradley, this is a known problem for many packages using rJava and OS X. The only known workaround to me is to start R via JGR on OS X. Best regards, Kornelius

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kornl/crossover/issues/5#issuecomment-348907897, or mute the thread https://github.com/notifications/unsubscribe-auth/AEqCLnTl3tMHAi6g5IAwE-m6eo-WDbPhks5s87ySgaJpZM4QxKD1 .