Skip to content
Advertisement

Tag: ini4j

Getting ‘Exception in thread “main” java.lang.NoClassDefFoundError: org/ini4j/Ini’ error after succesfully compiling source file from the CLI

Background: I am trying to use ini4j for the purpose of parsing config files in the ini format. I run the command: javac -classpath ini4j-0.5.4.jar Driver.java and the compilation goes smoothly…however when I attempt to run the program running: java Driver I get this error: Exception in thread “main” java.lang.NoClassDefFoundError: org/ini4j/Ini at Clock.main(Clock.java:13) Caused by: java.lang.ClassNotFoundException: org.ini4j.Ini at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at

Advertisement