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