My applet doesn't work on Linux

I've heard from some people working on Linux platform that my applet http://astro.ia.uz.zgora.pl/~nirgal/psren.htm doesn't work even if they have proper JRE plugin installed. The same people can run other applets on other web sites. The applet works good on Windows platform browsers.
Dear Linux users, do you have any ideas about this issue?

Ok, I hope the code of the main applet class will help to solve the problem. Surely there is some bug (because other applets work). But I'm curious why it runs well on Windows at the same time?
package main;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.border.*;
import java.awt.*;
import java.awt.event.*;
import pulsarek.*;
* Created on 28-Mar-2005
* @author Nirgal
public class PSRSim extends JApplet {
     private static Napisy napisy = new NapisyEng();
     private Maszyna mach = new Maszyna2();
     private PanelSredni averageP = new PanelSredni(napisy);
     private PanelSingli singleP = new PanelSingli(napisy);
     private Profil prof = new Profil(mach,averageP,singleP,null);
     private JTabbedPane tp = new JTabbedPane();
     private JButton spb = new JButton(napisy.getStartpauza());
     private JButton sb = new JButton("STOP");
     private JSlider speed = new JSlider(JSlider.HORIZONTAL,0,5,Maszyna.POS);
     private JProgressBar prog = mach.getBar();
     private EtchedBorder eb = new EtchedBorder();
     private Capanel polarCap = new Capanel(mach,napisy);
     //private static Logger loger = Logger.getLogger("PSRSim");
     public PSRSim() throws Exception{
          //loger.addHandler(new ConsoleHandler());
          //loger.setLevel(Level.OFF);
     public void init(){
          spb.addActionListener(new ActionListener(){
               public void actionPerformed(ActionEvent e){
                    if(mach.getStan()==0){     //stopped
                         mach.setStart();
                    }else     
                    if(mach.getStan()==2)     //paused
                         mach.setStart();
                    else
                         if(mach.getStan()==1)     //running
                              mach.setPause();
          sb.addActionListener(new ActionListener(){
               public void actionPerformed(ActionEvent e){
                    mach.setStop();
          speed.addChangeListener(new ChangeListener(){
               public void stateChanged(ChangeEvent e){
                    int pulsy = (int)Math.pow(2,((JSlider)e.getSource()).getValue());
                    mach.setDelay((int)Math.round(1000/pulsy));
                    //loger.info("Sleep time: "+(1000/((JSlider)e.getSource()).getValue()));
          Container cp = getContentPane();
          cp.setLayout(null);          
          tp.add(napisy.getParamogolne(),new MainParams(mach,napisy));
          tp.add(napisy.getCzapa(),new CapParams(mach,napisy));
          tp.add(napisy.getObliczenia(),new Obliczenia(mach,napisy));
               tp.reshape(5,0,300,250);
               prog.reshape(190,255,120,40);
               speed.reshape(190,315,120,50);
               speed.setSnapToTicks(true);
               speed.setMinorTickSpacing(1);
               speed.setPaintTicks(true);
               spb.reshape(190,375,120,25);
               sb.reshape(190,410,120,25);
               averageP.reshape(315,1,310,150);
               singleP.reshape(315,150,310,295);
               polarCap.reshape(5,255,181,191);
               TitledBorder polarCapB = BorderFactory.createTitledBorder(eb,napisy.getCzapapolarna());
               polarCap.setBorder(polarCapB);
               speed.setBorder(new TitledBorder(napisy.getPredkoscsymulacji()));
               prog.setBorder(new TitledBorder(napisy.getPostep()));
          cp.add(prog);     
          cp.add(speed);     
          cp.add(tp);
          cp.add(spb);
          cp.add(sb);
          cp.add(averageP);
          cp.add(singleP);
          cp.add(polarCap);
          class MojListener implements ComponentListener{
               public void componentMoved(ComponentEvent e){
                    e.getComponent().repaint();
                    singleP.repaint();
                    e.getComponent().hide();
               public void componentShown(ComponentEvent e){
               public void componentHidden(ComponentEvent e){
               public void componentResized(ComponentEvent e){
          addComponentListener(new MojListener());
     public static void main(String[] args) throws Exception{
          JApplet applet = new PSRSim();
          JFrame frame = new JFrame("PSR Simulator");
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.getContentPane().add(applet);
          frame.setSize(640,480);
          applet.init();
          applet.start();
          frame.setVisible(true);
}

Similar Messages

  • Triggers doesn't work on Linux

    Does anybody know why triggers doesn't work on Linux machine? Forms are developed in WIN2k and triggers works there fine. When the forms are transferred to linux triggers doesn't work anymore.
    I use Oracle 9i database and Forms 9i and Linux Redhat Advanced Server.

    Forms are compiled on Linux either by opening them in the builder and hitting compile or by using the compiler from the command line:
    Use the script $ORACLE_HOME/bin/f90genm.sh (or f60genm.sh if this is 6i).
    So if you are developing on Windows and running in Linux, you woudl FTP the FMB, MMB and PLL files to the Linux box and compile using f90genm.

  • Samson Softpre applet doesn't work under Leopard

    I am a podcaster. I bought the Samson C01U microphone last year as I was told at that time it was the best in the entry-level for someone that was considering podcasting. There's an applet that is offered by Samson that allows Input Level Meter, Volume control, High-pass filter and Phase Switch. Every recording sounded great when I combine this applet with GarageBand.
    Recently, I switched to Leopard and the applet doesn't work anywore. Worse, recording audio with that mic gives me radically inferior quality. When I asked Samson about that matter, the support tech guy told me that there was no intention on porting this software on the new operating system, with the following: "The Soft Pre applet is merely a volume control. There is no difference in sound with or without the Soft Pre. All Samson USB mics were designed to be fully operational without the Soft Pre applet."
    I've googled the matter several times with no one else noticing the matter but myself. Christoph Drösser on a previous discussion told me that he had no such problem, but the difference between his setup and mine is that he upgraded to Leopard while mine was a fresh install. Anyone else in a similar situation?
    Message was edited by: Laurent LaSalle

    Hi,
    I had the same problem. I use an external monitor. It seems that the Applet simply disappeared after using my monitor.
    I opened Samson SoftPre, turned on my external monitor! Eureka. Here is my Applet. I moved it in the middle of my desktop to make sure it would not hide again. Once, you get it back make sure to either close the Applet before quitting the external monitor.

  • Satellite M40-129: PCMCIA Card doesn't work with Linux

    I have D-Link DWL-G650 with Atheros Chipset which is good supported under linux (madwifi). But if I boot Linux the card is not found. I tested the card with an Fujitsu Siemens Notebook and it worked out of the box!
    Any idea why it doesn't work with my M40-129 ?

    Hi
    Like you know Toshiba doesnt support the Linux and there are no Toshiba drivers for the Linux OS but I was able to find this useful Toshiba page about the notebook configuration with Linux:
    http://newsletter.toshiba-tro.de/main/
    You should check the OS machine compatibility and the other areas.
    Im sure you will find many useful tips.
    Good luck

  • [SOLVED] pm-suspend doesn't work since Linux 3.7.6-1

    Hi,
    I have 8 GB RAM and no swap partition and use thus pm-suspend, but since Linux 3.7.6-1-ARCH, it doesn't work properly anymore.
    Suspending works fine, but if I want to resume, my external monitor stays black (my laptop monitor is always deactivated by me, when I am working with an external monitor).
    Any ideas where this comes from?
    Regards
    Steffo
    Last edited by Steffo (2013-02-12 15:22:07)

    1. Check your journalctl logs for any errors
    2. Try and figure out if your machine is actually locked up, or if the backlight is just off. You could ssh in, or try tying commands blindly into a terminal (like reboot or something with a known result)
    3. Try Ctrl-Alt-Fx to switch away from your X session VT and then back again. This is what I have to do right now, as I also get a black screen on resume from suspend.
    4. Try 'systemctl suspend' instead of pm-suspend.
    Good luck!
    Scott

  • Certification authentication doesn't work on linux version of Firefox

    I have web page on IIS6 which need windows authentication. I enabled certificate mapping on certain user so when I install the proper certificate on firefox installed on Windows-based PC (I login with local user) and set network.automatic-ntlm-auth.trusted-uris variable, I can access this site without typing username and password. I tried to configure in same way firefox on my linux station, but it doesn't work - the web site access attempt finishes with authentication request windows

    I didn't

  • Applet doesn't work with JRE1.4.1_01

    Hi,
    I have an applet embedded in a remote-server page. It can be loading from the server and running in the local computer with Jre1.3.1. After I uninstalled jre1.3.1 and installed JRE1.4.1_01. My applet doesn't run. Here is the message from Java Consol:
    java.lang.NullPointerException
         at sun.plugin.cache.CachedFileLoader.writeHeaders(Unknown Source)
         at sun.plugin.cache.CachedFileLoader.createCacheFiles(Unknown Source)
         at sun.plugin.cache.CachedFileLoader.access$200(Unknown Source)
         at sun.plugin.cache.CachedFileLoader$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.cache.Cache.privileged(Unknown Source)
         at sun.plugin.cache.CachedFileLoader.download(Unknown Source)
         at sun.plugin.cache.CachedFileLoader.load(Unknown Source)
         at sun.plugin.cache.FileCache.get(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.connectWithCache(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1197)
         at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:247)
         at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:250)
         at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:42)
         at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:143)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:140)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:114)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
         at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:501)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:566)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:495)
         at sun.applet.AppletPanel.run(AppletPanel.java:292)
         at java.lang.Thread.run(Thread.java:536)
    I copy the my html file which has this applet built-in to my local computer. The webpage can be openned and the applet running fine even with jre1.4.1. Why it didn't run with Jre1.4.1 and it did run with jre 1.3.1 when loading remotely? Could someone tell me what the above messages mean? Is this a bug from Jre1.4.1_01?
    Thanks,
    Kunlun

    Hello
    i am facing the same problem. when i run my java applet using localhost.. it does not work and shows the same exceptions
    i download the JRE 1.4.1 by using following link
    http://java.sun.com/products/plugin/1.4.1/demos/plugin/applets/SpreadSheet/example1.html
    eventhen it is not working.
    as you said you installed jre .1.3 and then 1.4 but i didn`t install 1.3 i directly installed 1.4. after installing 1.4 i downloaded the jre as you said. but still i am facing the same problem
    and one thing else. i want to check it more then one system. i have to download it again and again can i download its setup once on my harddisk.
    please send me the link
    waiting for your reply
    thanx in advance
    Waris Mirza

  • Applet doesn't work!

    Hello,
    I create an applet from a book. It works in JBuilder4 at home. But when I try to post it on MSFrontPage at home or on the Internet with IE5.5, it doesn't work. It just shows grey applet display with error message "Class SquareInt not found".
    When I checked the class name, and the path it seemed OK to me. But have no idea why it doesn't work.
    The strange thing, if I replace the applet into simple applets, such as "HelloWorld.class", it always works.
    Please help! Thanks.....
    <HTML>
    <HEAD>
    <TITLE> A Simplest Program </TITLE>
    </HEAD>
    <BODY>
    Here is the output of my programs:
    <APPLET CODE=SquareInt.class
    CODEBASE=/pop/maya/
    WIDTH=400 HEIGHT=400>
    </APPLET>
    </BODY>
    </HTML>
    import javax.swing.*;
    import java.awt.Container;
    public class SquareInt extends JApplet {
    public void init(){
    String output ="";
    JTextArea outputArea = new JTextArea(10,20);
    // get the applet's GUI component display area
    Container c = getContentPane();
    //attach outputArea to Container c
    c.add(outputArea);
    int result;
    for (int x=1; x<=10;x++){
    result = square(x);
    output += "The square of "+x+
    " is "+ result+"\n";
    outputArea.setText(output);
    public int square(int y)
    return y*y;

    If i were to make a guess, i'd say it had to do with the name of the file.
    Jbuilder puts things in packages. javaClass.myclass.
    for instance. This, as far as i can tell, will look for a directory called javaClass in whatever directory on the webserver the HTML resides, and look in there for myclass.class.
    to be honest, i've not totally figured out how it works, but this may give you something to look at.
    Also, be sure you have the java plugin installed correctly for ie5.5.

  • Getting JAR file for Applet doesn't work

    Hi,
    We have the following problem: we have some clients who want to use our applet. There are some clients that have problems with receiving the .jar file:
    When the applet tries to start we get a ClassNotFoundException: 'prestaties.class' not found. (the client wants to acces the class file directly from the server)
    If we check the .jar file, it exists on the client, but the file is empty.
    What could be the problem?
    - PRoxy or firewall blocks the jar file
    - applet doesn't have enough rights to write.
    Does anyone a solution, some workarounds or suggestions for this problem.
    Thanks!
    Luk

    Hi,
    Thanks for answering my question!
    Here is the extra information you asked.
    At server side everything is OK (the jar file is present and has all the class files).
    Where working with Weblogic server 4.51
    The clients run JRE 1.3.0-C
    I can't give you the applet code (confidential) but here is the html code:
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="600" height="80" align="middle">
    <PARAM NAME="cache_archive" VALUE="prestaties.jar">
    <PARAM NAME="cache_option" VALUE="Plugin">
    <PARAM NAME="cache_version" VALUE="1.4.2.1">
    <PARAM NAME="code" VALUE="be.vdab.cvsesf.applet.prestaties.PrestatiesApplet">
         <PARAM NAME="codebase" VALUE="/lib">
         <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
         <PARAM NAME="scriptable" VALUE="true">
         <PARAM NAME="windowId" VALUE="185498422412000">
         <PARAM NAME="cursusId" VALUE="23178">
         <PARAM NAME="opleiding" VALUE="boetseren">
         <PARAM NAME="organisator" VALUE="TESTOE Omschrijving">
         <PARAM NAME="locatie" VALUE="TESTDOSSIER HELKPDESK / 0">
         <PARAM NAME="instructeur" VALUE="TESTDOSSIER HELKPDESK / 0">
         <PARAM NAME="WebLogicSession" VALUE="1">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.3" width="600" height="80" align="middle"code="be.vdab.cvsesf.applet.prestaties.PrestatiesApplet"codebase="/lib"pluginspage="cvsesf/plugin.jsp"cache_option="Plugin" cache_version="1.4.2.1" cache_archive="prestaties.jar" windowId = "185498422412000"cursusId = "23178"opleiding="boetseren" organisator="TESTOE Omschrijving" locatie="TESTDOSSIER HELKPDESK / 0" instructeur="TESTDOSSIER HELKPDESK / 0"WebLogicSession="1">
    <NOEMBED>
    </COMMENT>           
              <html>
                   <head>
                        <title>Java plugin download</title>
                        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
                        <link rel="stylesheet" href="../includes/vdabstyle.css">
                   </head>     
                   <body bgcolor="#FFFFFF">
                   <TABLE width="600" border="0" cellpadding="1" cellspacing="0">
                        <tr>
                             <td>               
                                  <h1 align="right"><b><font face="Verdana, Arial, Helvetica, sans-serif">Java plugin</font></b></h1>
                                  <P><B>Voor het invullen van prestaties en vergoedingen heeft u de JRE 1.3 Java Plugin nodig: deze staat op de CD-ROM die u normaal gezien van de VDAB gekregen heeft.<br><br>
                                  Ofwel kan u de plugin hier zelf downloaden (<U>opgelet:</U> bestand is 8 MB groot).<br><br>
                             U kan het VDAB callcenter contacteren om een CD-ROM aan te vragen of om problemen te melden. Het nummer vindt u onderaan het scherm.</B></p>
                             </td>
                        </TR>                    
                   </table>               
                   </body>
              </html>
         </NOEMBED>          
    </EMBED>
    </OBJECT>
    Hope this helps.
    Luk

  • Brightness gnome-applet doesn't work....

    Hi,
    my brightness gnome-applet doesn't wok in my sony vaio vgn s5m....
    how to resolve?
    thanks.

    alex_anthony wrote:
    It doesn't work on a lot of computers. Its because the BIOS is handling your brightness instead of GNOME. I don't think there is a solution. You'll just have to use the keyboard.
    100th Post!
    thanks

  • Nm-applet doesn't work

    Hello.
    When I boot my computer and start up Fluxbox, nm-applet doesn't show up in the tray area. It's running, but doesn't show up and doesn't connect me automatically (which it was set to do last time I saw it). If I try to kill it and start it manually via the terminal, I get this:
    [jmy@x110 ~]$ nm-applet --sm-disable
    ** (nm-applet:1549): WARNING **: get_all_cb: couldn't retrieve system settings properties: (2) The name org.freedesktop.NetworkManagerSystemSettings was not provided by any .service files.
    ** (nm-applet:1549): WARNING **: fetch_connections_done: error fetching system connections: (2) The name org.freedesktop.NetworkManagerSystemSettings was not provided by any .service files.
    Now, most people with this problem seem to have their rc.conf daemons set up wrong, but I'm fairly certain this should work:
    DAEMONS=(syslog-ng !network !netfs dbus hal networkmanager crond sensors alsa)
    What am I missing here? I don't want to have to connect manually every time I start up my computer.

    I still have this problem. Can anyone help me?
    If it's to any help, it works just fine when I run xfce4 (except it doesn't show in the tray, but w/e) instead of fluxbox, for some reason, so I guess there's something that needs to run which doesn't in fluxbox. But I dunno
    EDIT: nvm. Got it working. I was using this fix: https://bbs.archlinux.org/viewtopic.php?id=63576 while trying the ck-launch-session stuff mentioned above and in other threads. Restored the original configuration files, and voila!
    Last edited by Beefive (2010-08-03 01:29:16)

  • Java applet doesn't work

    The website I use for developping my photos use a Java applet for the upload of pictures. When I try to use it with Firefox, it doesn't work but when I tried with Safari it worked.
    As I use Firefox all the time and not Safari, I would like to make it work there too.
    I tried by disabling all add-ons but it didn't make any difference. How can I fix it?

    I have enabled the Java console from the java control panel.
    And the error was:
    java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThread")
    So I went to my java.policy file located in java.home/lib/security/ and I wrote the following
    grant codeBase "url or file where the applet is" {
    permission java.lang.RuntimePermission "modifyThread";
    And now the applet is working.
    Again, thank you for your support.

  • JMF Applet doesn't work

    Hi,
    I've created my first real applet which is basically a mediaplayer. It loads a certain movie (.mpg) and plays it. This is the script i've used: http://java.sun.com/products/java-media/jmf/2.1.1/samples/samples/SimplePlayerApplet.java
    As you can see i've used JMF to create this applet. It works excellent on my computer (where JMF is installed). But whenever I try to execute this applet on a computer without JMF, it just doesn't work. The console gives the following error:
    java.lang.NoClassDefFoundError: javax/media/ControllerListener
    and some more errors below that.
    It seems like the applet runs only on PCs with JMF installed, because then the class javax/media/ControllerListener exists. Is there a way to make the applet so that it also runs on PCs without JMF installed?
    Thanks,
    betonboor

    Try searching the Java Media Framework forum:
    http://forum.java.sun.com/forum.jspa?forumID=28&start=0
    The question has been asked many times before, if I'm not mistaken. If you don't find an answer, try posting your question there.
    Good luck.

  • Clickme applet doesn't work

    I've been through all of the threads and can't find out why it doesn't work. The applet loads in both IE an with the appletviewer, but in both cases, the red dot does not appear.
    I have modified my classpath to include C:\jdk1.3.1_04\lib; and .;
    I have changed settings in the java plug-in control panel applet.
    The applet sometimes blinks and shows a hazy grey line across the box, as if it is trying to do something, but it never works.
    Any help is appreciated.
    Here is the html:
    <HTML>
    <HEAD>
    <TITLE> The ClickMe Applet </TITLE>
    </HEAD>
    <BODY>
    <applet code="ClickMe.class" width="300" height="150"></applet>
    </BODY>
    </HTML>

    No dice. Adding the full directory path made it worse, now the applet won't load at all.
    I can't even get the hello world app to print on the command line.
    Last friday, it worked and now it doesn't. Its like my path or classpath is not being recognized or something.
    I wanted to learn a "real" language, but maybe I should just stick with Perl :)
    At least I can make it work.

  • Upgrate from jdk 1.3 to jdk 1.4, applet doesn't work anymore

    Hello,
    I have several applications that work with the default virtual machine that is installed in the browser. When I updated my virtual machine to jdk 1.3 everything was still ok. But when I updated it now to jdk 1.4 several of these applets doens't work anymore. I allways get the message class not found. Does anyone know the reason or a solutions for this.
    I know that in the beginnen of jdk 1.4 most of the applets didn't work on 1.4. But that problem was solved.
    Thanks for the reply.

    I might be having the same problem. Is the class the first one [the applet] or a subsequent one and if so is it in the same directory or a different one?
    What does your applet html code look like i.e CODE= ???? CODEBASE= ????
    Pete Antoniak

Maybe you are looking for

  • Adobe reader 11.0.5 - cannot print pdf file to network printer

    I have a 64 bit HP Pavilion a6230n PC running Windows 7, fully updated. I have wireless connection to a home file/printer server. My printer, a Brother HL-5140, is connected via USB to the file/printer server. All my other Windows programs capable of

  • Windows 8.1 Pro Metro Apps Crash in Desktop mode

    Everytime i switch from metro apps to my windows 8.1 desktop, the apps crash after a few seconds like switching apps on my ipad. my desktop can run however many programs and not crash when switching between windows. how can i work on project siena if

  • Disk burned today won't play on tv; yesterday's does

    I have created two very simple presentations in iMovie - title slides, a few images and an audio track. Both presentations are less than 3 minutes long. I burned one yesterday and it plays fine in dvd player. Burned the other today and won't play in

  • I just changed my phone number over an hour ago

    Hello, Looking for any help.  I just changed my phone number over an hour ago.  I called the *228 and that was successful, then I powered on and off my phone 5 times so far and still nothing.  I can call and it goes to voicemail, but my phone doesn't

  • Runtime Error causes Elements 11 editor to crash

    I've had this happen twice now over the last 10 days. After the first time, I removed the whole program & re-installed from the disc. Its now just happened again and editor will not load & I just get the Runtime Error! notification. As before, I can