how to run executable JAR files
I have two development machines, a desktop and a laptop. Both run Quantal 64 and OpenJDK 7 / Iced Tea. My desktop can run exectuable JAR files but my laptop cannot run the same files. I've tried uninstalling and reinstalling java but to no avail. Any advice?
On the laptop I get the following on a terminal:
$ ./kedar.jar
./kedar.jar: line 1: $'PK\003\004': command not found
./kedar.jar: line 2: $'\b\200[fA': command not found
./kedar.jar: line 3: �CN��META-
./kedar.jar: line 4: syntax error near unexpected token `$'\251\
./kedar.jar: line 4: `���Lkڔ(��0������uǖ+t�I!q0��j ���$ŀuG*e���J�� #d�l��Z�Ό�%Uz
<cL�s)*
Running it with strace I get:
$ strace ./kedar.jar
execve(
dup(2) = 3
fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=
mmap(NULL, 4096, PROT_READ|
lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: Exec format error\n", 32strace: exec: Exec format error
) = 32
close(3) = 0
munmap(
exit_group(1)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu bash Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- David White
- Solved:
- Last query:
- Last reply: