build failure: jar: Illegal option: @

Andrew John Hughes gnu_andrew at member.fsf.org
Wed Mar 26 08:59:15 PDT 2008


On 26/03/2008, Timo Lindfors <timo.lindfors at iki.fi> wrote:
> Hi,
>
>  I tried to build mercurial head of icedtea but the build failed with
>
>  ...
>  Included file sun/awt/AWTAutoShutdown$PeerMap.class missing, skipping.
>  Included file java/util/Hashtable$EmptyIterator.class missing, skipping.
>  Included file java/util/Hashtable$EmptyEnumerator.class missing, skipping.
>  /bin/mv /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/reorder/file_list.temp /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/reorder/file_list
>  /bin/cat /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/reorder/file_list | /bin/grep "^sun" | /bin/grep "class" | /bin/grep -v '\$' \
>           > /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/sun_classes_list
>  sed 's/\.class/\.java/' < /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/sun_classes_list \
>           > /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/sun_sources_list
>  /bin/mkdir -p /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/jarfilelists
>  /home/lindi/l/hg/icedtea/icedtea/bootstrap/jdk1.6.0/bin/java  -client -Xmx896m -Xms128m -XX:PermSize=32m -XX:MaxPermSize=160m -jar /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/btjars/jarsplit.jar \
>                 /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/reorder/file_list \
>                 -o  /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/jarfilelists/rt_jar_list /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/jarfilelists/resources_jar_list
>  /bin/mkdir -p /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp
>  rm -f /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/rt-orig.jar
>  (cd /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/classes && /bin/cat /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/jarfilelists/rt_jar_list | \
>         /home/lindi/l/hg/icedtea/icedtea/bootstrap/jdk1.6.0/bin/jar c0mf@ /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/manifest.tmp /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/rt-orig.jar \
>             -J-client -J-Xmx896m -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m)
>  Illegal option: @
>  Usage: jar {ctxui}[vfm0Me] [jar-file] [manifest-file] [entry-point] [-C dir] files ...
>  Options:
>     -c  create new archive
>     -t  list table of contents for archive
>     -x  extract named (or all) files from archive
>     -u  update existing archive
>     -v  generate verbose output on standard output
>     -f  specify archive file name
>     -m  include manifest information from specified manifest file
>     -e  specify application entry point for stand-alone application
>         bundled into an executable jar file
>     -0  store only; use no ZIP compression
>     -M  do not create a manifest file for the entries
>     -i  generate index information for the specified jar files
>     -C  change to the specified directory and include the following file
>  If any file is a directory then it is processed recursively.
>  The manifest file name, the archive file name and the entry point name are
>  specified in the same order as the 'm', 'f' and 'e' flags.
>
>  Example 1: to archive two class files into an archive called classes.jar:
>        jar cvf classes.jar Foo.class Bar.class
>  Example 2: use an existing manifest file 'mymanifest' and archive all the
>            files in the foo/ directory into 'classes.jar':
>        jar cvfm classes.jar mymanifest -C foo/ .
>
>  make[2]: *** [/local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/rt-orig.jar] Error 1
>  make[2]: Leaving directory `/local/lindi/hg/icedtea/icedtea/openjdk-ecj/jdk/make'
>  make[1]: *** [jdk-build] Error 2
>  make[1]: Leaving directory `/local/lindi/hg/icedtea/icedtea/openjdk-ecj'
>  make: *** [stamps/icedtea-ecj.stamp] Error 2
>
>  Script done on Wed Mar 26 15:39:05 2008
>
>  Any idea what's wrong?
>
>  best regards,
>
> Timo Lindfors
>
>

Which jar program are you running? What platform is this on?
This info would help :)
-- 
Andrew :-)

Document Freedom Day - March 26th
http://documentfreedom.org

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net

PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8



More information about the distro-pkg-dev mailing list