Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (580)
games submitted by our members
Games in WIP (500)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Did you know...?  (Read 1689 times)
0 Members and 1 Guest are viewing this topic.
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Posted 2003-11-12 08:07:52 »

"...the JVM doesn't just load the byte codes and run them. Instead, the virtual machine must verify the byte codes with something called a byte code verifier.
...
In addition, the verifier ensures the first four bytes of the file are 0xCAFEBABE."

Smiley

malloc will be first against the wall when the revolution comes...
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #1 - Posted 2003-11-12 08:34:34 »

Truth or a joke?

Shocked

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline Matzon

JGO Knight


Medals: 19
Projects: 2


I'm gonna wring your pants!


« Reply #2 - Posted 2003-11-12 08:49:49 »

Truth, open .class file with hexeditor

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Markus_Persson

JGO Wizard


Medals: 12
Projects: 19


Mojang Specifications


« Reply #3 - Posted 2003-11-12 08:59:37 »

Hah, I DID know that. =D

And if you've read the jvms, so should you. Wink

Play Minecraft!
Offline sugarshark

Junior Member




Sugar to the sharks.


« Reply #4 - Posted 2003-11-12 09:20:05 »

Where's the news?  Tongue

I used to think that the brain was the most wonderful organ in my body.  
Then I realized who was telling me this.
-- Emo Phillips
Offline Jeff

JGO Coder




Got any cats?


Yep
« Reply #5 - Posted 2003-11-12 21:13:17 »

Pretty old news to some of us, sorry.

CAFEBABE is the "magic number" the Vm uses as a first quick check that what you are loading is a class file.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #6 - Posted 2003-11-13 05:57:00 »

Ok ok - I admit I am a newbie.
Embarrassed

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline Preston

Senior Member


Medals: 4



« Reply #7 - Posted 2003-11-13 06:25:13 »

Quote
"(..)In addition, the verifier ensures the first four bytes of the file are 0xCAFEBABE."

Nice. :-)
Remembers me to the good old days on the homecomputers where we "signed" our small assembler routines with similar stuff: 0xDEADBEEF comes to mind. ;-)
Offline cfmdobbie

Senior Member




Who, me?


« Reply #8 - Posted 2003-11-13 08:59:07 »

Good old days?  People still use things like 0xDEADBEEF.  Those who don't know about Java, anyway...

Hellomynameis Charlie Dobbie.
Offline Orangy Tang

JGO Kernel


Medals: 51
Projects: 11


Monkey for a head


« Reply #9 - Posted 2003-11-13 09:11:28 »

Well its more appealing than all those obscure debugging codes like 0xCCCCCCCC or 0xCDCDCDCD you get with VS C++ Wink

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (50 views)
2014-04-15 18:08:23

BurntPizza (46 views)
2014-04-15 03:46:01

UprightPath (62 views)
2014-04-14 17:39:50

UprightPath (44 views)
2014-04-14 17:35:47

Porlus (61 views)
2014-04-14 15:48:38

tom_mai78101 (84 views)
2014-04-10 04:04:31

BurntPizza (142 views)
2014-04-08 23:06:04

tom_mai78101 (242 views)
2014-04-05 13:34:39

trollwarrior1 (201 views)
2014-04-04 12:06:45

CJLetsGame (208 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!