0

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.

Lightness Races in Orbit
  • 378,754
  • 76
  • 643
  • 1,055
Basmah
  • 829
  • 3
  • 13
  • 25

1 Answers1

0

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

Peter Lawrey
  • 525,659
  • 79
  • 751
  • 1,130