Could not find or load main class caused by ClassNotFoundException
I always get Could not find or load main class caused by ClassNotFoundException why is this despite having a manifest pointing to the main class / entry point I also have jars I have imported in the modules what could be the issue it runs fine in intellij but not in terminal
14 Replies
⌛
This post has been reserved for your question.
Hey @CrackTheCode! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Yeah I think thats the problem but I put in vm options to include classpath in build @JW
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Our company hasn't gone to maven just yet
Just raw java @JW
We have some external jars and I have imported them when I build a jar artifact with external libraries it doesn't go with it for some reason
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Im always having to write java -cp
@JW Sometimes I can run a jar without having no arguments just file.jar thats it because of my jvm installed on my pc
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
How did you go about it ?
@KyfStore
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Thanks Im trying to understand but Im confused lol
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
Ill message you now
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.