Just run “java -version”. if JAVA is installed in your system , it will display the version
Tag Archives: Java
What is .vm file?
VM file is a Velocity Macro File. Apache Velocity is a Java-based template engine that provides a simple yet powerful template language to reference objects defined in Java code.
Velocity macro files (VM) are Velocity`s templates, they are html files with variables that are substituted by Velocity.
Function to get last Java exception – PHP
<?php
java_last_exception_get();
?>
Function to clear last Java exception – PHP
<?php
java_last_exception_clear();
?>
Command to install JDK
apt-get install sun-java6-jdk sun-java6-jre
Run Java class file from PHP script on a website
You can run the java filefrom PHP as follows
<?php exec(“java -jar filename.jar arguments”,$output); ?>