How to solve could not create the virtual machine error of Java Virtual Machine Launcher?

Error: sony@sony-VPCEH25EN:~$ java –version Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar Unrecognized option: –version Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Solution: Remove extra hyphen ‘-‘ sony@sony-VPCEH25EN:~$ java -version Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar java version “1.8.0_101” Java(TM) SE Runtime Environment (build 1.8.0_101-b13) Java HotSpot(TM) 64-Bit Server VM (build … Read more

CATALINA_OPTS vs JAVA_OPTS – What is the difference?

There are two environment variables – CATALINA_OPTS and JAVA_OPTS – which are both used in the catalina.sh startup and shutdown script for Tomcat. CATALINA_OPTS: Comment inside catalina.sh: # CATALINA_OPTS (Optional) Java runtime options used when the “start”, # “run” or “debug” command is executed. # Include here and not in JAVA_OPTS all options, that should … Read more

How to change the ROOT application?

There are three methods: First shutdown your Tomcat from the its bin directory (sh shutdown.sh). Then delete all the content of your Tomcat webapps folder (rm -fr *). Then rename your WAR file to ROOT.war, and finally start your Tomcat from the bin directory (sh startup.sh). Leave your war file in $CATALINA_BASE/webapps under its original … Read more

How to change the port of Tomcat from 8080 to 80?

1) Go to conf folder in tomcat installation directory e.g. C:\Tomcat 6.0\conf\ 2) Edit following tag in server.xml file <Connector connectionTimeout=”20000″ port=”8080″ protocol=”HTTP/1.1″ redirectPort=”8443″/> 3) Change the port=8080 value to port=80 4) Save file. 5) Stop your Tomcat and restart it.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)