From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1N1myP-0003rB-BF for garchives@archives.gentoo.org; Sat, 24 Oct 2009 20:12:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F0312E0796; Sat, 24 Oct 2009 20:12:22 +0000 (UTC) Received: from mail-px0-f200.google.com (mail-px0-f200.google.com [209.85.216.200]) by pigeon.gentoo.org (Postfix) with ESMTP id 8D451E0796 for ; Sat, 24 Oct 2009 20:12:22 +0000 (UTC) Received: by pxi38 with SMTP id 38so1923099pxi.10 for ; Sat, 24 Oct 2009 13:12:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=n7vKS2QLkCqio0KPLDh6/qyxm9Bd566i1eTwv/ixEAo=; b=J8DDWFISxXiak/wQf7JHp5dINNRiGUrqItm7u5ThApKI3tHUkxjIc5oA9zaGSG5/d6 ttWqGltdiAhMD5iBj3I0rLChNpLKYpYfQ2846JNKU+ZxMjvG0hGYxAFCPdGO8uNqhZD1 PmUow9vSyjY4KC4WwIfII8oQ1gc4Ld6mH9fqo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ONdW+0Qb6/Ctm2Ik3nXH77NTgaRcpnCV91AoHHHiZ1FeAeiUFATbia0BnztCykANeE DnitEs6G/lWWmMUip01RhC09HAxODmOK6zzHb+JX95qD6HWIaI1qlf+slITOVwXrAO4W sAFJDJoqIwyFQQwomJH35kM/MZOlSfDQwwXiE= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.115.100.4 with SMTP id c4mr18116454wam.13.1256415142164; Sat, 24 Oct 2009 13:12:22 -0700 (PDT) Date: Sat, 24 Oct 2009 13:12:22 -0700 Message-ID: <49bf44f10910241312i703d447fj3ffa1156b1bcf074@mail.gmail.com> Subject: [gentoo-user] ebuild help: java main class? From: Grant To: Gentoo mailing list Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: f9674dbc-bffb-4e94-8529-6f48197cc54a X-Archives-Hash: 44c7dd5e8d4e535ee67026c571a3cc00 I'm trying to fix up the JAlbum ebuild: http://bugs.gentoo.org/show_bug.cgi?id=128356 and get it to use java-pkg-2. Here's what I have so far: inherit java-pkg-2 eutils S="${WORKDIR}/Jalbum" DESCRIPTION="Web photo album generator" HOMEPAGE="http://jalbum.net/" SRC_URI="http://jalbum.net/download/Jalbum${PV}.zip" LICENSE="as-is" SLOT="0" KEYWORDS="x86" IUSE="" DEPEND=">=virtual/jre-1.5" RDEPEND="${DEPEND}" src_install() { java-pkg_dojar JAlbum.jar java-pkg_dolauncher jalbum \ --jar JAlbum.jar \ --java_args -Xmx400M local dest=/usr/lib/${PN} dodir ${dest} cp -R ${S}/* ${D}/${dest} || die "Install failed" doicon ${FILESDIR}/Jalbum-icon.png make_desktop_entry ${PN} } It executes just fine, but I get: $ jalbum Error: se.datadosen.jalbum.JAlbum java.lang.ClassNotFoundException: se.datadosen.jalbum.JAlbum at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at se.datadosen.jalbum.Main.main(Main.java:23) I was told I need to define the main class with --main. Does anyone know how to determine what the main class should be? - Grant