meyerjp3 / psychometrics

A Java library for classical test theory, item response theory, factor analysis, and other measurement techniques. It provide tools commonly used in psychometrics and operational testing programs.
95 stars 46 forks source link

mvn install failed #12

Open anachronin opened 5 years ago

anachronin commented 5 years ago

Seems like there is missing javafx dependency:

[INFO] Reactor Summary for Psychometrics 2.0: [INFO] [INFO] Psychometrics ...................................... SUCCESS [ 0.611 s] [INFO] psychometrics-core ................................. SUCCESS [ 10.613 s] [INFO] psychometrics-ctt .................................. FAILURE [ 2.656 s] [INFO] psychometrics-optim ................................ SKIPPED [INFO] psychometrics-factor ............................... SKIPPED [INFO] psychometrics-fmm .................................. SKIPPED [INFO] psychometrics-irt .................................. SKIPPED [INFO] psychometrics-nirt ................................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 14.124 s [INFO] Finished at: 2019-04-26T18:25:02+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:testCompile (default-testCompile) on project psychometrics-ctt: Compilation failure: Compilation failure: [ERROR] /home/user/joel/rnd/test/psychometrics/psychometrics-ctt/src/test/java/com/itemanalysis/psychometrics/classicalitemanalysis/StreamingItemAnalysisTest.java:[3,25] error: package javafx.application does not exist [ERROR] [ERROR] /home/user/joel/rnd/test/psychometrics/psychometrics-ctt/src/test/java/com/itemanalysis/psychometrics/classicalitemanalysis/StreamingItemAnalysisTest.java:[4,28] error: package javafx.beans.property does not exist [ERROR] [ERROR] /home/user/joel/rnd/test/psychometrics/psychometrics-ctt/src/test/java/com/itemanalysis/psychometrics/classicalitemanalysis/StreamingItemAnalysisTest.java:[5,28] error: package javafx.beans.property does not exist [ERROR] [ERROR] /home/user/joel/rnd/test/psychometrics/psychometrics-ctt/src/test/java/com/itemanalysis/psychometrics/classicalitemanalysis/StreamingItemAnalysisTest.java:[6,25] error: package javafx.collections does not exist [ERROR] [ERROR] /home/user/joel/rnd/test/psychometrics/psychometrics-ctt/src/test/java/com/itemanalysis/psychometrics/classicalitemanalysis/StreamingItemAnalysisTest.java:[7,25] error: package javafx.collections does not exist

wbuchanan commented 5 years ago

javafx should be available on the client side system that is compiling the source code. Which version of Java are you using to try compiling the source code?

anachronin commented 5 years ago

Thanks @wbuchanan , am using Java 8. Will upgrade and install again.

wbuchanan commented 5 years ago

Java 8 should include JavaFX, so that shouldn’t be an issue. Are you using OpenJDK or the official Java release from Oracle? Maybe there are some differences between the two distributions. If you are installing from a foreign country that might be an issue as well; I know there are restrictions on the distribution of encryption libraries to some countries, so this is more of a guess than anything.

anachronin commented 5 years ago

I am compiling on a CentOS server (6.10).

$ java -version

openjdk version "1.8.0_212" OpenJDK Runtime Environment (build 1.8.0_212-b04) OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)

You are right: no javafx included with OpenJDK. I am trying solution suggested here