This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes 2 applications 2 different JVM, only 1 JVM Used Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "2 applications 2 different JVM, only 1 JVM Used " Watch "2 applications 2 different JVM, only 1 JVM Used " New topic
Author

2 applications 2 different JVM, only 1 JVM Used

narendra bhattacharya
Ranch Hand

Joined: Feb 17, 2010
Posts: 66
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 . ??


SCJP1.6,SCWCD1.5
Prabaharan Gopalan
Ranch Hand

Joined: Oct 16, 2009
Posts: 66

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


Googling doesn't make you a genius. But not Googling makes you dumber.
Prabaharan Gopalan
Ranch Hand

Joined: Oct 16, 2009
Posts: 66

You would have a better chance of getting help if the subject of this post was a little more explanatory.
narendra bhattacharya
Ranch Hand

Joined: Feb 17, 2010
Posts: 66
Thanks Prabaharan,

I think i got the answer from your reply post .
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: 2 applications 2 different JVM, only 1 JVM Used
 
Similar Threads
Detect JRE Version
jvm
from .java to .exe???
customised compilation
Is the JRE and the Java Virtual Machine the same?