Skip to content

Tag: intellij-idea

Can run in Intellij, but jar file fails

Instead of running Quarkus, I’m running OptaPlanner through a Main class entry point in Kotlin. This works great within Intellij where I have a simple Run Configuration set up for it. However, when I create an Intellij artifact for a jar and try to run it, I get this: In solverConfig.xml I’m using…

Codename One images not loading

The image(s) is in the “src” folder. Everything was working fine, until this morning I keep getting a black screen when I run the simulator with “java.lang.IllegalArgumentException: stream == null!” Answer You can’t let the exception bubble since the method is a callback and this…

IntelliJ IDEA java directory paths problem

I have a problem with paths. I’ve got a test project like this below and I want to create a JSON reader in Main so I need a test_json path. I don’t wanna use an absolute path D:…, but a path “from project” (I mean smth like main://resources/json_test/test_json.json). Is there any…

IntelliJ – External library recognized but build fails

I’ve been recently trying to build a Java project which looks as follows: in ./someProject, I’m importing an interface and a class from ./libForSomeProject. I learned recently that in IntelliJ, one can make ./someProject aware of the ./libForSomeProject by adding it as an external library (project…