#VS code doesnt find the file

1 messages · Page 1 of 1 (latest)

timber quail
#

I am inside the right folder but for some reason it doesnt find the DrawDelta file

steady ravenBOT
#

<@&987246964494204979> please have a look, thanks.

timber quail
#

same thing

somber swift
timber quail
#

1.8

somber swift
#

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

timber quail
somber swift
#

ah you are using windows

#

well

#

not a problem

#

ignore this

#

do the two next

timber quail
#

ah ok

#

yes it works thank you so much

somber swift
#

and I advise you to update java, it's not normal that you are using java 8

timber quail
#

this is why i want to run on my own. i need to use args[]. also uni forces us to use 1.8

somber swift
#

ah right

#

you can still pass args even if you don't run by yourself

timber quail
#

how?

somber swift
#

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

somber swift
# timber quail how?

In vscode you probably have a config file or a specific task for that
In IntelliJ, you can give args in the run configuration

timber quail
#

oh alright i understand thank you very much for everything

#

what should i change in the tags now? im new

somber swift
timber quail
#

do i just leave it like this?

somber swift
#

If you want to close the question, try to write /close and let it autocomplete

timber quail
#

ah alright