Programming thread

Can someone help explain to me like I retarded how do I put a Java project on Steam? I tried to look it up, apparently I need to use launch4j to bundle it with Java? I have tried I can't make heads or tails of it . This is way more of a headache than I was expecting and I feel like a moron (:_(

I am using Netbeans. It is a Java project with Maven. I click Clean and Build main project. It makes the .jar file at projectfilder\target\theproject.jar I want to put that .jar file as an .exe for Windows on Steam. Apparently I need to use some third party tool Launch4J to do this. I can not understand how to use Launch4J to do what I want.
 
Ostatnio edytowane:
Can someone help explain to me like I retarded how do I put a Java project on Steam? I tried to look it up, apparently I need to use launch4j to bundle it with Java? I have tried I can't make heads or tails of it and I can't even run the .jar file anymore I get A Java Exception has occured. This is way more of a headache than I was expecting and I feel like a moron (:_(

I am using Netbeans. It is a Java project with Maven. I click Clean and Build main project. It makes the .jar file at projectfilder\target\theproject.jar I want to put that .jar file as an .exe for Windows on Steam.
In order to publish a Java program, you need to bundle a Java Runtime Environment, JRE. The JRE runs your Java program. If you'd like an example to copy, Project Zomboid is an example; it has a jre/ folder. I do not know the Netbeans path to achieving this.

If you cannot run the .JAR yourself, you're in a bad way. Step 1 is learning how to run the JAR. Step 2 is bundling what you need so other people can run the JAR.

I used to do this kind of JRE bundling/rebundling with some frequency at my old workplace. Steam, I presume, is just about pointing Steam at the right executables.

DeepSeek thinks jpackage (officialish) or Packr (community) are packages to help achieve this, but I know neither.
 
OK I uninstalled JRE8 and and reinstalled JDK25 and can now run the .Jar
Now I need to understand how to bundle the .JAR with JRE(?)
Do you mean making an executible .jar with a main file?

You can't bundle JRE with the Jar to make an .exe file or something like that, and your jar should already have its JDK version in its manifest.
 
Wstecz
Top Na dole