Does this applet work on your system.

After talking to other people, it seems to me that it doesn't work on XP for some reason. Please go here: http://pigseye.kennesaw.edu/~prosconi/Shooter/index.html and tell me if it works on your system.
JDK 1.4.2
Windows 2000
MSIE 6.0

Doesn't work on mine :(
Towards the end of loading process this pops up in a
java console:
java.security.AccessControlException: access denied
(java.lang.RuntimePermission exitVM)
at
java.security.AccessControlContext.checkPermission(Acc
ssControlContext.java:270)
at
java.security.AccessController.checkPermission(AccessC
ntroller.java:401)
at
java.lang.SecurityManager.checkPermission(SecurityMana
er.java:542)
at
java.lang.SecurityManager.checkExit(SecurityManager.ja
a:762)
     at java.lang.Runtime.exit(Runtime.java:88)
     at java.lang.System.exit(System.java:713)
     at Shooter.loadBufferedImage(Shooter.java:71)
     at Shooter.init(Shooter.java:45)
     at sun.applet.AppletPanel.run(AppletPanel.java:341)
     at java.lang.Thread.run(Thread.java:536)I'm on winXP, I got this feeling I've disabled
something on my computer the other day but I can't
remember what, doh!
public BufferedImage loadBufferedImage(String image)
     try
          return ImageIO.read(new URL(getCodeBase(), image));
     catch (Exception e)
          e.printStackTrace();
          System.exit(0); // <-- can't exit VM in applet... shouldn't even get here though.
          return null;
}Apparently on your computer it does not want to download the image. Is there an equivalent to System.exit(0) for Applets? :/

