Skip to content
Advertisement

Tag: package

package com.sun.beans.finder does not exist openjdk

When a file is compiled that imports com.sun.beans.finder.ConstructorFinder, this error comes out: The system is an Ubuntu 18.04.1 with OpenJDK: Where can I find this package? The compilation process is as follows: Sources files are located in src Some jar dependencies are in lib The output classes are in bin For ./src/Demo/FeatConstruction.java, I compile it using: Answer First of all,

Adding Maven framework causes problems in project

After adding Maven framework to my project everything turns red. A new package named “main” appears between packages “src” and the first package that I created “java.hr.production” (by hierarchy) as can be seen in the 1st picture. It also changes the import address. The 2nd picture shows maven code. Appreciate it if you could help. Some words are not in

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’ ” Has anyone any idea what could be wrong? I’m a total beginner when it comes to

Package Visibility Issue in Java

DETAILS : I am trying to build a java project from command line with the following directory structure : QUESTION : I assume that Main.java has access to all classes, enums, interfaces, and annotations of all the four folders. But, if I want to use the enum in tokens package, is there any way to do so ? By way,

Referencing packages in java without using String

Is there a way to reference a package in java in code without using a String? Let me explain myself: I’ve a function that fetches all object contained in a package, but I’ve to reference that package using a String, lets say “com.google.guava”. This works, however, If I change the package name, the IDE is not able to automatically refractor

Advertisement