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.

5
  • 2
    And why exactly can you not compile one class at a time, multiple times? Commented Feb 17, 2016 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. stackoverflow.com/questions/17062219/… Commented Feb 17, 2016 at 20:07
  • @takendarkk surely that wouldn't work if they were dependant on each other. Especially if they were circularly dependant Commented Feb 17, 2016 at 20:21
  • IF they were... well we wouldn't know hence why I asked. Commented Feb 17, 2016 at 20:23
  • @takendarkk as I wrote they are dependent on each other and that is the problem Commented Feb 18, 2016 at 8:47

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.