java.lang.ClassNotFoundException

I started getting this error regardless of what file i compiled, after a bit of research i managed to narrow down the issue to something wrong with my classpath in sistem variables, but hadn't had any luck fixing it
13 Replies
JavaBot
JavaBot2y ago
This post has been reserved for your question.
Hey @asdru! 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.
dan1st
dan1st2y ago
acan you please show the complete stack trace as well as the relevant code?
asdru
asdruOP2y ago
No description
dan1st
dan1st2y ago
Did you compile your application?
asdru
asdruOP2y ago
im not sure what u mean by stack trace
dan1st
dan1st2y ago
in this case, there is no stack trace
asdru
asdruOP2y ago
yeah altho its not an app, or a package it happens with any java file
dan1st
dan1st2y ago
How did you compile it? where are your compiled class files?
asdru
asdruOP2y ago
both using the java extension on vsc and via terminal using javac
dan1st
dan1st2y ago
what's the output of the command dir?
asdru
asdruOP2y ago
ok im not sure what happened but i compiled and executed in 2 different commands and it seems to be working compiling via terminal seems to be working ig there is an issue with the vsc extensions oh well thanks anyway
JavaBot
JavaBot2y 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.
JavaBot
JavaBot2y ago
Post Closed
This post has been closed by <@372715536121069578>.
Want results from more Discord servers?
Add your server