Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (710)
Games in Android Showcase (212)
games submitted by our members
Games in WIP (785)
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  
  jre 1.4.2 and msvm co-existing?  (Read 2699 times)
0 Members and 1 Guest are viewing this topic.
Offline nonnus29

Senior Devvie

Giving Java a second chance after ludumdare fiasco

« Posted 2003-11-06 22:58:31 »

I've run into an odd problem.  I wanted to run a simple walkaround demo for a console style rpg using the ms vm, so I popped open the java control panel and unselected internet explorer from the browser list.  I use Mozilla exclusively.   After restarting my comp I was unable to run any applets compiled with 1.4.2 from IE with the ms vm.  However when I recompile with 1.3.x it runs in ie with the ms vm no problem.

I'm sure there's an explanation for this (maybe the result of some legal proceedings)... Can anyone shed some light on whats going on here?

Oh, and here is the demo;
Offline William Denniss

JGO Coder

Projects: 2

Fire at will

« Reply #1 - Posted 2003-11-07 03:47:39 »

The reason is that 1.4.2 by default targets version 1.2 and above.  Where as 1.3 and all ones before it defaulted to 1.1.

Point 9:

As of J2SE 1.4.0, the javac bytecode compiler uses "-target 1.2" by default as opposed to the previous "-target 1.1" behavior. See the reference page for the javac compiler for descriptions of these behaviors. One of the changes involved in targeting 1.2 is that the compiler no longer generates and inserts method declarations into class files when the class inherits unimplemented methods from interfaces. These inserted methods, like all other non-private methods, are included in the default serialVersionUID computation. As a result, if you define an abstract serializable class which directly implements an interface but does not implement one or more of its methods, then its default serialVersionUID value will vary depending on whether it is compiled with the J2SE 1.4 version of javac or a previous javac.

For background information on these methods inserted by earlier versions of javac, see bug


By default, version 1.4 of the development kit generates class files for version 1.2 of the Java Virtual Machine, while earlier versions of the development kit generated class files for JVM version 1.1. As of this writing, the preverify utility expects version 1.1 class files, so it fails when you give it version 1.2 files generated by the newer development kit. To solve this problem, simply use javac's -target flag to have it generate version 1.1 class files:


Offline nonnus29

Senior Devvie

Giving Java a second chance after ludumdare fiasco

« Reply #2 - Posted 2003-11-07 20:43:47 »

Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

numerical (124 views)
2017-02-21 07:32:16

numerical (123 views)
2017-02-21 07:31:46

theagentd (230 views)
2017-02-18 13:42:33

theagentd (231 views)
2017-02-18 13:35:16

h.pernpeintner (1394 views)
2017-01-24 22:39:11

h.pernpeintner (1382 views)
2017-01-24 22:38:32

Galdo (1944 views)
2017-01-12 13:44:09

Archive (2013 views)
2017-01-02 05:31:41

0AndrewShepherd0 (2550 views)
2016-12-16 03:58:39

0AndrewShepherd0 (2318 views)
2016-12-15 21:50:57
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21 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‑
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!