HOw to run Applet in browser.

Hi guys. I've got 2 problems.
1. In Window, I've got Java installed (and using NetBean IDE as Java editor), so of course I've got j2sdk_nb-1.4.2 installed as well. But I couldn't run any applet in IE, for example, in games.yahoo.com, I couldn't join any game because applet always failed to load. But yesterday, I've got a pop up asking to install jre1.4.2 and after install this JRE, everything works fine. My point here is, when I have SDK1.4.2 which contains JRE, why should I have to install new JRE to run applets ?
2. Could anyone tell me how to run applet in Mozilla, Linux. I'm using Linux RedHat 9 as well. And in Redhat, I've got J2sdk_nb-1.4.2 installed with NetBeans IDE. It said that I need appropriate Plugs-in, but in my Java directory, I also found Plugsin directory. So how to configure Mozilla to run applet.
Thanks for reading.

Just to let you guys know that I sorted it out already. Well, the problem lies in I'm confused between two directory /usr/lib/Mozilla and /usr/lib/Mozilla and two Java plugs-in available in nsc60 and nsc60-gcc (don't remember exactly)
For my Linux (Red Hat 9), I've got to create symbol link from nsc60 directory to /usr/lib/Mozilla, not any other way.
Thanks

Similar Messages

  • How to Run Swing in Browser

    Hi frnds
    I gotta a Problem in swing.I want to run my swing in Browser.I have tried it with JApplet.But i can execute it only in Console.using appletviewer <filename>.html
    how to run it in browser.
    Please Help Me..

    Quite easy, well for you. You have to have the newest java plug in working in your browser, but as a flaw, if a user wants to access it they need to download it too, but there is a way in the new JDK i believe to have the JRE on Suns server to run the applet, so the user w/o the Swing librarys can use the applet w/o problems

  • How to run applet in a browser

    I know already how to jar files but my only problem is how to attached my applet in an html.. how to run this in a browser.. please help..

    http://java.sun.com/docs/books/tutorial/deployment/applet/deployindex.html

  • How to switch between jre 1.5.0 and 1.4.2 when running applet in browser?

    Hi,
    I have JRE 1.5.0_05 and 1.4.2_04 installed and currently applet in browser is always run under jre 1.5. How to run the applet under jre 1.4.2 in browser?
    Thanks a lot

    Hi,
    Thanks for the info. I was thinking that the note didn't work for me, apparently I didn't use the conventional APPLET tag.
    Is there other way to switch JRE if I'm not using APPLET tag?

  • Urgent: how to run applet which connected to the servlet?

    hi frends:
    i have written an applet on the server side and it supposed to pass parameters to my servlet and retrieve some info from the servlet.
    i put both applet and servlet under tomcat../WEB-INF/classes. but when i run the applet from the web browser, there is no response from the servlet.
    could anyone help me to solve this problem?
    one more thing is i know that applet is able to connect to servlet, but how about java application? is it able to do so? if yes, is it also using URLconnection as applet? and how to run it?
    i will be very appreciate if anyone can help me... thanx a million.

    You can connect to the servlet from an application.There's a URL class in java.net that has an openConnection method. Then cast the return to an HttpURLConnection and use setMethod to set up as a post request.This may be the default if you call setDoOutput(true) on the URLConnection. Then you'll need to get an OutputStream and write properly formatted form POST data to it. It's also possible to encode your data on the URL, even when using the POST method, and this may be easier when doing it programmatically from an application. To send a get request you can append the name-value pair at the end of the url.

  • Running Applet on Browser

    plz tell me how to run an applet on the browser.
    i have the applet.java file and also created the applet.class file .
    i have the applet.html file and all the 3 files are in the same folder .
    how to display the applet contents on the browser now.
    i tried with
    appletviewer applet.htmlbut this throws
    java.lang.NoClassDefFoundError:

    Just add this to your HTML code:
    <applet code="codename.class"></applet>.
    Put the name of your applet instead of "codename.class".
    You can also add height and width attributes to the applet, and you can also put text inside the applet, so if the person does not have java, he or she will see the message.
    i.e.:
    <applet code="codename.class" height="100" width="100">Not loading? You might need to download java.</applet>

  • How to run applets on the internet?

    I want my applet class run on the Internet but not in the Internet browser but instead maybe in appletviewer or something else...For example in java.sun.com the chatroom is an applet and it doesn't run in browser as I understand.because when I clicked on the exit button on the right most side, it understands that I clicked on it which means that it has got window events(e.g. windowclosing) which belongs to appletviewers.But I think internet browsers doesn't have such a capability to understand these windowevents.So the question is: how can I run my applet over the Internet without running it on the browser? or how I can make the browser understand that the windowclosing event occured on it?
    thanks for your attention??

    what chatroom are you talking about ?

  • How to run applets ?

    I know 3 ways to run an Applet .
    1.to write html file and include aplet in that file and run in a browser .
    2.run appletviewer cmd from cmd window
    3I use text pad as a n editor which has tools to compile and run and while running automatically .
    if there are any other ways do tell me and also which one of these is a better way to run an applet?
    thanks

    which one of these is a better way to run an applet
    Well normally you put a applet on a webpage,so I would say that would be the best way to run the applet since that is where it is going to be used.

  • How to run report in browser

    hi every body,
    please tell me , i have developed a simple report in 10g report builder (oracle developer suite)
    but i m unable to run it
    my 10g forms are running well in browser by using
    http://<Machinename :8889>/forms/frmservlet?config=<config_tag>
    Please advise me how to test or runb the report in browser same as form
    and tell me how to create the report server/find report server and configure the source path for it.
    regards
    Mani

    You may start digging at...
    http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b14048/toc.htm

  • How to run Applet programe in IE

    I' am beginner in java & i want to run applet in IE.But when i tried to do it in IE,"page can not displayed" error is shown.
    why this is so?
    which steps to follow?

    which JVM is used by IE? The 1.1.8JVM from IE is very old so you should use a Java2 JVM or a Swing-Plugin for IE

  • How to run applet program in browser

    I am new in the field. I have begun with some basic programming. I wish to know how do you run a java programme in browser. I have added the html tag in the .java file. can anyone kindly let me know. thanks

    You don't add the tag to the .java file. You need a separate HTML document (such as a .html file, or a .jsp, etc.) that has the <applet> tag in it. (Also there's some stuff you can do with <object> and/or <embed>, apparently.) The applet tag tells the browser to load your applet.
    http://java.sun.com/docs/books/tutorial/deployment/applet/index.html

  • How to run applet inside a browser coz my applet runs outside the browser

    I would like to run the Java Applet viewer in-line inside a Browser Window. Presently, when launched through an html page, the applet opens another main window outside the browser. Can't seem to find any applet parameter tags for it. If there is a way to do that please let me know. Thanks in advance - m.a.

    public class mainGIS extends JApplet {
    public void init() {
    GISEditor tempGISEditor = new GISEditor();
    public mainGIS(){
         GISEditor tempGISEditor = new GISEditor();
         tempGISEditor.setTitle("Franchise Viewer");
         tempGISEditor.setSize(1000,600);
    and..
    <Html>
    <Head>
    <Title></Title>
    </Head>
    <Body>
    <APPLET CODE="mainGIS.class" archive="aaa.jar" WIDTH="800" HEIGHT="600">
    </APPLET>
    </Body>
    </Html>
    it opens outside a web browser!(it pops out) I mean, I want to display my application in-line with the browser

  • How to run applet within packages in tomcat

    I have servlet packages and applet packages in my application. I can successfully called my servlet packages by using:
    http://localhost/servlet/mypackage1.mypackage2.myServlet
    However, I can't call my applet packages by using:
    http://localhost/myapplet.html
    <Applet
    CODE = "myApplet.class"
    BASECODE = "mypackage1.mypackage2/"
    </Applet>
    I am currently using tomcat default web services directory structure as follows:
    webapps\ROOT\WEB-INF\classes\mypackage1\mypackage2\myServlet.class
    webapps\ROOT\mypackage1\mypackage2\myApplet.class
    I received the following error:
    noClassDefFoundError:myApplet (wrongname: mypackage1\mypackage2\myApplet)
    Thanks in advance for any helps.

    This doesn't have anything do with servlets. Your
    problem, as you said, is how to write the HTML to run
    an applet. Whatever is trying to load that HTML
    doesn't know anything about your servlets and doesn't
    care. I think it is complaining because you did or
    didn't put your applet in the (badly-named) package
    mypackage1.mypackage2.The package names I used was just an example. My real package names were really long and 10 levels deep so I didn't want to use it. I finally figured out how to tell the browser to find my applet class package. Using my original example (with the bad package names):
    <Applet
    CODE = "mypackage1.mypackage2/myApplet.class"
    </Applet>
    I removed the codebase and just put the package class file in the root directory.
    I am sure there are more than one way to make this thing work but this is how I got my to work. Thanks.

  • Running Applet without Browser

    Hello All,
    I've developed a test applet which contains a button.
    When i click the button a Frame opens and does whatever i try to do,
    Thus,to Run my applet i type the URL in the Browser and click the button to open the Frame.
    My Problem is the Frame is destroyed as soon as the browser is closed!
    I need the frame to be browser independent.
    Could anybody suggest me how this would be possible?
    Thank you!

    Applets are intended to be run in browsers.
    There is a program included with the JDK that can run an applet - look for the appletviewer program. There are insructions on its use in the Java tools documentation.
    It sounds like you should be running a Java application, not an applet.

  • Run applet in browser when html file is stored in different dir.

    I have a SiteSelector.class stored in: "D:\DATA\Java Programmes\Networking\"
    and a SiteSelector.html stored in :"D:\DATA\Java Programmes\Networking\HTML files\"
    Here is a part of the code of SiteSelector.html:
    <applet code= "SiteSelector.class"
    width=500
    height=500
    codebase="D:\\DATA\\Java Programmes\\Networking\\"
    archive=""
    alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
    >
    <param name = "title0" value = "Java Home Page">
              <param name = "location0" value = "http://java.sun.com/">
    <param name = "title1" value = "Deitel">
              <param name = "location1" value = "http://www.deitel.com/">
              <param name = "title2" value = "JGuru">
    <param name = "location2" value = "http://www.jGuru.com/">
    <param name = "title3" value = "JavaWorld">
    <param name = "location3" value = "http://www.javaworld.com/">
    Your browser is ignoring the <APPLET> tag!
    </applet>
    Since html file and .class file are stored in different directories so in applet tag I specify absolute url in "codebase = ......" to indicate that the browser should look for .class file in "D:\DATA\Java Programmes\Networking\".
    But when I run the Applet in the browser, nothing happens. But when I copy the html file back to "D:\DATA\Java Programmes\Networking\" and change the codebase = "D:\\...." to codebase = "." It works well. Any one can help me to hanld this problem. I want to run the applet in the browser when the html file is stored in different directory. Thank you.
    Message was edited by:
    beckham12a18
    Message was edited by:
    beckham12a18
    Message was edited by:
    beckham12a18
    Message was edited by:
    beckham12a18

    anyone please help me!!!!

Maybe you are looking for

  • System not found, even after reinstall

    My iBook G4 started up with a flashing question mark. When starting up from the system cd and running Disk Utility all seems fine, I can even select it as a startup disk. However, it won't start up from it. I reinstalled the system, and still nothing

  • Shuffle's Button/Slider becoming Flimsy/Loose!

    Ok i have noticed my iPod Shuffle's button/slider on the back, become a little flimsy/loose. I usually always go from OFF to Shuffle. Of course not in one move, but a gentle way. Anyways so now when i place my thumb on it and gentle nudge it, it move

  • No video with HDV using quicktime in windows

    Hi I have a .mov file that i can't play in quicktime on XP its a 1080i50 HDV file Has anyone managed to reslove the codec problem for this yet Thanks in advance

  • Address book, print out of groups

    How can I print a header when I do a print out of a group ?

  • What's up with the website today?

    I was running CS6 beta, which expired.  I uninstalled it, then purchased the month-to-month subscription.  When I click "download" from my order history page, it takes me to https://creative.adobe.com/apps, but the page never loads, stays totally bla