Answer the question
In order to leave comments, you need to log in
armitage not starting in kali after java update?
After updating armitage to the latest version available:
13 Aug 15 (tested against msf git revision: 55ef5dd484)
deb ppa.launchpad.net/webupd8team/java/ubuntu precise main
deb-src ppa.launchpad.net/webupd8team/java/ubuntu precise main
[email protected]:~# sudo armitage
/usr/bin/java: 1: /usr/bin/java: : not found
/usr/bin/java: 1: /usr/bin/java: : not found
@@@@@@@@@@@ | @@[email protected]@387Qtd/lib64/ld-linux-x86-64.so.2GNU GNUt)N;rZ?h: Directory nonexistent
/usr/bin/java: 1: /usr/bin/java: ELF: not found
/usr/bin/java: 1: /usr/bin/java: : not found
/usr/bin/java: 3: /usr/bin/java: : not found
/usr/bin/java: 1: /usr/bin/java: Syntax error: end of file unexpected (expecting ")")
~# java version
bash: /usr/bin/java: cannot execute binary file
https://forums.kali.org/showthread.php?41-Installi...
3.This step registers the downloaded version of Java as an alternative, and switches it to be used as the default:
update-alternatives --install /usr/bin/java java /opt/jdk1.7.0_17/bin/java 1
update -alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_17/bin/javac 1
update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /opt/ jdk1.7.0_17/jre/lib/amd64/libnpjp2.so 1
update-alternatives --set java /opt/jdk1.7.0_17/bin/java
update-alternatives --set javac /opt/jdk1.7.0_17/bin/ javac
update-alternatives --set mozilla-javaplugin.so /opt/jdk1.7.0_17/jre/lib/amd64/libnpjp2.so
Hosts
=====
address mac name os_name os_flavor os_sp purpose info comments
------- --- ---- ------- --------- ----- ------- ---- --------
Answer the question
In order to leave comments, you need to log in
/usr/bin/java: 1: /usr/bin/java: Syntax error: end of file unexpected (expecting ")")
If you use Google translator (so, purely for quick wits), you can understand the reason.
Syntax error. Somewhere a parenthesis is missing, or it is superfluous somewhere.
If you have experience with java, then open jar archives using intellij idea and look for where it is underlined in red, fix the bug, and build the program again.
If you do not understand any of the above, then simply roll back to the version that will work in your kali.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question