I tried to run this command using Java version 8 on windows.
java -cp soot.jar soot.Main -cp ".;C:\Program Files\Java\jre1.8.0_151\lib\rt.jar" Example_4
I keep getting: Exception in thread "main" java.lang.Error: Error: Failed to load java.lang.CharSequence. This happens only when I have lines like System.out.print as part of my source code. Otherwise it works fine.
Source code
package ExampleCodes;
public class Example_4
{
public static void main(String[] args)
{
int a = 10;
a++;
if(a<10)
a--;
else
a++;
int b = a + a;
System.out.println(a);
}
}