SystemTray icon indicating copy to clipboard operation
SystemTray copied to clipboard

Missing classes in the example

Open hrzafer opened this issue 4 years ago • 2 comments

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 avatar Dec 21 '21 00:12 hrzafer

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)

hrzafer avatar Dec 21 '21 01:12 hrzafer

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.

dorkbox avatar Dec 21 '21 06:12 dorkbox