I have been given a .jar with the below structure to use in php
public class encryption
{
public static cryptio encrypt(String user, String password)
{
System.out.println(output);
}
public static cryptio decrypt(String data)
{
System.out.println(output);
}
}
I am then able to use the following code in php to access the jar
<?php echo exec("java -jar encryption.jar 2>&1", $output); ?>
However this currently outputs 'no main manifest attribute, in encryption.jar' how am I able to specify to use the encrypt and decrypt functions from php?