You are not logged in.
Pages: 1
The "jar" command is not working for me. I see:
511 $ uname -a
Linux BunsenLabs-Mac 3.16.0-4-686-pae #1 SMP Debian 3.16.39-1+deb8u2 (2017-03-07) i686 GNU/Linux
512 $
512 $ type jar
jar is /usr/share/bash-completion/completions/jar
513 $
513 $ file /usr/share/bash-completion/completions/jar
/usr/share/bash-completion/completions/jar: ASCII text
514 $
514 $ ls -l /usr/share/bash-completion/completions/jar
-rwxr-xr-x 1 root root 516 Mar 22 2014 /usr/share/bash-completion/completions/jar
After I chmoded it a+rx. This looks like a shell script, but it
does nothing. In contrast, on Raspbian, I see:
424 $ uname -a
Linux RaspbPi-3-2700 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux
425 $
425 $ type jar
jar is /usr/bin/jar
426 $
426 $ file /usr/bin/jar
/usr/bin/jar: symbolic link to /etc/alternatives/jar
427 $
427 $ file /etc/alternatives/jar
/etc/alternatives/jar: symbolic link to /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/bin/jar
428 $
428 $ file /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/bin/jar
/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/bin/jar: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.26, BuildID[sha1]=fb9bbe89629ae4c7804eb31ab5b72eef599a74c5, stripped
and the "jar" command works as documented. Do I need to install something?
(I am not trying to execute a .jar file. I can do that with "java -jar"
or with "xdg-open", which works.)
Thanks,
gil
Offline
you should UNdo what you did to that jar file.
i'm not sure if it's even related to java, but it surely isn't the file you're looking for.
instead you should install java.
my guess is you need the jre = java runtime environment.
there are 2 versions, one open source, one proprietary (oracle i think).
if you need further help, provide information about the Why.
Offline
OK. I installed Oracle Java 8 from instructions I found at:
http://s1ldev.blogspot.com/2017/01/my-p … unsen.html
jar now works. I see some chatter that this belongs in bl-welcome.
Beyond my skill set. The "why" is to be able to run this script:
#! /bin/sh
# Fetch .zip file with curl, concurrently logging to terminal and *.toc
{ curl -sS -D/dev/fd/3 "$1" | # ??? Where do headers go ???
tee "${1##*/}" | jar -tv; } 3>&1 | tee "${1##*/}.toc"
Thanks,
gil
Offline
OK. I installed Oracle Java 8 from instructions I found at:
http://s1ldev.blogspot.com/2017/01/my-p … unsen.htmljar now works. I see some chatter that this belongs in bl-welcome.
Beyond my skill set.
any reason why the jre from the repos wouldn't be sufficient?
Offline
Pages: 1