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
JavaBot
JavaBot8mo ago
This post has been reserved for your question.
Hey @CrackTheCode! Please use /close or the Close 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
CrackTheCode
CrackTheCodeOP8mo ago
Yeah I think thats the problem but I put in vm options to include classpath in build @JW
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
CrackTheCode
CrackTheCodeOP8mo ago
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
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
CrackTheCode
CrackTheCodeOP8mo ago
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
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
CrackTheCode
CrackTheCodeOP8mo ago
How did you go about it ? @KyfStore
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
CrackTheCode
CrackTheCodeOP8mo ago
Thanks Im trying to understand but Im confused lol
JavaBot
JavaBot8mo ago
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.
CrackTheCode
CrackTheCodeOP8mo ago
Ill message you now
JavaBot
JavaBot8mo ago
💤 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.

Did you find this page helpful?