#Build Errors, new fork - Newb help

9 messages · Page 1 of 1 (latest)

white shadow
#

Never programmed in Java before, trying to play around forking a repo of 'JaamSim'. I've managed to google and fix a lot errors, but I'm getting the errors attached in image now.

com.jaam.sim doesn't match java.com.jaamsim - Fixed by adding 'test/java' to build src paths instead of just 'test'

import org.junit cannot be resolved, kind of stuck on this one?

I'm assuming most of the remaining errors are related to that.

Any advice would be appreciated.

chilly isleBOT
#

This post has been reserved for your question.

Hey @white shadow! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

random salmon
#

A modern Java project would use a build manager system called Maven or Gradle. This one doesn't which will complicate the use of thirdparty libraries like junit

#

You'll need to download the junit library yourself and add it to your project's dependencies yourself. Beware that you'll probably need a version that's neither too recent nor too old. Unfortunately this project you have doesn't seem to tell what version works well for it.

white shadow
#

Gotcha, will try that.

#

Does say 'JUnit 4 here' in their programming manual

random salmon
#

Then the latest junit 4

white shadow
#

Thank you, that fixed all build errors! I got one last problem I need to dig into (Not getting any 3D rendering, probably something to with how JOGL is referenced), but I can probably search around jogl forums and figure that out. Thank you!