• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

why these two different folders of jre

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ??
 
Ranch Hand
Posts: 83
Netbeans IDE MySQL Database Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 37
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic