dorkbox / SystemTray

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

How to configure project and run Test File #128

Closed mohds164 closed 4 years ago

mohds164 commented 4 years ago

I open project in eclipse AND added jar file

https://git.dorkbox.com/dorkbox/SystemTray/releases https://repo1.maven.org/maven2/com/dorkbox/ShellExecutor/ https://repo1.maven.org/maven2/net/java/dev/jna/jna/ https://repo1.maven.org/maven2/net/java/dev/jna/jna-platform/ https://repo1.maven.org/maven2/org/slf4j/slf4j-api/ https://repo1.maven.org/maven2/org/javassist/javassist/

but still have more error.

import dorkbox.jna.linux.AppIndicator; import dorkbox.jna.linux.Gtk; import dorkbox.jna.linux.GtkCheck; import dorkbox.jna.linux.GtkEventDispatch; import dorkbox.util.javaFx.JavaFX; import dorkbox.util.swt.Swt;

import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Text;

dorkbox commented 4 years ago

It's configured to use JetBrains IntelliJ and gradle. I don't use Eclipse anymore, so I can't help you with it.

Ideally, you would open the build.gradle.kts as a project, and let the IDE import everything.