Similar Messages

  • Does this query work on your DB?

    I'm on 9.2.0.4. The following query fails because it can't see the u.username column of the inner-inner query. But if I un-nest it by one level it works fine. It's as if the inline view hides the column names of the outermost query.
    Is it supposed to work this way, or have I hit a bug?
    If it works on your installation, could you please tell me your version number? Thanks.
    SELECT u.username
         ,(SELECT object_name
           FROM (SELECT o.object_name
                 FROM   all_objects o
                 WHERE  o.owner = u.username
                 ORDER BY o.object_id DESC)
           WHERE rownum = 1
          )  greatest_object_id
    FROM   all_users u
    ERROR at line 5:
    ORA-00904: "U"."USERNAME": invalid identifier
    SELECT u.username
         ,(SELECT count(*)
           FROM   all_objects o
           WHERE  o.owner = u.username) object_count
    FROM   all_users u
    USERNAME    OBJECT_COUNT
    SYS                 2851
    SYSTEM                31
    HANSENE               15
    ...

    I tested in 9.2.0.6 and didn't work either. I think it should work... can be a bug, not sure. An alternate way is:
    select
    u.username,
    (select o.object_name from all_objects o where o.owner = u.username and o.object_id = (select max(m.object_id) from all_objects m where m.owner = o.owner)) greatest_object_id
    from
    all_users u;

  • Does this video work in your browser

    http://www.fishtec.co.uk/fishtecmovie.swf

    i see a white page.  i'm not sure if that's what i'm supposed to see.

  • When doing catalog backup get message " your system is low on disk space, and elements organizer can

    When doing catalog backup get message " your system is low on disk space, and elements organizer cannot perform the operation.  If create a catalog with 20 pictures backup works OK.  backing up to a 1TB external drive.  Have 16705 pictures in catalog.  Total disk space for pictures is 192 MB.  Why am I getting message?

    kdrozzen a écrit:
    Total disk space for pictures is 192 MB. 
    Do you really mean MB (megabytes) or GB (gigabytes) ?
    Even if its GB, the free space may be enough, depending on your files size, especially with videos or raw files.
    When you start the backup process, it first shows you the total size of the catalog.

  • Past from 1year am using 4s in India...if we carry this phone to Australia does this phone work...If its does not work Then what is the procedure..???

    Past from 1year am using 4s in India...if we carry this phone to Australia does this phone work...
    If its does not work Then what is the procedure..???

    Call AppleCare and tell them you just want to know if your iPhone is unlocked and if not, who is it locked with. If it is locked contact the cell provider and ask them what their unlock process is and complete it if you qualify.

  • How does chat applet works?

    how does chat applet works? What specific technologies should i learn to make a chat messaging work?
    thanks in advance for ur help...

    Chat applets work on sockets. Normally there are two parts. One server and one or more clients. The clients connect to the server and any message sent by a client is then distributed by the server to all the other clients.
    Sun's site is incredibly slow tonite so I'll give you a google link
    http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=chatserver+chatclient+java

  • 24 hours after setting the erase button on the Find My iPhone option in iCloud the phone was still not erased. Does this function work in a timely fashion?

    24 hours after setting the erase button on the Find My iPhone option in iCloud the phone was still not erased. Does this function work in a timely fashion?

    No. It functions when connected to the Internet.

  • Why does this applet (with an audio clip) fail to load in a browser?

    Hello Java Experts.
    I am able to compile and run the applet in an IDE. The problem lies when I attempt to run the applet through a browser (such as Internet Explorer, Firefox, etc.). The entire applet fails to load (in the browser) when it includes code pertaining to audio clips, but works fine when it does not contain audio clip related code.
    Here is a Short, Self Contained, Compilable, Example that illustrates my problem:
    import javax.swing.*;  //  Required libraries
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    public class Music extends JApplet  //  Music class is a subclass of the JApplet class
        AudioClip music;
        public void init ()
            music = getAudioClip (getCodeBase (), "sample.wav");  //  You may use your own audio file
            music.loop();
        public void paint (Graphics g)
            g.setColor (Color.blue); 
            g.fillRect (0, 0, 800, 600);  //  THIS RECTANGLE IS NOT DRAWN (this is my test to see if the applet loads in the browser)
    }Please try to run this applet in a browser so that you can point me to my mistake(s).
    Thanks for the help in advance.

    >
    Here is a Short, Self Contained, Compilable, Example that illustrates my problem:>The 'example' part of it, fails to manifest here. Using that exact code, I was able to see a blue rectangle in both AppletViewer and FF. You might try..
    1) Configuring the Java Console to open for applets by default - look in it for error messages.
    2) Change the name of the WAV to something that definitely +does not exist+ at the code base. (That would most closely replicate my own testing experience - since there is no WAV available here).

  • HOW DOES THIS FORUM WORK?

    I'd be interested to know how this forum works - are there any moderators who read the posts.  I posted earlier today regarding a problem I have on my printer - it hasn't even been viewed.
    Quite frankly I'm feeling extremely let down by HP recently.  I've always been an HP printer fan but I'm starting to wonder if it really is worth ALL my time and effort - Epson reviews next on th list!!!!

    Cook book techs.
    Follow a logic tree and hope that the questions asked were for the actual problem. The real problem is that words mean things and if we each have our own meaning.
    Freeze--- 5 minutes I see no change? 10 minutes? 2 days later the computer has not done anything?
    Hangs up - - no change in 5 minutes? no change in 10 minutes? no change in 30 seconds? 2 days later the screen is different it turned it's self off.
    hesitates - - no change in 30 seconds, 5 minutes, 10 minutes, 2 tv shows later there is something different.
    I am a patient person. Hesitates no change 30 seconds; hangs 2 tv shows later; and freeze 2 days later. Some one else may react differently 2 seconds for hesitates, 30 seconds hangs, freezes 31 seconds.
    So the cook book teck may ask whats your problem give you 4 answers to choose from. And each of us may give different answers from our unique prospective. Me it was hangs up where the same problem may be a hesitation or a freeze to another. Of course then the teck decides to enter another answer cos she don't think you know what you are talking about....
    C'est la Vie.  And they might be in Corvallis Oregon

  • Does my applet work for you?

    I can see it fine on my PC but nobody else can view it.
    http://www.info.com.ph/~arivera/game/testmain.html
    I'm using SDK 1.4.2

    I'm trying to learn how to use
    MediaTracker right now - having some kind of problem
    where I try and wait for all the images to load but it
    would still run without having loaded everything.
    I usually just use a boolean status, and while the "loaded" boolean is false, I dont even let the other game code run. Quick example:
    import java.applet.*;
    import java.awt.*;
    public class Example extends Applet implements Runnable {
         Image buffer,images[];
         int w,h;
         boolean loaded;
         public void init() {
              loaded = false;
              w = getSize().width;
              h = getSize().height;
              buffer = createImage(w,h);
              new Thread(this).start();
         public void run() {
              while (true) {
                   if (!loaded) { // not loaded?
                        loaded = load(); // try to load the images
                   else {
                        // game processing
                   Graphics g = buffer.getGraphics();
                   if (g != null) paint(g); // try an active render
                   else repaint(); // passive rend if active fails
                   try {
                        Thread.sleep(10);
                   catch (InterruptedException e) {
                        break;
         /* you should use a boolean loader so you can know
         * if the load fails or not */
         protected boolean load() {
              images = new Image[] { // images to load
                   getImage("sprite.gif"),
                   getImage("background.gif"),
                   getImage("level.gif"),
                   getImage("whatever.gif")
              MediaTracker m = new MediaTracker(this);
              for (int j = 0;j < images.length;j++) {
                   m.addImage(images[j],j);
              try {
                   m.waitForAll();
              catch (InterruptedException e) {
                   return false; // there was an error, load failed
              /* the final step is to return whether or not MediaTracker didnt have a problem */
              return !m.isErrorAny(); // hopefully will return true
         protected Image getImage(String s) {
              return getImage(getCodeBase(),s);
         public void paint(Graphics g) {
              Graphics gfx = buffer.getGraphics();
              if (!loaded) {
                   gfx.setColor(Color.black);
                   gfx.fillRect(0,0,w,h);
                   gfx.setColor(Color.white);
                   gfx.drawString("Loading...",10,10);
              else {
                   // game painting
              g.drawImage(buffer,0,0,null);
         public void update(Graphics g) {
              paint(g);
    The music I haven't gone around trying to fix yet. You
    can turn off the music by painstakingly closing all
    browser windows though.
    public void stop() {
        sound.stop();
    I think the applet works if you have JRE 1.4 or above.
    My friends can't seem to view it - so I'll put a note
    on the webpage saying it requires JRE 1.4 or above.Well if you're sure you're using methods and classes that are available to previous versions of JRE, you can use the -target attribute to fix that problem. Like if you wanted JRE 1.2 and higher to run the applet instead of just 1.4, you'd compile:
    javac -target 1.2 file.javaBy default JDK1.4 will compile it so only JRE1.4+ can view it (which means you'd need the plugin).

  • Wy does this applet doesnt close on closing?

    i runt this applet through the main by constructing a constructor...I cant close the applet, it closes after closing the DOS prompt...why?
    code..
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.net.*;
         public class NSgetAllIP extends Frame implements ActionListener{
              JLabel l;
              JTextField tf;
              JTextArea ta;
              JButton b;
                   public NSgetAllIP(){
                        l = new JLabel("Enter the site's name");
                        tf = new JTextField(20);
                        ta = new JTextArea(20,20);
                        b = new JButton("Display the IP's of ");
                        setLayout(new FlowLayout());
                        add(l);add(tf);
                        add(b);
                        add(ta);
                        b.addActionListener(this);
                        public void actionPerformed(ActionEvent e){
                             String wname = tf.getText();
                             String temp = "";
                             try{
                                  InetAddress ip[] = InetAddress.getAllByName(wname);
                                  for(int i=0;i<ip.length;i++){
                                       temp += ip[i] + "\n";
                                  ta.setText(String.valueOf(temp));
                                  System.out.println(temp);
                                  catch(UnknownHostException uh){
                                       System.out.println("Site not found");
                             //     catch(Exception x){
                             //          System.out.println(x);
                             public static void main(String v[]){
                                  NSgetAllIP ipa = new NSgetAllIP();
                                  ipa.setSize(400,400);
                                  ipa.show();
         }

    hmmm
    You are right, thanks. But if a make an applet of the same while init()ing it, it cant run. The java.security asks for permission and i cant even assign a wildcard t o the java.security....
    What do i do to run an applet version of that without getting into the security troubles?
    heres the applet code..
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    //import javax.swing.*;
    import java.net.*;
         public class appipsn extends Applet implements ActionListener{
              Label l,l1;
              Button b;
              TextField tf,tf1,tf2;
                   public void init(){
                        l = new Label("Enter the website like \"yahoo.com\"");
                        tf= new TextField(25);
                        tf1 = new TextField(25);
                        tf2 = new TextField(40);
                        l1 = new Label("The IP address is");
                        b = new Button("Get IP");
                        add(l);add(tf);
                        add(l1);add(tf1);
                        add(b);
                        add(tf2);
                        b.addActionListener(this);
                        public void actionPerformed(ActionEvent e){
                             String webname = tf.getText();
                             try{
                                  InetAddress ip = InetAddress.getByName(webname);
                                  tf1.setText(String.valueOf(ip));
                             catch(Exception ioe){
                                  tf2.setText(String.valueOf(ioe));
         //<applet code = appipsn height = 300 width = 400></applet>
    /*     grant {
      permission java.net.SocketPermission
            "puffin.eng.sun.com:7777",
         "connect, accept";
    };*/

  • Hard drive caddy - T61 - How does this thing work?

    I have a 200gig hard drive on my T61.  Since my computer has died twice in a year I want to have a cloned hard drive handy to insert and not miss a beat and not fuss with reinstalling everything.
    When I bought the machine I also bouht a hard drive caddy...
    http://shop.lenovo.com/SEUILibrary/controller/e/we​b/LenovoPortal/en_US/catalog.workflow:item.detail?​...
    I bought a SATA 500 gig hard drive and inserted this into the hard drive caddy.
    I inserted the caddy into the CD drive area.
    Now what? 
    When I click on "My Computer" I do not see the drive listed?
    Do I need special software to make a clone of my hard drive on here?   Recommendations?
    I thought Lenovo had one that came with it, but I do not see anything?
    Should "My Computer" see this drive with the caddy?
    All advice greatly appreciated!!

    Good advice, same as the Lenovo Tech support.  Unfortunately it does not see the new drive there either...
    Right clicked My Computer
    Manage
    Disk  Management
    (Only C: drive shows)
    This is the way to initialize drives, a step before cloning apparently to set up a new drive.
    I ordered a SATA to USB cable from Amazon for $28.  Hopefully this will work were yet another Lenovo periferal has failed.
    Very frustrated with Lenovo, definitely my last one.  After buying 3 in a year from Lenovo even with a warranty all I get is attitude from customer service.  One guy told me that backing up was the same as cloning.
    For anyone with the same problem trying to clone, I believe you will need a 3rd party software to make a clone.
    Norton Ghost - $70
    CloneZilla - Free
    1. Get Hard Drive
    2. Connect new hard drive
    3. Initialize new hard drive
    4. Get third party software
    5. Clone

  • How does this programme work?

    can someone please explain step by step how this programme workes? The code was developed by ian.f.k
    Attachments:
    graph_with_jpg-bkgd_01052003[1].vi ‏33 KB

    A JPEG file is read from disk and written to a picture indicator (Read JPEG File and Draw Flattened Pixmap). The size of the rectangle (right and bottom items of the cluster) is checked to make sure that it is greater than zero. This is done by converting the cluster to an array and the Less or Equal function creates an array of Booleans for each comparison. The array of comparison results is ANDed together to verify that all elements are not TRUE (each element is not less or equal to zero). If each element is not less than or equal to zero, the size of the picture indicator is set to the same size as the JPEG file. If any element is less than or equal to zero, then the size of the picture indicator is set to a default width of 50 and height of 50.

  • How does home sharing work between your computers?

    How does home sharing work between computers?

    With any luck, the following document may be of some assistance:
    Understanding Home Sharing

  • HT4623 Does this really work??

    I want to. Know if this really works cuz all my friends have it

    Work as what?
    Thermo nuclear lance?
    No, not so you'd notice.
    Peter

Maybe you are looking for

  • "E_PACK_ERROR: illegal filename for a PUT" Error in Packaging a PDF file

    Hi Jim, As per ContentServer_Technical_Reference.pdf (page no 9) I passed <filename>, <location> and <src> parameter in our packaging request xml. File is packaging successfully and service is also placing the encrypted file to new location listed in

  • Intel Turbo Boost Technology

    I noticed it is "Disabled" in CMOS, is there an issue with enabling it? Thanks. John

  • What version of Oracle JDBC driver

    I need to know the version of the Oracle JDBC driver to use. I am using JDK version1.2, Oracle version8.0.5.

  • Error in Recruitment module

    Hi SAP Gurus: My query here is that in the recruitment module, while doing prepare to hiring action, we face an error calle MESSAGE_TYPE_X when we exit and do the action again, we do not get it. did debug it and found out the following reason: I had

  • SwitchBoard.exe - Application Error

    After installing Creative Suite Design Premium, I am getting a SwitchBoard.exe-application error at boot up.  How do I resolve this?