• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JApplet problem

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<Applet archive="swingall.jar" width="" height="" >
</applet>
this will work now
 
sridhar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<html>
<body>
< !--<Applet archive="swingall.jar" width="" height="" >
</applet>
this will work now
<body>
<html>
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]


 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic