title: CMake to compile java code
body: <p>Is it possible to use CMake to compile and run java code?</p>
  
  <p>From command line the commands that I write on terminal is:</p>
  
  <p>javac -classpath theClasspath mainClass.java</p>
  
  <p>java -classpath theClasspath mainClass</p>
  
  <p>If so, could you please give me an idea of how this can be achieved?</p>
  
  <p>PS: I do not want to generate a jar file; just to compile the java class and if possible to run it.</p>
  
  <p>Thanks.</p>
  
  <p><strong>Update</strong>: I have changed the command. I do not know why the additional text was not displayed. It might be because I used "&lt;" and ">".</p>