Applet JBuilder(Borland) JDeveloper(Oracle) IE 6.0

F

Falcon

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.
 
Y

Yu SONG

Falcon said:
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" *)

?
 
Y

Yu SONG

Yu said:
Falcon said:
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"
 
A

Andrew Thompson

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..)
 
F

Falcon

Yu SONG said:
Yu said:
Falcon said:
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)!
 
A

Andrew Thompson

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top