Hey guys,
I've been trying to convert a java executable (.jar) to a .NET executable (.exe) and the reason I'm here is because I succeeded... Nope, I wish..
My code:
public class Main { public static void main(String[] args) { System.out.println("Hello, world!"); } }
Easy enough right.. So when I export it into a JAR file called HelloWorld.jar and run it in a command prompt (java -jar HelloWorld.jar), it returns "Hello, world!", which is good.
Then I convert the .jar file into a .exe file using jar2exe. The exe file comes out and BOOM, when I run it I get an error saying "The main startup class can not be found".
Also, when I try to use a different program to convert my .jar into a .exe (IKVM), I get the same error, only this time during the conversion which results in nothing.
Any ideas?
PS. I know this is not technically a Java IDE issue, but I couldn't find any better place