You are not logged in.
Pages: 1
Hi all and good new year!!!
pacman -Qs java
local/ca-certificates-java 20130815-1
local/icedtea-web-java7 1.4.1-1
local/jre7-openjdk 7.u45_2.4.3-1
local/jre7-openjdk-headless 7.u45_2.4.3-1
local/js 17.0.0-1
when I try to execute .jar file the answer is: sudo: jar: command not found
[blackswan@localhost /]$ which jar
which: no jar in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/core_perl)
What can I do?
Last edited by zorrotenai (2014-01-01 20:51:29)
Offline
I'm not 100% sure, but I don't think you want to run "jar", but java. jar is the file ending of a java byte code file, not how you execute a java file.
It's a bit lengthy, but this is how you could run a piece of java code in linux.
http://docs.oracle.com/javase/tutorial/ … /unix.html
Let me know if you encounter any issues.
Offline
I have to execute this command:
sudo jar xf unixmacosx.jar
Offline
pkgfile jar
extra/jdk7-openjdk
Install jdk7-openjdk
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
I have to execute this command:
sudo jar xf unixmacosx.jar
Aaah, ok.
This is a better resource:
http://ostermiller.org/opening_jar_files.html
It's a compressed file.
Offline
Please mark your thread solved as well zorrotenai
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Thanks to all
Offline
Pages: 1