Applet JBuilder(Borland) JDeveloper(Oracle) IE 6.0  
Author Message
dima





PostPosted: 2004-5-19 21:32:00 Top

java-programmer, Applet JBuilder(Borland) JDeveloper(Oracle) IE 6.0 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.
 
Yu SONG





PostPosted: 2004-5-19 21:41:00 Top

java-programmer >> Applet JBuilder(Borland) JDeveloper(Oracle) IE 6.0 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





PostPosted: 2004-5-19 21:43:00 Top

java-programmer >> Applet JBuilder(Borland) JDeveloper(Oracle) IE 6.0 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/

 
 
Andrew Thompson





PostPosted: 2004-5-20 6:57:00 Top

java-programmer >> Applet JBuilder(Borland) JDeveloper(Oracle) IE 6.0 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
 
 
dima





PostPosted: 2004-5-20 15:19:00 Top

java-programmer >> Applet JBuilder(Borland) JDeveloper(Oracle) IE 6.0 Yu SONG <email***@***.com> wrote in message news:<c8fo8l$oo0$email***@***.com>...
> 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)!
 
 
Andrew Thompson





PostPosted: 2004-5-20 16:14:00 Top

java-programmer >> Applet JBuilder(Borland) JDeveloper(Oracle) IE 6.0 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