You can't directly. They are totally different classloaders and you won't be able to access classes from one in the other.

You have two choices:

Create a common library (jar file) that will...