Solved

awt classes in browser

Posted on 1999-01-28
4
314 Views
Last Modified: 2013-12-29
I am using awt classses from applet (jdk1.1). Browser like Netscape dose not support jdk1.1 awt like setSize, setBounds methods of Component class. For That i have to use java plug-in for awt which supports awt jdk1.1 .
I have put all gui classes and applet in web server. It is not good idea to install supporting awt java plug-in in every machine in internet.
If i put awt.jar file in html as a archive tag. Same error is coming like setSize() is not found in Component beacuase browser sees its own classes first.
So what is the best solution to run awt classes in browser ?
0
Comment
Question by:vanit
4 Comments
 
LVL 8

Expert Comment

by:diakov
ID: 1234860
If you install Netscape 4.5 it is a jdk1.1 compliant browser, as well as IE 4.x is.
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 1234861
your users just need to install newer browser version
Netscape 4.06 / 4.07 is Ok too.
0
 

Author Comment

by:vanit
ID: 1234862
Edited text of question
0
 
LVL 1

Accepted Solution

by:
velev earned 50 total points
ID: 1234863
if jdk1.1 is your target:
Netscape 4.05 and above  and IE4 works with setSize() and setBounds()

if you are using jdk1.2 then the plug-in is your choice

most browsers are loading classes as follows
1. try to load from their directories
for example Netscape search in C:\...\Netscape\Communicator\Program\Java\Classes
2. try to load from jar files
3. try to load from server from where is the applet
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
web application structure 18 102
Running JavaFX on JDeveloper 12C 1 55
ejb example issues 3 28
junit as external jar or library 7 24
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question