EPI Java Judge - Unable to run programs

#1

Just bought the book and started reading through it.
Did anybody else face this problem?
I am using IntelliJ Community IDE.

]
Also is it possible to use the judge with VS code?

0 Likes

#2

Same problem with Eclipse setup on my system.

Any solution ?

0 Likes

#3

I resolved these issues in 3 steps

  1. Install latest version of Java 13

$ java -version

java version “13.0.1” 2019-10-15

Java™ SE Runtime Environment (build 13.0.1+9)

Java HotSpot™ 64-Bit Server VM (build 13.0.1+9, mixed mode, sharing)

  1. Change Eclipse preferences to use this latest JRE
    Eclipse - Preferences - Installed JRE’s - Mac OS VM - /Library/Java/JavaVirtualMachines/jdk-13.0.1.jdk/Contents/Home

Apply and Close

  1. Manually changed TraitsFactory.java Line 21 to
    PRIMITIVE_TYPES_MAPPING = new HashMap<Type, SerializationTraits>() {

Hope this helps

0 Likes