There is such term like CLASSPATH which is using that JVM could find custom classes or jar files to import them to another packages (Am I right?). So, I created a few custom classes and placed them into package net.ederika, then I created another project with net.bartikan package name. My main idea is to import classes from net.ederika package to
Tag: intellij-idea
Error calling method using same data (new data is always generated)
I have the following problem to be solved, could you help me? I have two methods in a class. The first generates a document (calling another class) and stores it in a string. The second one I want to …
parameterized test constructor of junit java error message: Test class should have exactly one public zero-argument constructor
I can really use some help with this parameterized test case I am trying to create. No matter what kind of constructor I create the IDE gives an error message. Here is my code: I have tried different ways of creating a 1 parameter, 2, and no parameter constructors. But I have never seen this type of issue or what
Function “onButtonClicked” is never use
I have created a function called “onButtonClicked” and I want the button (bt301_tw) to send me to the activity (MainActivity_04_ReadioGroup). The problem is when I create the function …
package javafx.util does not exist?
I am using openjdk version “1.8.0_252” and I also separately install the javafx and currently the version is javafx.version=11.0.2-internal. I have added the javafx lib path in the intellij. There is no error while writing the code javafx Pair. However when I build the project with sudo mvn clean install I got build failure with the following error: Answer The
Junit test of a class requires objects of other classes
I have a class defined as such: Simply put, there is an algorithm that requires input from other class, the mapObject, which is also another self-written package by me. My question is, apart from in junit that allows me to initialize a fixture in Are there any better ways? Answer It’s probably better to create the input object (i.e. the
How can I use getText to capture text on lines which aren’t tagged?
I have the following web element, which looks like this when inspecting the web page element in the browser:
Your reference is &…
IntelliJ debug maven package included in EAR
After deploying an EAR to a local Weblogic instance, I’m remote debugging the application without problems. However, I cannot seem to get debug connection to a maven package that I’ve added as a maven dependency to the project (jar). Debug config: Showing working debug connection in source code: Not working debug on included Maven package: How to solve this? Note:
IntelliJ JDK 16 Early Access – Any Success? tools.jar
Has anyone had any success using JDK 16 (https://jdk.java.net/16/) early access build with IntelliJ? I am able to use JDK 15 early access builds, but when I try JDK 16 I get an error message: All of the research I’ve done says JDK stores tools.jar inside of the path/to/jdk-16/lib folder. Thing is, tools.jar isn’t there in the JDK 15 package
Moving packages in IntelliJ IDEA
I have a problem moving packages in IntelliJ IDEA. I have created Maven project with multiple modules and each of those modules has a package with the same name. Now whole project becomes a mess if I try to rename some of the packages. My current project structure is something like this: Notice that somepackage is present in all maven