• Post Reply Bookmark Topic Watch Topic
  • New Topic

why these two different folders of jre  RSS feed

 
abhay jain
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
today i was navigating in folders of jdk1.5.0, i found that folder named jdk1.5.0 includes a folder jre (of 76 mb size) in it , and also there is a folder named jre1.5.0 of 68 mb (on the same directory level)

why these two different folders of jre ??
why sizes are different ??
 
vinayak jog
Ranch Hand
Posts: 83
MySQL Database Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One will act as a client and another will act as server if you run some client server program since it is not possible to run client server program or use ejb in one single jre.
Reply With Quote
 
Mayu Mayooresan
Ranch Hand
Posts: 37
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

You need JDK, if at all you want to write your own programs, and to compile the m. For running java programs, JRE is sufficient.

JRE is targeted for execution of Java files

i.e. JRE = JVM + Java Packages Classes(like util, math, lang, awt,swing etc)+runtime libraries.


Developers will have JDK folder in their machine for development needs but those who don't develop but run Java applications (even web) will have JRE folder installed.

Read More here http://www.javabeat.net/qna/67-wat-is-the-difference-between-jrejvm-and-jdk/
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vinayak jog wrote: One will act as a client and another will act as server if you run some client server program since it is not possible to run client server program or use ejb in one single jre.
Reply With Quote
You can perfectly run multiple JVM instances of a single JRE. And it is possible to run a server and client on the same JVM. Also you can use multiple EJB within a single JVM.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!