Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By doWhile

Thread: How do .class files work?

  1. #1
    Oddblob is offline Member
    Join Date
    Jan 2013
    Posts
    1
    Rep Power
    0

    Question How do .class files work?

    Hello, I'm currently learning Java, pretty basic at the moment, however whenever I'm writing something in Eclipse I can't help but think to myself how do these all get put together and run?
    For example, in the popular game Minecraft, if you go into the source of the game there's loads of .class files.
    So my question is, what runs all of them, how? Is it the .exe program?

    I know quite a lot of people are probably facepalm-ing right now.. but everybody's got to learn somewhere :)

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    7

    Default Re: How do .class files work?

    DarrylBurke likes this.

  3. #3
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: How do .class files work?

    The wiki will obviously give you to most info, so feel to read about it in depth. For those interested in a TL;DR:

    The Java Virtual machine is an application which can run bytecode instructions. Bytecode is generated from .java files, and is an optimized set of instructions which the JVM is tuned to execute using native code calls - the JVM itself is written for the native environment on which it executes, but the bytecode is uniform across platforms.

Similar Threads

  1. How does the ColorModel class work?
    By TacoManStan in forum Java 2D
    Replies: 6
    Last Post: 02-03-2012, 10:10 PM
  2. how many configuration files can struts frame work should have?
    By akiravelmont in forum Web Frameworks
    Replies: 0
    Last Post: 05-26-2011, 07:05 AM
  3. How to work out jar files solely ?
    By johny2011 in forum Advanced Java
    Replies: 24
    Last Post: 05-03-2011, 02:01 PM
  4. How to get Jar files to work with Databases
    By hunterbdb in forum JDBC
    Replies: 14
    Last Post: 01-12-2011, 08:45 PM
  5. Replies: 6
    Last Post: 02-06-2009, 09:05 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •