Hello,
I am upgrading my server and implementing more security layers. I have an
application in PHP calling JAVA code and I am unable to properly install
JavaBridge. When I type "java -jar JavaBridgeTemplate721.war", I get the
error "no main manifest attribute, in JavaBridgeTemplate721.war".
My "MANIFEST.MF" file only contains:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.10.1
Created-By: 1.8.0_151-b12 (Oracle Corporation)
Here is my setup:
- Ubuntu 18.04
- Java: openjdk-8-jdk (8u171-b11-0ubuntu0.18.04.1)
- Apache Tomcat: Apache Tomcat/8.5.31
My php application is located outside the Tomcat server, therefore I copied
jars from the JavaBridge to Tomcat lib folder ($CATALINA_HOME/lib)
$JAVA_HOME & $CATALINA_HOME are defined in the /etc/environment and are
part of $PATH variable:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/
sbin:/bin:/usr/games:/usr/local/games:$JAVA_HOME/bin:$
CATALINA_HOME/bin:$CATALINA_HOME/lib"
Any help will be appreciated!
|