Results 1 to 3 of 3
Thread: How do .class files work?
- 01-04-2013, 05:49 PM #1
Member
- Join Date
- Jan 2013
- Posts
- 1
- Rep Power
- 0
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 :)
- 01-04-2013, 06:07 PM #2
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,608
- Rep Power
- 5
Re: How do .class files work?
Learn about the JVM
Java virtual machine - Wikipedia, the free encyclopedia
- 01-07-2013, 05:11 PM #3
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
-
How does the ColorModel class work?
By TacoManStan in forum Java 2DReplies: 6Last Post: 02-03-2012, 09:10 PM -
how many configuration files can struts frame work should have?
By akiravelmont in forum Web FrameworksReplies: 0Last Post: 05-26-2011, 06:05 AM -
How to work out jar files solely ?
By johny2011 in forum Advanced JavaReplies: 24Last Post: 05-03-2011, 01:01 PM -
How to get Jar files to work with Databases
By hunterbdb in forum JDBCReplies: 14Last Post: 01-12-2011, 07:45 PM -
Running .java-files won't work/compile does!(Code inside)
By wyldstyle in forum New To JavaReplies: 6Last Post: 02-06-2009, 08:05 PM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks