Java Interfacing: Uploading programs

Hello all,
I was wondering if there's a way I can upload a pde program to the Arduino directly from a Java program I wrote. Also, how to compile such a program from within Java.
Thanks!
-Falven

I was wondering if there's a way I can upload a pde program to the Arduino directly from a Java program I wrote

Certainly. The Arduino IDE is written in Java and it can upload programs.

Also, how to compile such a program from within Java

Check the Arduino IDE source code. You should be able to mimic what the IDE does or even use code from it.

Certainly. The Arduino IDE is written in Java and it can upload programs.

Yes I knew it was, I didn't know it was open source :slight_smile:
Now that I think of it, it says it is open source in the splash screen /facepalm.

Check the Arduino IDE source code. You should be able to mimic what the IDE does or even use code from it.

If I may ask, where is the source code? I tried looking through the folders but the most I saw was it's library jar files, which aren't the source.
I have written a Java program that communicates with it using the RXTX library, but I am looking for the actual Arduino IDE's source code.
Thanks a bunch! ;D