0

I have a .jar file and I would like it to run like a unix/Mac OS X executable so that it can be placed in /usr/local/bin and I can run it from terminal as I would run any other command written in c. I do not want a .app I just want a simple command line tool that I can run in terminal without using the java command, since it isn't practical for releasing my tool.

atomikpanda
  • 1,845
  • 5
  • 33
  • 47

1 Answers1

0

You will want to create a wrapper class in c++ that will call the java program.

run jar file from c++
Using JNI to execute a java jar from a C++ program, using g++ or eclipse

Community
  • 1
  • 1