0

I am new to Java and I am trying to debug this error message.

Severe: Unable to instantiate edu.cwru.sepia.agent.VisualAgent with arguments [1, 0]. is not a valid XML configuration file.

java.lang.NoSuchMethodException: edu.cwru.sepia.agent.visual.VisualAgent.(int)

I have a jar file called Sepia.jar with a main class that opens a GUI with parameters from ResourceCollectionConfig.xml.

I use the command java -cp lib/Sepia.jar edu.cwru.sepia.Main2 data/ResourceCollectionConfig.xml to run the main class.

When I run it on my ubuntu desktop, runs with no issues. Same file on a different ubuntu machine with same Java SDK throws this error. What am I missing? I checked the encoding of XML file it is UTF-8. Any help would be appreciated!

Thanks!

Naren
  • 23
  • 6
  • It looks like you have inconsistent dependencies between what your Sepia.jar file and the sepia libraries that have been installed on the other machine(s). I am guessing that the dependencies have been installed in your Java 8 or earlier "ext" directory. Solution: fix the dependencies. (And my recommendation would be: don't use "ext". It is a deprecated mechanism that is removed in Java 9.) – Stephen C Jan 24 '22 at 23:32

0 Answers0