• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Where are the *.java & *.class ,when jvm try to find??

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where are the *.java & *.class ,and how jvm find them??
1.where is the location of java foundation class ?
*.java I think is in the j2sdk/src.zip ,but where is the *.class?
2.where is the other source ,such as jsp or ejb ?
when i install j2ee or tomcat ,apache,struts, ant?
how the jvm to find the *.java and *.class?

I need help
 
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is it you are trying to do? If you want to have a look inside the code files of the core java packages then yes you can open up the src.zip file and take a look. You will find the compiled class files are mainly packaged in the rt.jar file which resides in the <java-home>/lib/rt
When you install J2EE then you get another set of java and class file within there own .zip and .jar files. The same is true for Ant, JUnit, Log4J e.t.c.
 
Jianfeng Qian
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot
I find there are some class int the j2sdk/lib ,such as dt.jar tool.jar
but I didn't find such as Object.class and other in the jar ,does it exist ? or the class only produce after compile?
 
Nigel Browne
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Object.class is in the rt.jar file. It is in the java/lang package.
 
Jianfeng Qian
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you .I find it
 
I hired a bunch of ninjas. The fridge is empty, but I can't find them to tell them the mission.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic