eclipse - Cross Deploying Java -


i have java project consists on 3 classes(program,proxy,events) program has main function on it.

i have properties file in same level src folder.

i want deploy project can run in cronjob on ubuntu server have no idea how so.

1- how deploy it? can see 3 .class in bin folder, thought 1 output file of sort.

2- put settings file when deployed?

using eclipse btw

from directory, in terminal, run java program run application. you'll want settings file in same directory (depending on how loading in code, if loading classpath resource, spot put it).

alternatively, if want have single file, in eclipse, can export code jar file:

  • file > export > java > runnable jar file
  • pick project
  • choose filename jar (usually ending in .jar extension)
  • on last page of wizard, choose program main class

to run it, enter java -jar xyz.jar xyz.jar named it.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo