Description: do not add duplicate files to the jar
 Makefile lists MPMT_PROPERTIES, MPMT_DIR and $(MPMT_DIR)/icons
 as jar file arguments. Jar does not deduplicate input and tries to add 
 the files twice, causing the exception.
 Explicitly add only class files instead of the MPMT_DIR.
Author: Vladimir Petko <vladimir.petko@canonical.com>
Bug: https://savannah.gnu.org/bugs/index.php?67439
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1110785
Last-Update: 2025-08-18
--- a/Makefile.am
+++ b/Makefile.am
@@ -603,8 +603,7 @@
 		 $(MPMT_PROPERTIES) $(ICONS:%=$(srcdir)/%)
 	$(AM_V_GEN)rm -f $(GPROFNG_CLASSES)
 	$(AM_V_at)$(JAVAC) -cp $(srcdir) $(JAVAC_FLAGS) -d . $(srcdir)/$(MPMT_DIR)/Analyzer.java
-	$(AM_V_at)$(JAR) $(JAR_FLAGS) $@ $(anmodule_MF) $(MPMT_PROPERTIES) $(MPMT_DIR) \
-		-C $(srcdir) $(MPMT_DIR)/icons
+	$(AM_V_at)$(JAR) $(JAR_FLAGS) $@ $(anmodule_MF) $(MPMT_PROPERTIES) -C $(srcdir) $(MPMT_DIR)/icons $(GPROFNG_CLASSES)
 
 #
 # Standalone gprofng GUI
