dorkbox / SystemTray

Cross-platform SystemTray support for Swing/AWT, macOS, GtkStatusIcon, and AppIndicator on Java 8+
Other
446 stars 58 forks source link

Missing classes in the example #174

Closed hrzafer closed 1 year ago

hrzafer commented 2 years ago

I'm using version 4.1. Can't find version 4.2 in the maven central. And I can't find classes below.

image

Here is how maven looks. For some reason utilities dependency is omitted.

image

hrzafer commented 2 years ago

I had to add utilities dependency separately and change it scope to make the project work.

      <dependency>
            <groupId>com.dorkbox</groupId>
            <artifactId>SystemTray</artifactId>
            <version>4.1</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/com.dorkbox/Utilities -->
        <dependency>
            <groupId>com.dorkbox</groupId>
            <artifactId>Utilities</artifactId>
            <version>1.12</version>
<!--            <scope>runtime</scope>-->
        </dependency>

Now I'm getting the following exception during runtime:

Caused by: java.lang.ClassNotFoundException: dorkbox.util.swing.DefaultPopupMenuUI
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
dorkbox commented 2 years ago

Sadly, the 4.x releases have problems -- as JPMS has shown to be rather troublesome in getting it work correctly with a multi-jar build. It's quite annoying, so I would recommend the latest 3.x release for now and then switch to the 4.2 release once it's done.

i expect to finish before the end of the year, as I have time for it then.