Skip to content

Tag: intellij-idea

Intellij Idea fails to start with VPN enabled

I am having a trouble with launching Intellij Idea Ultimate Edition 2021.1.2 (also tried 2020.3.1) with VPN enabled (I am using GlobalProtect) on Windows 10. I’ve been working on this setup for quite a long time, but recently something went wrong with no obvious changes made. So, after launching Intelli…

How to Convert Point2D.Double’s to use aritmetic operator >

I have this code: What I wanted to do is use the > arithmetic operation in Point2D.Double object. But as the following error says I cannot use arithmetic operators in Point2D.Double elements. How can I modify my code to work with > operator and other aritmetic operators without changing the input elemen…

UndeclaredThrowableException for custom Exceptions

I’m currently working on a project running a jboss backend server (server-ear:ear exploded artefact) and a java gui (java 11) as frontend. The backend contains a java service bean which accesses a database server and throws a custom exception (extends exceptions), if the variable is not found. The GUI c…

JSON file not copied to target folder

In my java project, I have a .json file which I have placed in resource folder. When I am trying to read this .json file in my main class using the getResourceAsStream() method, I am getting a FileNotFoundException. I checked that under folder target > classes this .json file is not present. I am not sure …

Cucumber feature file isn’t bound to glue path

I am trying to set up a simple Cucumber project to run with Selenium (The Selenium bits are irrelevant so I removed them). The structure is as follows: sayHiTest.feature: testRunner.java: SayHiTestStepsdefs.java: Trying to run testRunner yields the following error: For some reason, it doesn’t see automa…

Intellij doesn’t recognize package

i got this sample solution from my Professor, but somehow it isn’t working. IntelliJ does not recognize the packages. That’s the case for every class. When I hover over it it says: “Package name ‘spaceman.view.util’ does not correspond to the file path ‘view.util’ &#8…