Running examples in ‘arulesCBA-Ex.R’ failed
The error most likely occurred in:

> ### Name: LUCS_KDD_CBA
> ### Title: Interface to the LUCS-KDD Implementations of CMAR, PRM and CPAR
> ### Aliases: LUCS_KDD_CBA FOIL2 CPAR PRM CMAR
> 
> ### ** Examples
> 
> # make sure you have a Java SDK Version 1.4.0+ and not a headless installation.
> system("java -version")
java version "1.8.0_241"
Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)
> 
> data("iris")
> 
> # build a classifier, inspect rules and make predictions
> cl <- CMAR(Species ~ ., iris, support = .2, confidence = .8, verbose = TRUE)
LUCS-KDD: CMAR 
Call: java  -cp /Volumes/Builds/packages/high-sierra-x86_64/results/4.2/arulesCBA.Rcheck/arulesCBA/LUCS_KDD/CMAR.jar runCMAR -N3 -F/Volumes/Temp/tmp/Rtmp33SZdx/filec4ce56df03a9.num -S20 -C80 

Exception in thread "main" java.awt.HeadlessException
	at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
	at java.awt.Window.<init>(Window.java:536)
	at java.awt.Frame.<init>(Frame.java:420)
	at java.awt.Frame.<init>(Frame.java:385)
	at javax.swing.JFrame.<init>(JFrame.java:189)
	at AssocRuleMining.<init>(AssocRuleMining.java:140)
	at TotalSupportTree.<init>(TotalSupportTree.java:80)
	at PartialSupportTree.<init>(PartialSupportTree.java:113)
	at AprioriTFPclass.<init>(AprioriTFPclass.java:123)
	at AprioriTFP_CARgen.<init>(AprioriTFP_CARgen.java:132)
	at AprioriTFP_CMAR.<init>(AprioriTFP_CMAR.java:143)
	at runCMAR.main(runCMAR.java:8)
Warning in system(exe, intern = TRUE) :
  running command 'java  -cp /Volumes/Builds/packages/high-sierra-x86_64/results/4.2/arulesCBA.Rcheck/arulesCBA/LUCS_KDD/CMAR.jar runCMAR -N3 -F/Volumes/Temp/tmp/Rtmp33SZdx/filec4ce56df03a9.num -S20 -C80' had status 1
Error in .LUCS_KDD(formula, trans, method = "CMAR", parameter = paste0("-S",  : 
  
System call: ‘java  -cp /Volumes/Builds/packages/high-sierra-x86_64/results/4.2/arulesCBA.Rcheck/arulesCBA/LUCS_KDD/CMAR.jar runCMAR -N3 -F/Volumes/Temp/tmp/Rtmp33SZdx/filec4ce56df03a9.num -S20 -C80’

Make sure you have the right Java version installed (JDK 1.4.0+, not headless).
Calls: CMAR -> .LUCS_KDD
Execution halted