Display applets in win98
I have created an applet and complied in jdk 1.1.8 because it cannot be seen in win 98 machines.
I have included this applet in a php page and deployed it on apache server. Works fine in win 98 machine. If i deploy it on apache with tomcat server it cannot be seen from win 98. I use apache 1.3.27 and tomcat 4.1.18. What can be the problem.
i deploy it on apache with tomcat server it cannot be
seen from win 98. I use apache 1.3.27 and tomcat
4.1.18. What can be the problem.It's too hard to tell from here. If you can deploy it to a php-enabled server, but it fails when deployed on tomcat then I would say you did something wrong configuring the tomcat server. But what? I do not know.
Similar Messages
-
How to display applet in the web browser?
Hi Just want to ask help. Im making an application and i want to display applet in JSP. The problem is when i run my application there's no display in the browser. I already try to put the JSP and the Java Class with the same folder but still not working. Kindly help me with this one..
Code:
<jsp:plugin code="appletImage.class" codebase="applet" type="applet">
</jsp:plugin>
With this one i put my class in a packageI think (correct me if im wrong) that that is the old way to do it i.e. it is now deprecated and that the recommended way now is to use the object tag
Old deprecated way example
<APPLET code="Bubbles.class" width="500" height="500">
Java applet that draws animated bubbles.
</APPLET>New recommended way example
<OBJECT codetype="application/java"
classid="java:Bubbles.class"
width="500" height="500">
Java applet that draws animated bubbles.
</OBJECT> -
Displaying applet in separate frame
hi!
i am using following code to display applet in separate frame.
<applet
ARCHIVE="applet.jar"
CODE="applet.class"
WIDTH=600 HEIGHT=600>
<param name="config" value="applet.conf">
<PARAM NAME="sepframe" value="true">
</applet>
so the applet gets displayed in separate frame. but at the same time.
i also see a 'gray area ' on my jsp page. how do i remove that?
thanks
bandyamaybe if you try something like this
<applet ... WIDTH=0 HEIGHT=0>
</applet>
the frame should open according to preferedSize of the applet
so in the applet code just set the prefferedSize to 600x600 -
Please help...my browser can't display applets
I know it might sound inept to be asking something about my mozilla browser in this forum but right now I am studying Java and using my browser to view the applet exercises I make. I am particularly in the methods section where you have to make recursions (I am using JAVA 2 how to program Third Edition by Deitel). I made my own version of the fibonacci program in the book . It has a GUI, action listener and the method where all the calculations take place. Unfortunately, when I test it on my brower, Mozilla Fireforx, it just displays the GUI and whole program does not work. The compiler, in this case javac, cannot sense anything wrong and I take it that my code is correct. However nothing still happens when I test it on my browser. As previously mentioned, it just displays the GUI and that's all. I really do not know what is wrong. Is it with my code or with the browser? Or is with the fact that I am using an outdated version of JAVA 2 how to program with a new version of J2SDK that makes my code incompatible with the new technology? please help. TY
Here's my code:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class AppletCode extends JApplet implements ActionListener {
JLabel inputLabel, outputLabel;
JTextField input, output;
public void init(){
Container c = getContentPane();
c.setLayout(new FlowLayout());
JLabel inputLabel = new JLabel();
inputLabel.setText("Enter an Integer and press Enter");
c.add(inputLabel);
JTextField input = new JTextField(10);
input.addActionListener(this);
c.add(input);
JLabel outputLabel = new JLabel();
outputLabel.setText("Fibonacci Value is");
c.add(outputLabel);
JTextField output = new JTextField(20);
output.setEditable(false);
c.add(output);
} // GUI
public void actionPerformed(ActionEvent e) {
long number, fibonacciValue;
number = Long.parseLong(input.getText());
fibonacciValue = fibonacci(number);
output.setText(Long.toString(fibonacciValue));
} // Action Listener
public long fibonacci(long x) {
if (x==0 || x==1)
return x;
else
return fibonacci(x-1) + fibonacci(x-2);
} // Fibonacci Module
}I don't see anything obviously wrong with your code, but it's been a while since i coded applets, so there might still be something wrong. What exactly does not work? You see the 2 labels and the text fields? Can you enter any text into the text field? Have you looked into the Java Console wether it prints any exceptions? (and please use the [ code][ /code] tags to mark your code (without the spaces obviously))
-
Problem displaying applet in java
hello,
we are doing a project in image processing and we need to display the output multiple images in an applet. we are getting the display when we use Applet Viewer, but when we are using web browser(IE5) to display the same applet we are getting a "class not found exception". we made sure that all the files are in the same directory and the class path and code base are set. but the problem is still showing up. if u had a similar experience and have a solution do suggest. we have a time constraint. so do reply soon.Use the object tag in your html page:
http://java.sun.com/products/plugin/versions.html
(or the HtmlConverter.exe in your jdk bin directory).
Check out the full trace:
To turn the full trace on (windows) you can start the java console, to be found here:
C:\Program Files\Java\j2re1.4...\bin\jpicpl32.exe
In the advanced tab you can fill in something for runtime parameters fill in this:
-Djavaplugin.trace=true -Djavaplugin.trace.option=basic|net|security|ext|liveconnect
if you cannot start the java console check here:
C:\Documents and Settings\userName\Application Data\Sun\Java\Deployment\deployment.properties
I think for linux this is somewhere in youruserdir/java (hidden directory)
add or change the following line:
javaplugin.jre.params=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
for 1.5:
deployment.javapi.jre.1.5.0.args=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
The trace is here:
C:\Documents and Settings\your user\Application Data\Sun\Java\Deployment\log\plugin...log
I think for linux this is somewhere in youruserdir/java (hidden directory) -
How do I get Firefox to run and display applets without asking for my permission for each one?
Each time I load a web page with a new applet I get asked whether I want to run it. I don't want this. I just want the applets to be run. I read in the help section about using the java console but I can't find how to display the java console either.
hello, lower the security level within the java settings in the system control panel: http://www.java.com/en/download/help/jcp_security.xml
-
How to display Applet window in user browser?
Hi,
Can anyone help me in displaying the applet in the user browser.
I am using a java script method(callApplet) in my JSp page which will be invoked when a button is clicked.
So when the button is clicked the i am getting the new window, but the applet window is not displaying i am
getting just a blank image.
I guess we have to change in browser setting for enabling the applet window.
Can anyone help me where we have to enable for applet setting in our browser (ie browser setting) or do we need to install any software for viewing the applet window.
Here is my code to display the applet in browser:
My JSP Page includes below code:-
function callApplet()
window.open("http://infch00878:8080/USMS-Local/jsp/home1.html");
And home1.html file is :-
<html>
<applet code="aDraw.class" archive="aDraw.jar" width="520" height="330" name="aDraw">
<param name="url" value="http://infch00878:8080/adraw/jsp/save.jsp">
<param name="save" value="Save">
<param name="bgcolor" value="#F0F0F0">
<param name="image" value="test2.jpg">
<param name="sizeW" value="430">
<param name="sizeH" value="450">
<param name="bouton" value="D:\test\bouton.gif">
</applet>
</html>
Thanks in advance for your help.I'll ask the same question again: does the applet work in AppletViewer (if you do not know what appletviewer is, you should review Sun's documentation on applets - http://java.sun.com/docs/books/tutorial/deployment/applet/ )? It is easy to diagnose problems when you have certain steps to at which tobreak the problem apart...here, if the applet does not work in Appletviewer, than the problem is with the applet or your link to the applet in the html, and not anything downstream of that.
-
Display applet within html page
hi there,
i created an applet using the <embed> tag instead of the old <applet> tag. when i call the html page the applet is displayed in a separate popup. i want the applet to run on the html page - no popup.
how do i achieve this?
thanks for your replies!
koenI think your tag isn't quite correct, try this one :
<HTML>
<body>
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="600" height="300" align="middle">
<PARAM NAME="code" VALUE="KoenMain">
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<COMMENT>
<EMBED width="600" height="300" type="application/x-java-applet;version=1.3" code="KoenMain">
<NOEMBED>
</COMMENT>
This page requires a Sun Java Plugin 1.3
</NOEMBED>
</EMBED>
</OBJECT>
</body>
</HTML>
I tried this code (replacing KoenMain by a class of mine) and it works fine, with IE and Netscape, don't forget to specifie size (width, height) in your "EMBED" tag.
If it doesn't work for you, I think the problem comes directly from your applet code. -
Problem in displaying applet by using dynamic graphics
Hi,
I followed one document for using dynamic graphics editor, the url is
/people/abesh.bhattacharjee/blog/2007/02/27/get-started-with-dynamic-graphics-in-xmii-115 by Abesh Bhattacharjee.
The steps are as follows:
1). Create the tag query
2). Preparing the 3DDialGauge Object
3). Creating the BLS Transaction
4). Creating an Xacute Query for the BLS Transaction
5). Creating the HTML Page with help of applet.
In this HTML page we get that image and also 2 buttons.
Finally we have to get the object designed in step 2 above and it has to change dynamically and refresh the image by pressing one buttons and the other button is to stop the refresh.
Now i am getting the image and 2 buttons as output of that HTML page but the problem is the image is getting refreshed continously without getting proper display and i am pressing the buttons it is not stopping the refresh and the warning message i am getting is
document.TransFanSpeed is null or not an object
and the object is not changing according to the dynamic value please can anyone help me in resolving this problem.Hi shyam,
The html file is as follows:
<html>
<head>
<link rel="stylesheet" type="text/css" href="../../../../ServletExec AS/se-xMII/webapps/default/Lighthammer/Stylesheets/lighthammer.css"><br />
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<APPLET NAME="TransFanSpeed" WIDTH="300" HEIGHT="300" CODE="iCommand" CODEBASE="../Classes" ARCHIVE="illum8.zip" MAYSCRIPT><br />
<PARAM NAME="QueryTemplate" VALUE="C:/Lighthammer/Illuminator/Templates/Training/SVGexampleXacutequery"><br />
</APPLET><br />
</head>
<body>
<img src="../../Fan1.jpg" name="refresh"><p></p>
<button onclick="javascript:doit()">Do it !!!</button>
<button onclick="javascript:clearit()">Clear Timeout</button>
<script language="javascript">
var Time;
var imagename;
var tmp;
function doit(){
executeQry();
imagename = "Fan1.jpg";
tmp = new Date();
tmp = "?"+tmp.getTime();
document.images["refresh"].src = imagename+tmp;
Time = setTimeout("doit()", 1000);
function clearit(){
clearTimeout(Time);
function executeQry(){
document.TransFanSpeed.executeCommand();
</script>
</body>
</html>
and the iCommand.java is nothing but internal one there i didn't written any code
Message was edited by:
RAJESH PERLA -
Hi,
The code displays teh image on the appletwindow but not on the browser(IE 7,mozilla and firefox)
HTML CODE.............................<HTML>
<APPLET CODE="ImageTest.class" WIDTH=350 HEIGHT=350>
<PARAM NAME="imageName" VALUE="output2.tif">
</APPLET>
APPLET CODE..................import java.applet.Applet;
import java.awt.*;
public class ImageTest extends Applet
private Image img;
private String imgName;
public void init()
System.out.println("init...");
img = null;
imgName = getParameter("imageName");
System.out.println("imgName = " + imgName );
public void loadImage()
System.out.println("loadImage()...");
try
img = getImage(getDocumentBase(), imgName);
System.out.println("img = " + img );
catch(Exception e) { }
public void paint(Graphics g)
System.out.println("inside the paint method .....");
if (img == null)
loadImage();
g.drawImage(img, 0, 0, this);
Edited by: AMARSHI on Jul 25, 2008 10:21 AM
Edited by: AMARSHI on Jul 25, 2008 10:24 AMI noticed that the HTML code was not completely correct...you must close every tag and have a head and body tag
Try using this:
<html>
<head></head>
<body>
<applet code="ImageTest.class" width="350" height="350">
<param name="imageName" value="output2.tif">
</applet>
</body></html>
Usually it works even without the closing tags, but that might be the problem.
-Mr. Berlin -
How to display applet not supported message?
I would like the HTML page with applet to display some useful information when the browser does not support applet. I use the following format, however it does not show the word, can anybody help me?
<applet
codebase = ""
archive = "applets.jar"
code = "DemoSwitchApplet.class"
name = "Demo Switch"
width = "400"
height = "300"
hspace = "0"
vspace = "0"
align = "top"
>
<NOTSupported>
You need JRE 1.3.1 to run this applet,
<br>Please download the required software and install.
<br>Click<a href = "http://java.sun.com/products/archive/j2se/1.3.1/jre/index.html">here</a>
to download it from Sun website.
</NotSupported>
</applet>?
-
Display Driver for Win98 (parallels)
Yes, I am crazy enough to try and run Win98 through Parallels on my MacBook. Using Windows XP that way is a blast, so I was curious how my old copy of Windows 98 SE would perform. Can anybody help me locate a '98 screen driver for the MacBook display? The standard configuration after setup only offers 16! colors!
Thanks for your help!
MacBook Mac OS X (10.4.8) 1.83 Ghz Core 2 Duo, 1 GB RAMHello
Like Joao said, the graphic driver for this unit is only available for Xp and W2k.
http://www.csd.toshiba.com/cgi-bin/tais/su/su_sc_modItemList.jsp
Well, you can check other Toshiba notebooks which have the same graphic card and try to download this driver.
You can also try to search on the European Toshiba website for the units with the same graphic card.
http://eu.computers.toshiba-europe.com/cgi-bin/ToshibaCSG/download_drivers_bios.jsp
Good luck
Bye -
Browser doesn't display applets (classes)
hi all,
i am sure every beginner faced the same problem
though i am not a beginner, i am facing this strange problem, and i can't figure out where the proble is .
i just started developing simple swing applications. first i want to try the examples given in a tutorial.
most of them are japplets (applets created by swing components)
Strange thing is that none of htem works on my browser WHICH DRIVES ME CRAZY !!
let me make my situation clearer:
i put the Japplet class file and the html file whick invokes the applet under the same directory
as far as i know , since they are in the same directory i don't need t to set the classpath , am i right?
well, if i open the html file directly from that directory, it can find the Japplet and it works
but when i put them in another directory under the root of tomcat 4 and try to access them through :
http://<hostaddress>:8080/applet.html
applet.html opens but can't find my applet class saying that app.class not found
the relevant html code is as follows:
<html>
<body>
<applet code=app.class width=100 height=50>
</applet>
</body>
</html>
what am i supposed to do?where am i wrong?
by the way to make sure i also added .; to my classpath
my OS is win 2000,
i am using jdk1.3.1
do i need something else to make them work
thanks for helping in advance :)
cheers :)Is it a typing error or not.
Your html code is
<applet code=app.class width=100 height=50>Is this really the code you use?
I am missing the " "
<applet code="app.class" width=100 height=50>If you don't use the "", app.class can not be found. -
hi ..... i'm asking about solution for my problem which is how can i let my browser (explorer oR Netscape) to read from file and write to file in my pc..
my applet is working with AppletViewer which i can read and write to file in my pc ,but when i load it in the Browser(netscape) it just read and do't write....
in the explorer it not reading and not writing ..
i changed the security in the browser option ,,,but no thing happend ...
i need solution please for my problem ,,,and if you can tell me about browser which will do it for me ,,(i tried hotjava browser)
thanxYou need to sign your applet...see link below for info and example on how I did it:
http://home.attbi.com/~aokabc/FileIO/FileIOdemo.htm
The first few links in this page will give you the info you need to get started.
V.V. -
Displaying Applet in JSP Using jsp:plugin tag
The following code is not working eventhough i downloaded to JRE plug-in .Please help me to work the
following code in JSP.
<jsp:plugin code="mani.Clock2.class"
codebase="/classes/" width=300 height=300
jreversion="1.3"
nspluginurl="http://java.sun.com/products/plugin/1.1.3/plugin-install.html"
iepluginurl="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
<jsp:fallback>
<font color=#FF0000 size=10>Sorry Error While Loading Applet </font>
</jsp:fallback>
</jsp:plugin>why don't ypu just use the <applet> tag?
Maybe you are looking for
-
After a restart, the iPod no longer works/turn on(folder w/exclamationMark)
I've had this problem with my iPod freezing quite often, i've had it for about a year and this has only started happening around Janurary 2006, and i would restart it. But several days ago after a Routine restart, it failed to start up again. Everyti
-
WD MyBook External Hard Drive No Longer Showing Up
After the Yosemite update, I can no longer see my Western Digital MyBook external hard drive when I plug it into my MacBook. I've been up and back between Apple Support and the WD support forums for about three weeks now and I'm not seeing anything h
-
I have a 10.2 itune and need tp update for newses to be abble to syn with my phone. I have try download many time for new version. after doing it for many hour. My itune still not update. I'm useding the window 7. Still could not find out what is the
-
Segment Code against subledger line item
Hi, We have uploaded cutover data in production. While uploading we entered a profit center against the conversion account; which in turn showing a segment code. This assignment could be found against the recon account (in GL view) due to doc splitti
-
How can I establish additional reminder lists in ios7 on my mini?
I Am unable to add lists to Reminders on my ipad mini using ios7.