1

Problem which I am trying to solve:

We have h2o generated file which consists of multiple java classes - one core class which implements interface which is on the classpath and some other classes which holds values used by the core class. Goal is to have ability to load this file at runtime (save in the database) and execute it when needed, without any application restarts.

Some solutions which can be found on the SO are basically used for one class compilation. Which is not suitable at this time.

sandris
  • 1,478
  • 2
  • 18
  • 34
  • 2
    And why exactly can you not compile one class at a time, multiple times? – takendarkk Feb 17 '16 at 20:05
  • Use `ProcessBuilder` to execute command through it. If all java files exists in same directory you can compile all files at once using `javac *.java`. http://stackoverflow.com/questions/17062219/pass-multiple-parameters-to-processbuilder-with-a-space – Vighanesh Gursale Feb 17 '16 at 20:07
  • @takendarkk surely that wouldn't work if they were dependant on each other. Especially if they were circularly dependant – Richard Tingle Feb 17 '16 at 20:21
  • IF they were... well we wouldn't know hence why I asked. – takendarkk Feb 17 '16 at 20:23
  • @takendarkk as I wrote they are dependent on each other and that is the problem – sandris Feb 18 '16 at 08:47

0 Answers0