makefile
posted 9 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Hoping beyond hope that someone can answer this without making me feel stupid.
I would like to create a makefile that incorporates .jar files as well as compiling several class files into one executable.
There's some data that the program references as well, so if someone could explain how that works, I'd really appreciate it, which is to say I need to know if the data gets rolled into the executable, or if the data is just necessarily in teh same folder as the .exe.
I've looked around the web more than once, and I found a couple of pretty convoluted answers, but nothing definitive.
To quote lilu: please halp
I would like to create a makefile that incorporates .jar files as well as compiling several class files into one executable.
There's some data that the program references as well, so if someone could explain how that works, I'd really appreciate it, which is to say I need to know if the data gets rolled into the executable, or if the data is just necessarily in teh same folder as the .exe.
I've looked around the web more than once, and I found a couple of pretty convoluted answers, but nothing definitive.
To quote lilu: please halp
posted 9 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Does it have to be a makefile? I'm assuming you're on a Unix-like system. Other options are Maven, Ant, and most IDEs have some sort of way to create executable jars.
All things are lawful, but not all things are profitable.
posted 9 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Welcome to the Ranch.
In the Java world, people don't usually use the 'make' tool to build projects. There are other build tools which are specifically made for Java; Knute already mentioned Maven and Ant, and there's also Gradle. These are more or less the standard build tools that are used for Java.
If you want to learn a Java build tool, then Maven is a good one to start with. Ant is a bit older and Gradle is maybe a bit more complicated to get started with.
In the Java world, people don't usually use the 'make' tool to build projects. There are other build tools which are specifically made for Java; Knute already mentioned Maven and Ant, and there's also Gradle. These are more or less the standard build tools that are used for Java.
If you want to learn a Java build tool, then Maven is a good one to start with. Ant is a bit older and Gradle is maybe a bit more complicated to get started with.
posted 9 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I'll offer a different opinion: Maven is hopelessly complicated, Gradle is even more hopelessly complicated, Ant is a better choice to start out with. My 2¢
I will agree that make in the Java environment is just not done.
I will agree that make in the Java environment is just not done.
| Creativity is allowing yourself to make mistakes; art is knowing which ones to keep. Keep this tiny ad: Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing |













