Mailinglist Archive: opensuse-packaging (83 mails)

< Previous Next >
Re: [opensuse-packaging] How to set javac target ?
  • From: Bernhard Walle <bwalle@xxxxxxx>
  • Date: Mon, 27 Oct 2008 16:42:02 +0100
  • Message-id: <20081027164202.58143ee9@xxxxxxxxxxxx>
* Stefan Dirsch [2008-10-27 16:39]:

On Mon, Oct 27, 2008 at 04:03:16PM +0100, Bernhard Walle wrote:
* Bernhard Walle [2008-10-27 16:02]:

* Stefan Dirsch [2008-10-27 15:55]:

Failed to load Main-Class manifest attribute from
/usr/share/java/geotag.jar

You have to set the main class in the manifest file, see jar(1). Or
call the program with

java -cp geotag.java package.and.Class.of.main.method
^^^ /usr/share/java/geotag.jar

Thanks. Tried it with

java -cp /usr/share/java/geotag.jar org/fibs/geotag/Geotag

(which might be the wrong main class; not sure how to figure out the
main class of a Java program)

Search for 'main (String[] args)'.

But I would try org.fibs.geotag.Geotag instead.


Regards,
Bernhard
--
Bernhard Walle, SUSE Linux Products GmbH, Architecture Development
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups