Skip to content
Advertisement

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 <domainAccessType>REFLECTION</domainAccessType> because I cannot get Gizmo to

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 is a checked exception. But add Log.e(e) into the catch block. NEVER do a blank

IntelliJ Run Configuration for Spring Boot apps?

I do not change run configuration unless reinstalling IntelliJ IDEA and I am not sure if I set the run config properly. Configuration Dialog Could you pls clarify me about the following issue based on the attached dialog: 1. SHould I use SPring Boot or Application Template of Run config for a Spring Boot app? Or is both of them

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 way to do that? enter image description here Answer

multi-pom in intellijIDEA. Error adding module to project: null

I wanted to make a multi-pom project in Intellij (2020.3.4). In one Maven project, I right-click ->New -> Module -> Maven. select parent to “my project”. However, even if parent is not specified, I get the error: Error adding module to project: null. (at the same time, it adds a regular folder with the module name and an empty pom.xml

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 structure -> libraries etc.). Indeed, when I do this, the IDE seems to recognize

Advertisement