#Intellij Idea doesn't suggest imports of jogamp

1 messages · Page 1 of 1 (latest)

rich cove
#

Hey, I have a class import problem. I'm making a JavaFX app and I use JOGL too... When I write a class name from com.jogamp, Intellij doesn't suggest me the class. I need to add to the compiler the option --add-export. It's a big waste of time because I need to write the directory of my class before adding the compiler option and only then I can use my class. Does someone know this problem and can help me to correct it please ?

The path of the class:
import com.jogamp.opengl.util.texture.awt.AWTTextureIO;

My maven dependency is added.

leaden canyonBOT
#

<@&987246527741304832> please have a look, thanks.

royal cradle
#

share your pom.xml pls

rich cove
leaden canyonBOT
rich cove
#

All is good. Just, intellij doesn't suggest me any classes of jogamp if the --add-export of the class path isn't set.

royal cradle
#

thats weird, you tried re-validating cache?

rich cove
#

Yes

#

Twice

royal cradle
#

what does it do if you click "Add Maven dependency..." though its already there

stuck pagoda
#

and your sure of that import ? looks weird that the package name is the actual class name

royal cradle
#

but does it work if you manually add the import?

rich cove
rich cove
#

but it's annoying to have to manually import each class

royal cradle
#

maybe delete .idea folder, then restarting intellij and maybe additionally reload maven

rich cove
#

Already done

#

All intellij import settings are good... Is it possible that module-info.java is blocking imports?

royal cradle
#

yea

rich cove
#

How to solve it ? 😂

#

module fr.sorendeveloppement.sge {
    requires javafx.controls;
    requires javafx.swing;
    requires jogl.all;

    exports fr.sorendeveloppement.sge;
}

leaden canyonBOT
royal cradle
#

im not experienced enough using modularity in java

#

someone else will help though

rich cove
#

Yep, thanks a lot !