#How to run a java app with dependencies that is built using maven

1 messages · Page 1 of 1 (latest)

signal bramble
#

I'm trying to run a Swing app I built that works perfectly when running from Intellij, however when I build it using maven and then try to run it using java -cp target/classes Main it shows NoClassDefFoundError. Does anyone know how to make it read dependencies just like in Intellij?

hard isleBOT
#

This post has been reserved for your question.

Hey @signal bramble! 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.

oak crown
#

Maybe copy the run configuration from IntelliJ

signal bramble
#

i figured it out thanks