j143 / systemds

An opensource ML system for end-to-end data science lifecycle
Apache License 2.0
0 stars 1 forks source link

Error: Unable to initialize main class org.apache.sysds.api.DMLScript #300

Closed j143 closed 1 year ago

j143 commented 1 year ago
$ java -Xmx1g -Xms1g -Xmn400m    -cp ./systemds-3.1.0.jar:../lib/*:../target/lib/*      org.apache.sysds.api.DMLScript   -f hello.dml   -exec singlenode
Error: Unable to initialize main class org.apache.sysds.api.DMLScript
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/cli/AlreadySelectedException
j143 commented 1 year ago

Make sure the location relative path of libraries is correct!


@j143 ➜ .../systemds/systemds/3.1.0/systemds-3.1.0-bin (c6195020b) $ ls
bin  conf  hello.dml  hs_err_pid24127.log  hs_err_pid27240.log  lib  LICENSE  NOTICE  README.md  scratch_space  scripts  systemds-3.1.0.jar
@j143 ➜ .../systemds/systemds/3.1.0/systemds-3.1.0-bin (c6195020b) $ 
@j143 ➜ .../systemds/systemds/3.1.0/systemds-3.1.0-bin (c6195020b) $ 
@j143 ➜ .../systemds/systemds/3.1.0/systemds-3.1.0-bin (c6195020b) $ java -Xmx1g -Xms1g -Xmn400m    -cp ./systemds-3.1.0.jar:./lib/*:./target/lib/*      org.apache.sysds.api.DMLScript   -f hello.dml   -exec singlenode
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
log4j:WARN No appenders could be found for logger (org.apache.sysds.api.DMLScript).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Hello, World!
SystemDS Statistics:
Total execution time:           0.023 sec.