Re: Different compilers = Different byte code?

From: Jaap de Bergen (DEBERGEN.COM_at_REMOVE_THIS_TO_EMAILdomainsbyproxy.com)
Date: 08/30/04


Date: Mon, 30 Aug 2004 21:08:49 +0200

On Mon, 30 Aug 2004 14:45:03 -0400, "Matt Humphrey"
<matth@ivizNOSPAM.com> wrote:

>
>"Jaap de Bergen" <DEBERGEN.COM@REMOVE_THIS_TO_EMAILdomainsbyproxy.com> wrote
>in message news:his6j0h1fjb3tftqgftn64ecnlmcaqe42t@4ax.com...
>> On Mon, 30 Aug 2004 14:23:36 -0400, "Matt Humphrey"
>> <matth@ivizNOSPAM.com> wrote:
>
><snip>
>
>> ==============================================
>> Error loading class: MyApplet
>> java.lang.NoClassDefFoundError
>> java.lang.ClassNotFoundException: MyApplet
>> at com/ms/vm/loader/URLClassLoader.loadClass
>> at com/ms/vm/loader/URLClassLoader.loadClass
>> at com/ms/applet/AppletPanel.securedClassLoad
>> at com/ms/applet/AppletPanel.processSentEvent
>> at com/ms/applet/AppletPanel.processSentEvent
>> at com/ms/applet/AppletPanel.run
>> at java/lang/Thread.run
>> ------------------------------------------------------------------------
>
>The "NoClassDefFoundError" means the JVM in the browser isn't even seeing
>your applet. Are you sure you put it in the right place? Is your html
>configured correctly? See Roedy's site
>http://mindprod.com/jgloss/applet.html to make sure you've correctly
>installed your applet.
>

I think i've installed/configured it correctly. After a bit of
searching through jbuilder (my IDE) i've discovered a option "Target
VM":
------------------------------------------------------------------------
Target VM
Restricts the class files to work only on a specific VM version.

All Java SDKs Generates the class files to work with versions 1.1 and
all VMs in the Java 2 SDK. When you select this as the target VM, your
class files can be loaded by any VM. If you select this target VM, you
need to enter the following VM Parameter on the Run page of the
Runtime Configurations dialog box in order for the Smart Swap debugger
feature (JBuilder Developer and Enterprise) to work properly:
-Xverify:noneFor more information see "Modifying code while
debugging."

Java 2 SDK, v 1.2 And Later Generates the class files to run only on
VMs in the Java 2 SDK, v 1.2 and later, but won't run on 1.1 VMs. This
is the default.

Java 2 SDK, v 1.3 And Later Generates the class files to run only on
VMs in the Java 2 SDK, v 1.3 and later, but won't run on 1.1 or 1.2
VMs.

Java 2 SDK, v 1.4 And Later Generates the class files to run only on
VMs in the Java 2 SDK, v 1.4 and later, but won't run on 1.1, 1.2, or
1.3 VMs.
------------------------------------------------------------------------

"Java 2 SDK, v 1.2" was selected by default, when i choose "All Java
SDKs" everything goes oke and i can run any applet without any
problems in internet explorer.

I find this really strange, but i'm happy :)

Cheers!

Jaap



Relevant Pages