#VS code doesnt find the file
1 messages · Page 1 of 1 (latest)
<@&987246964494204979> please have a look, thanks.
java DrawDelta.java
which version of java are you using ?
1.8
ah you are using such an old version
you should upgrade
but anyway
so
cd ../..
rm -rf out
javac -d out src/A11/*.java
java -cp out A11.DrawDelta
Should work @timber quail
should work even in 1.8
Alright, I advise you to use IntelliJ instead, or at least java extension pack in vscode, and don't compile and run by yourself
and I advise you to update java, it's not normal that you are using java 8
this is why i want to run on my own. i need to use args[]. also uni forces us to use 1.8
how?
and for the explanation about the commands I gave you
javac -d out src/A11/*.java
javac is used to compile java code
-d is the target directory where to put the compiled files, you can check in out, you will see .class files which are compiled java code
java -cp out A11.DrawDelta
in order to run java code, you need to specify the full class name, including package, so it's A11.DrawDelta
and -cp out tells java to search for compiled classes in out, cp means classpath, it's also here that you specify libs
@timber quail
In vscode you probably have a config file or a specific task for that
In IntelliJ, you can give args in the run configuration
oh alright i understand thank you very much for everything
what should i change in the tags now? im new
wdym
do i just leave it like this?
If you want to close the question, try to write /close and let it autocomplete
ah alright