uploading by other program

Hi,
I need to realize such a scenario:

Components:
PC.Windows.java program <----> Internet <----> PC.windows.Arduino-IDE

Scenario:

  1. Code is written in the IDE and gets compiled
  2. uploaded to internet by a web site
  3. the java program from the other side receives the code and uploads to Arduino board

My question:
What steps the java program must take in the uploading procedure please, after receiving the image?

May be someone already provided any example code? I couldn't find that by googling, could you please point to something? I appreciate in advance.

You can enable verbose mode when uploading a sketch, in different ways depending on the version of the IDE you are using. Look at the commands that the IDE invokes when compiling, linking, and uploading a sketch. Make your Java app invoke those same commands.

Thank you, it is straightforward!