Applet JBuilder(Borland) JDeveloper(Oracle) IE 6.0

Discussion in 'Java' started by Falcon, May 19, 2004.

  1. Falcon

    Falcon Guest

    Hi All!

    JBuilder v7 vm 1.3.1-b24
    JSeveloper v 9.0.5 vm 1.4.2_03-b02

    Applet(for JBulider(Borland) a2, for JDeveloper(Oracle) a1):

    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;

    public class a2 extends Applet {
    private boolean isStandalone = false;
    //Get a parameter value
    public String getParameter(String key, String def) {
    return isStandalone ? System.getProperty(key, def) :
    (getParameter(key) != null ? getParameter(key) : def);
    }

    //Construct the applet
    public a2() {
    }
    //Initialize the applet
    public void init() {
    try {
    jbInit();
    }
    catch(Exception e) {
    e.printStackTrace();
    }
    }
    //Component initialization
    private void jbInit() throws Exception {
    }
    //Get Applet information
    public String getAppletInfo() {
    return "Applet Information";
    }
    //Get parameter info
    public String[][] getParameterInfo() {
    return null;
    }
    }

    Compile in JBuilder & Jdeveloper
    Web server - Apache from Oracle Application server on OS Redhat RHES.

    index.html:
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251"/>
    <TITLE>Test</TITLE>
    </HEAD>
    <BODY>
    <H2>Test</H2>
    <UL>
    <LI><a href="joracle.html">Applet JDeveloper Oracle</a></LI>
    <LI><a href="jborland.html">Apllet JBuilder Borland</a></LI>
    </UL>
    </BODY>
    </HTML>

    joracle.html:
    <HTML>
    <HEAD>
    <TITLE>
    Test
    </TITLE>
    </HEAD>
    <BODY>
    <H2>
    This is sample HTML text.
    </H2>
    <BR>
    <APPLET CODEBASE="." CODE="a1" HEIGHT="600" WIDTH="600" ALIGN="bottom">^M
    <PARAM NAME="" VALUE="">This browser does not appear to support Applets.</APPLET>
    </BODY>
    </HTML>


    jborland.html:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
    <title>
    HTML Test Page
    </title>
    </head>
    <body>
    Applet2 will appear below in a Java enabled browser.<br>
    <applet>
    codebase = "."
    code = "a2"
    name = "TestApplet"
    width = "400"
    height = "300"
    hspace = "0"
    vspace = "0"
    align = "middle"
    >

    </applet>
    </body>
    </html>

    Launch IE6.0 with java console.


    Borland - OK!

    Oracle

    Error loading class: a1
    java.lang.NoClassDefFoundError
    java.lang.ClassNotFoundException: a1
    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

    WHY???????
    Help me please!!!!
    Best regards.
    Falcon, May 19, 2004
    #1
    1. Advertising

  2. Falcon

    Yu SONG Guest

    Falcon wrote:
    > Hi All!
    >
    > JBuilder v7 vm 1.3.1-b24
    > JSeveloper v 9.0.5 vm 1.4.2_03-b02
    >
    > Applet(for JBulider(Borland) a2, for JDeveloper(Oracle) a1):
    >
    > import java.awt.*;
    > import java.awt.event.*;
    > import java.applet.*;
    >
    > public class a2 extends Applet {
    > private boolean isStandalone = false;
    > //Get a parameter value
    > public String getParameter(String key, String def) {
    > return isStandalone ? System.getProperty(key, def) :
    > (getParameter(key) != null ? getParameter(key) : def);
    > }
    >
    > //Construct the applet
    > public a2() {
    > }
    > //Initialize the applet
    > public void init() {
    > try {
    > jbInit();
    > }
    > catch(Exception e) {
    > e.printStackTrace();
    > }
    > }
    > //Component initialization
    > private void jbInit() throws Exception {
    > }
    > //Get Applet information
    > public String getAppletInfo() {
    > return "Applet Information";
    > }
    > //Get parameter info
    > public String[][] getParameterInfo() {
    > return null;
    > }
    > }
    >
    > Compile in JBuilder & Jdeveloper
    > Web server - Apache from Oracle Application server on OS Redhat RHES.
    >
    > index.html:
    > <HTML>
    > <HEAD>
    > <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251"/>
    > <TITLE>Test</TITLE>
    > </HEAD>
    > <BODY>
    > <H2>Test</H2>
    > <UL>
    > <LI><a href="joracle.html">Applet JDeveloper Oracle</a></LI>
    > <LI><a href="jborland.html">Apllet JBuilder Borland</a></LI>
    > </UL>
    > </BODY>
    > </HTML>
    >
    > joracle.html:
    > <HTML>
    > <HEAD>
    > <TITLE>
    > Test
    > </TITLE>
    > </HEAD>
    > <BODY>
    > <H2>
    > This is sample HTML text.
    > </H2>
    > <BR>
    > <APPLET CODEBASE="." CODE="a1" HEIGHT="600" WIDTH="600" ALIGN="bottom">^M
    > <PARAM NAME="" VALUE="">This browser does not appear to support Applets.</APPLET>
    > </BODY>
    > </HTML>
    >
    >
    > jborland.html:
    > <html>
    > <head>
    > <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
    > <title>
    > HTML Test Page
    > </title>
    > </head>
    > <body>
    > Applet2 will appear below in a Java enabled browser.<br>
    > <applet>
    > codebase = "."
    > code = "a2"
    > name = "TestApplet"
    > width = "400"
    > height = "300"
    > hspace = "0"
    > vspace = "0"
    > align = "middle"
    >
    > </applet>
    > </body>
    > </html>
    >
    > Launch IE6.0 with java console.
    >
    >
    > Borland - OK!
    >
    > Oracle
    >
    > Error loading class: a1
    > java.lang.NoClassDefFoundError
    > java.lang.ClassNotFoundException: a1
    > 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
    >
    > WHY???????
    > Help me please!!!!
    > Best regards.


    have you tried

    CODE="a1.class"

    (instead of * CODE="a1" *)

    ?

    --
    Song

    More info.:
    http://www.dcs.warwick.ac.uk/~esubbn/
    Yu SONG, May 19, 2004
    #2
    1. Advertising

  3. Falcon

    Yu SONG Guest

    Yu SONG wrote:
    > Falcon wrote:
    >
    >> Hi All!
    >>
    >> JBuilder v7 vm 1.3.1-b24
    >> JSeveloper v 9.0.5 vm 1.4.2_03-b02
    >> Applet(for JBulider(Borland) a2, for JDeveloper(Oracle) a1):
    >>
    >> import java.awt.*;
    >> import java.awt.event.*;
    >> import java.applet.*;
    >>
    >> public class a2 extends Applet {
    >> private boolean isStandalone = false;
    >> //Get a parameter value
    >> public String getParameter(String key, String def) {
    >> return isStandalone ? System.getProperty(key, def) :
    >> (getParameter(key) != null ? getParameter(key) : def);
    >> }
    >>
    >> //Construct the applet
    >> public a2() {
    >> }
    >> //Initialize the applet
    >> public void init() {
    >> try {
    >> jbInit();
    >> }
    >> catch(Exception e) {
    >> e.printStackTrace();
    >> }
    >> }
    >> //Component initialization
    >> private void jbInit() throws Exception {
    >> }
    >> //Get Applet information
    >> public String getAppletInfo() {
    >> return "Applet Information";
    >> }
    >> //Get parameter info
    >> public String[][] getParameterInfo() {
    >> return null;
    >> }
    >> }
    >>
    >> Compile in JBuilder & Jdeveloper
    >> Web server - Apache from Oracle Application server on OS Redhat RHES.
    >>
    >> index.html:
    >> <HTML>
    >> <HEAD>
    >> <META HTTP-EQUIV="Content-Type" CONTENT="text/html;
    >> charset=windows-1251"/>
    >> <TITLE>Test</TITLE>
    >> </HEAD>
    >> <BODY>
    >> <H2>Test</H2>
    >> <UL>
    >> <LI><a href="joracle.html">Applet JDeveloper Oracle</a></LI>
    >> <LI><a href="jborland.html">Apllet JBuilder Borland</a></LI>
    >> </UL>
    >> </BODY>
    >> </HTML>
    >>
    >> joracle.html:
    >> <HTML>
    >> <HEAD>
    >> <TITLE>
    >> Test
    >> </TITLE>
    >> </HEAD>
    >> <BODY>
    >> <H2>
    >> This is sample HTML text.
    >> </H2>
    >> <BR>
    >> <APPLET CODEBASE="." CODE="a1" HEIGHT="600" WIDTH="600"
    >> ALIGN="bottom">^M
    >> <PARAM NAME="" VALUE="">This browser does not appear to support
    >> Applets.</APPLET>
    >> </BODY>
    >> </HTML>
    >>
    >>
    >> jborland.html:
    >> <html>
    >> <head>
    >> <meta http-equiv="Content-Type" content="text/html;
    >> charset=windows-1251">
    >> <title>
    >> HTML Test Page
    >> </title>
    >> </head>
    >> <body>
    >> Applet2 will appear below in a Java enabled browser.<br>
    >> <applet>
    >> codebase = "."
    >> code = "a2"
    >> name = "TestApplet"
    >> width = "400"
    >> height = "300"
    >> hspace = "0"
    >> vspace = "0"
    >> align = "middle"
    >>
    >> </applet>
    >> </body>
    >> </html>
    >>
    >> Launch IE6.0 with java console.
    >>
    >>
    >> Borland - OK!
    >>
    >> Oracle
    >> Error loading class: a1
    >> java.lang.NoClassDefFoundError
    >> java.lang.ClassNotFoundException: a1
    >> 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
    >>
    >> WHY???????
    >> Help me please!!!!
    >> Best regards.

    >
    >
    > have you tried
    >
    > CODE="a1.class"
    >
    > (instead of * CODE="a1" *)
    >
    > ?
    >


    CODE="a2.class"


    --
    Song

    More info.:
    http://www.dcs.warwick.ac.uk/~esubbn/
    Yu SONG, May 19, 2004
    #3
  4. On 19 May 2004 06:32:09 -0700, Falcon wrote:

    > JBuilder v7 vm 1.3.1-b24
    > JSeveloper v 9.0.5 vm 1.4.2_03-b02

    ....
    > public class a2 extends Applet {


    > Error loading class: a1
    > java.lang.NoClassDefFoundError
    > java.lang.ClassNotFoundException: a1
    > at com/ms/vm/loader/URLClassLoader.loadClass


    Your IE is apparently configured to
    use the MSVM (a very dangerous thing
    to do, check here for more details..)
    <http://www.physci.org/jvmclean.jsp>
    (follow the links at top of page for all
    details and checks)

    And could you do this test for me?
    <http://www.physci.org/ms/msclassfile.jsp>

    (click the 'Post Information' bar at
    the bottom of the applet..)

    --
    Andrew Thompson
    http://www.PhySci.org/ Open-source software suite
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.1point1C.org/ Science & Technology
    Andrew Thompson, May 19, 2004
    #4
  5. Falcon

    Falcon Guest

    Yu SONG <> wrote in message news:<c8fo8l$oo0$>...
    > Yu SONG wrote:
    > > Falcon wrote:
    > >
    > >> Hi All!
    > >>
    > >> JBuilder v7 vm 1.3.1-b24
    > >> JSeveloper v 9.0.5 vm 1.4.2_03-b02
    > >> Applet(for JBulider(Borland) a2, for JDeveloper(Oracle) a1):
    > >>
    > >> import java.awt.*;
    > >> import java.awt.event.*;
    > >> import java.applet.*;
    > >>
    > >> public class a2 extends Applet {
    > >> private boolean isStandalone = false;
    > >> //Get a parameter value
    > >> public String getParameter(String key, String def) {
    > >> return isStandalone ? System.getProperty(key, def) :
    > >> (getParameter(key) != null ? getParameter(key) : def);
    > >> }
    > >>
    > >> //Construct the applet
    > >> public a2() {
    > >> }
    > >> //Initialize the applet
    > >> public void init() {
    > >> try {
    > >> jbInit();
    > >> }
    > >> catch(Exception e) {
    > >> e.printStackTrace();
    > >> }
    > >> }
    > >> //Component initialization
    > >> private void jbInit() throws Exception {
    > >> }
    > >> //Get Applet information
    > >> public String getAppletInfo() {
    > >> return "Applet Information";
    > >> }
    > >> //Get parameter info
    > >> public String[][] getParameterInfo() {
    > >> return null;
    > >> }
    > >> }
    > >>
    > >> Compile in JBuilder & Jdeveloper
    > >> Web server - Apache from Oracle Application server on OS Redhat RHES.
    > >>
    > >> index.html:
    > >> <HTML>
    > >> <HEAD>
    > >> <META HTTP-EQUIV="Content-Type" CONTENT="text/html;
    > >> charset=windows-1251"/>
    > >> <TITLE>Test</TITLE>
    > >> </HEAD>
    > >> <BODY>
    > >> <H2>Test</H2>
    > >> <UL>
    > >> <LI><a href="joracle.html">Applet JDeveloper Oracle</a></LI>
    > >> <LI><a href="jborland.html">Apllet JBuilder Borland</a></LI>
    > >> </UL>
    > >> </BODY>
    > >> </HTML>
    > >>
    > >> joracle.html:
    > >> <HTML>
    > >> <HEAD>
    > >> <TITLE>
    > >> Test
    > >> </TITLE>
    > >> </HEAD>
    > >> <BODY>
    > >> <H2>
    > >> This is sample HTML text.
    > >> </H2>
    > >> <BR>
    > >> <APPLET CODEBASE="." CODE="a1" HEIGHT="600" WIDTH="600"
    > >> ALIGN="bottom">^M
    > >> <PARAM NAME="" VALUE="">This browser does not appear to support
    > >> Applets.</APPLET>
    > >> </BODY>
    > >> </HTML>
    > >>
    > >>
    > >> jborland.html:
    > >> <html>
    > >> <head>
    > >> <meta http-equiv="Content-Type" content="text/html;
    > >> charset=windows-1251">
    > >> <title>
    > >> HTML Test Page
    > >> </title>
    > >> </head>
    > >> <body>
    > >> Applet2 will appear below in a Java enabled browser.<br>
    > >> <applet>
    > >> codebase = "."
    > >> code = "a2"
    > >> name = "TestApplet"
    > >> width = "400"
    > >> height = "300"
    > >> hspace = "0"
    > >> vspace = "0"
    > >> align = "middle"
    > >>
    > >> </applet>
    > >> </body>
    > >> </html>
    > >>
    > >> Launch IE6.0 with java console.
    > >>
    > >>
    > >> Borland - OK!
    > >>
    > >> Oracle
    > >> Error loading class: a1
    > >> java.lang.NoClassDefFoundError
    > >> java.lang.ClassNotFoundException: a1
    > >> 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
    > >>
    > >> WHY???????
    > >> Help me please!!!!
    > >> Best regards.

    > >
    > >
    > > have you tried
    > >
    > > CODE="a1.class"
    > >
    > > (instead of * CODE="a1" *)
    > >
    > > ?
    > >

    >
    > CODE="a2.class"

    I'm tried
    Borland ok!
    Oracle problem(see above)!
    Falcon, May 20, 2004
    #5
  6. On Wed, 19 May 2004 22:57:14 GMT, Andrew Thompson wrote:

    > Your IE is apparently configured to
    > use the MSVM

    ....
    > And could you do this test for me?
    > <http://www.physci.org/ms/msclassfile.jsp>


    Thank you kindly!

    Now make sure you set the Sun VM
    as default and use JVMClean to rip that
    MSVM from under IE. To be safe..

    Unless, of course, you need MSVM for
    testing 1.1 apps. Note that you do
    have the safest MSVM build (3810)
    known to exist.

    If you do *need* to keep it, I would
    recommend only selecting it as default
    when you are not connected to the net.
    Just use it the times you are testing
    your own stuff off local-disk.

    --
    Andrew Thompson
    http://www.PhySci.org/ Open-source software suite
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.1point1C.org/ Science & Technology
    Andrew Thompson, May 20, 2004
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. davout
    Replies:
    1
    Views:
    560
  2. da9000
    Replies:
    0
    Views:
    301
    da9000
    Mar 15, 2007
  3. da9000
    Replies:
    0
    Views:
    310
    da9000
    Mar 15, 2007
  4. da9000

    Borland C++ Builder & JBuilder

    da9000, Mar 15, 2007, in forum: C Programming
    Replies:
    0
    Views:
    306
    da9000
    Mar 15, 2007
  5. Ramon F Herrera
    Replies:
    6
    Views:
    663
    Ramon F Herrera
    Nov 11, 2007
Loading...

Share This Page