0

I suddenly encountered the following problem: it does not recognise certain class files from the dependencies. Screenshot

Thinking it was because of my installation, I re-installed everything from Java to the Maven Plugin and tried to compile and run the SimpleExample from a clean project. Which gives the following result: Screenshot and the following exception: Screenshot

J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142

1 Answers1

0

Your project is missing the dependency rinsim-core with groupId com.github.rinde.

Check with dependency:list if it is present. If not, add it.

If it is already there, try to compile the project outside eclipse. Install a command line maven, navigate to the directory, do mvn clean package and report any error you get as a comment under this answer.

J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
  • No errors, only warnings: [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ mas --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! – Nick Vandeborg May 25 '18 at 09:08
  • This means that your build indeed has the right dependencies. If you stil experience problems inside eclipse then your eclipse is broken. – J Fabian Meier May 25 '18 at 09:30
  • I re-installed eclipse yesterday, and I tried IntelliJ. Same problem. – Nick Vandeborg May 25 '18 at 09:40
  • But you checked that `rinsim-core` is in the dependency:list? – J Fabian Meier May 25 '18 at 09:48
  • Yes, and it wasn't, so then I added it. No difference though. – Nick Vandeborg May 25 '18 at 10:34
  • And you still get the very same classnotfound? – J Fabian Meier May 25 '18 at 11:14
  • Did you try to right click on the project -> Maven -> Update project.. (make sure "Clean projects" is checked) -> Ok? Did you try if this also happens with RinSim v4.4.5? Did you try removing your .m2 folder as is described in [RinSim troubleshooting](http://rinsim.rinde.nl/installation/troubleshooting/)? – rinde May 26 '18 at 03:34