NMS-7053: Fix NoClassDefFound Exception by setting the classpath and main class correctly.