Score:1

How to convert .jar file to .exe file?

es flag

I'm creating a Java program, and I need to test it on Windows. I know how to convert a .jar file to a .exe file on Windows, but the only Windows computer I know of is not mine. My friend will let me test the .exe file on it, but I can't download anything. Meaning no Launchj4. All that I need is an Ubuntu alternative.

ChanganAuto avatar
us flag
There's no "Ubuntu alternative". Use a VM if you must.
Dequog avatar
es flag
Ok thank you.--
Score:2
cn flag

Java is known for its write once, run anywhere paradigm.
You probably are able to run the .jar file on windows too (I'm handwaving some minor differences in how a java program executes on each OS here).

It is likely that you can double click the .jar on a windows machine if you have java installed. From the command line, you can use:

> java -jar c:\path\to\your-java-program.jar

However, since this is not the place for windows questions, I'll refer you to this article instead for more details: https://windowsreport.com/jar-file-windows/

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.