• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

2 applications 2 different JVM, only 1 JVM Used

 
narendra bhattacharya
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have one application(for which i have installed separate JRE) that communicates with the help of the API given by the other application(which comes with its own JRE) to perform some task .But due to this dependance , we are forced to compile all our classes in other applications JVM (as opposite we wanted that only classes that are making use of their API should be compiled their and rest in our JVM) .

So is their any way so that we can get only those classes compiled which is required by other application's JVM , and rest in our JVM . ??
 
Prabaharan Gopalan
Ranch Hand
Posts: 66
Java Linux VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we are forced to compile all our classes in other applications JVM


But that's where defining Remote Interfaces come in to the picture right? you'd define your APIs as Remote Interfaces, package them as JAR file, use that JAR in both the applications, one which implements it and the other which uses it. If you haven't taken a look at it so far, here is it - http://docs.oracle.com/javase/tutorial/rmi/compiling.html
 
Prabaharan Gopalan
Ranch Hand
Posts: 66
Java Linux VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would have a better chance of getting help if the subject of this post was a little more explanatory.
 
narendra bhattacharya
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Prabaharan,

I think i got the answer from your reply post .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic