Basmah
Basmah

Reputation: 899

Make File to run on Linux/ MAC OS to compile .Java Files to an exe form

I am a beginner in Java. I made my Java program using NetBeans. Now I have my .jar file. But I would like to know how to write commands to compile .Java classes to .Class and then build a jar using those .Class files.

Does any one have an idea how to create a Make file/ Script for running on Mac to run my source code by compiling it itself.

Upvotes: 0

Views: 650

Answers (1)

Peter Lawrey
Peter Lawrey

Reputation: 533500

I would use maven This will download dependencies, build you class files and build a jar for you.

Upvotes: 0

Related Questions