aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JApplet problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JApplet problem" Watch "JApplet problem" New topic
Author

JApplet problem

vikas singh
Greenhorn

Joined: Jan 22, 2001
Posts: 23
To all java lovers,
Hi!
See I am facing a very simple problem but its becoming very tedious.
My problem is that I am unable to run Japplet on my browser whereas
Applet is running .The browser which I am using is :
"Microsoft Windows Internet Explorer 5.01, November 1999 "
Is there some difference in the way we run Applet and Japplet.
Also pls note thet Javawebserver2.0 which is a Japplet is running fine on the
same browser.
[JApplet is running when I am using Appletviewer ]
Please help.
Vikas
[This message has been edited by vikas singh (edited May 05, 2001).]
sridhar
Greenhorn

Joined: May 05, 2001
Posts: 7
i had face the same problem,you have use
<applet width="" height="" code="asdfkl.class" archive="swingall.jar">
</applet>
then it will work fine
sridhar
Greenhorn

Joined: May 05, 2001
Posts: 7
<Applet archive="swingall.jar" width="" height="" >
</applet>
this will work now
sridhar
Greenhorn

Joined: May 05, 2001
Posts: 7
<html>
<body>
< !--<Applet archive="swingall.jar" width="" height="" >
</applet>
this will work now
<body>
<html>
devara
Greenhorn

Joined: May 07, 2001
Posts: 5
hai vikas,
There is some difference in running Applet and JApplet.AWT
Applet can be run in browser because Bowser jvm supports only version 1.1 where as JApplet is included from version 1.2.The only solution can be stop the browser using default jvm and tell the browser to use the jvm provided by u ie through plugins.
Convert the .html file of your swing Applet through HTMLConverter.zip some extra tags will be added i.e. embed,object etc.Then JApplet will be running in browser.
if this does not work save the converted html file as .java.policy under user home dir. and then run
bye======check it out.

Originally posted by vikas singh:
To all java lovers,
Hi!
See I am facing a very simple problem but its becoming very tedious.
My problem is that I am unable to run Japplet on my browser whereas
Applet is running .The browser which I am using is :
"Microsoft Windows Internet Explorer 5.01, November 1999 "
Is there some difference in the way we run Applet and Japplet.
Also pls note thet Javawebserver2.0 which is a Japplet is running fine on the
same browser.
[JApplet is running when I am using Appletviewer ]
Please help.
Vikas
[This message has been edited by vikas singh (edited May 05, 2001).]

Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
You need the Java plug-in to get the swing stuff. None of the current browsers support the 1.3 version of java yet.
http://java.sun.com/products/plugin/
Then use the OBJECT tag instead of the APPLET tag.
*****************************************************************
sridhar and again devara,
Please change your name to be compliant with JavaRanch's naming policy.
Your ID should be 2 separate names with more than 1 letter each. We really want this to be a professional forum and would prefer that you use your REAL name.
Thanks,
Cindy

"JavaRanch, where the deer and the Certified play" - David O'Meara
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JApplet problem