• Post Reply Bookmark Topic Watch Topic
  • New Topic

makefile  RSS feed

 
simon johnson
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Knute Snortum
Sheriff
Posts: 4288
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66307
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!