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
JavaBot17mo 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
dan1st17mo ago
acan you please show the complete stack trace as well as the relevant code?
asdru
asdru17mo ago
No description
dan1st
dan1st17mo ago
Did you compile your application?
asdru
asdru17mo ago
im not sure what u mean by stack trace
dan1st
dan1st17mo ago
in this case, there is no stack trace
asdru
asdru17mo ago
yeah altho its not an app, or a package it happens with any java file
dan1st
dan1st17mo ago
How did you compile it? where are your compiled class files?
asdru
asdru17mo ago
both using the java extension on vsc and via terminal using javac
dan1st
dan1st17mo ago
what's the output of the command dir?
asdru
asdru17mo 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
JavaBot17mo 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
JavaBot17mo ago
Post Closed
This post has been closed by <@372715536121069578>.
Want results from more Discord servers?
Add your server