Github user pwendell commented on the pull request:
https://github.com/apache/spark/pull/610#issuecomment-42097964
@andrewor14 @aarondav I tried this locally and ran into a bug. The use of
`jar` to read the index of the files doesn't honor `JAVA_HOME`. In my case the
system default is Java 6 whereas JAVA_HOME is set to Java 7. When it tried to
get the index of the jar it failed silently. The actual error was this (related
to the 65k jar limit)
```
java.util.zip.ZipException: invalid CEN header (bad signature)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:132)
at java.util.zip.ZipFile.<init>(ZipFile.java:93)
at sun.tools.jar.Main.list(Main.java:997)
at sun.tools.jar.Main.run(Main.java:242)
at sun.tools.jar.Main.main(Main.java:1167)
```
1. Is there a reason we intentionally swallow stderr from the `jar` command?
2. Could we have the `jar` command respect `JAVA_HOME` similar to in
`spark-class`?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---