2

Hi I am writing a small SDK app for businessobjects (SAPBI 4.1). I am using Java and I want to use the BOE scheduling functionality. I have a question - I am implementing the IProgramBase class, which has a run() method. I am told that I do not need a main method, and that it is good to create an executable jar from the program. So my question is a general one - how can I create an executable jar without a main method?

Thanks!

Mike

uh_big_mike_boi
  • 3,350
  • 4
  • 33
  • 64

2 Answers2

2

In the context of the Business Objects Enterprise Framework, you only need your class to implement IProgramBase for the scheduler to run it.

However, with a normal JAR file, the only way is having a class (for example com.example.MainClass) with a main method so you can create a Manifest File (MANIFEST.MF) with these lines:

Manifest-Version: 1.0
Main-Class: com.example.MainClass
Esteban Herrera
  • 2,263
  • 2
  • 23
  • 32
1

It does not need to be runnable. Just compile it as a normal jar without a main() method.

Joe
  • 6,767
  • 1
  • 16
  • 29