I have created a scratch file scratch.java
I added a new plain java module that contains the following:
I have specified the dependency in the build configuration for the scratch file:
The dependencies are not found when I try and edit and build the scratch file.
How can I easily add dependencies to a scratch file in intelij?
Location of scratch files and buffers By default, IntelliJ IDEA stores scratch files and buffers in the IDE configuration directory under scratches. They are available from any IDE and project that uses this configuration directory. Windows.
In Run/Debug Configuration... setting you can make your scratch-file to be run using a specific classpath or module. Just change Use classpath of module
or Program arguments
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With