Strange question: about Applet

My applet only import:
import java.applet.*;
Why it said "class not found" when loaded it in browser?

I have tried in IE6 and IE5.5,they can't load the class file too,
and if I use the java plugin,it works ok.
But my program import nothing not include in jdk1.1,
so it's too strange.
I am sure the file in that directory and
no error or warning when compilation.
what browser are you using?
some possible reasons:
1.the browser is using lower version of vm than the
development enviroment
2.the applet files are not in that directory
3.something wrong in your html file
by the way, did your applet work in IE?

Similar Messages

  • Strange question about GRUB2

    I have a strange question:
    What else can be added into GRUB loading menu? Like memtest86+ ?
    Some tests or other usefull stuff...
    Last edited by m0nhawk (2010-10-21 17:06:13)

    You may be interested in those (parted magic, boot from floppy/usb/cd, boot from an ISO on a USB drive so you can have multiple distribution on a single thumbs drive)
    http://www.plop.at/en/bootmanager.html
    http://ubuntuforums.org/showthread.php?t=1288604

  • Question about Applet Securities / Permissions

    Hi,
    I'm about to begin work on a program that will utilize GData API to communicate with Google Calendars. I was wondering if this is going to be allowed in an applet, or if I would have to create it as a Java Application.
    I was looking at: http://java.sun.com/docs/books/tutorial/deployment/applet/security.html
    where it says "It cannot make network connections except to the host that it came from."
    I was wondering if that means I wouldn't be able to use to GData API to retrieve/create events in a Google Calendar.
    Thank you,
    Christopher

    Welcome to the Sun forums.
    elwell.christopher wrote:
    I was wondering if that means I wouldn't be able to use to GData API to retrieve/create events in a Google Calendar.Cool. Be sure to report the results of your experiment to test that. I'm sure others will be interested. And of course, feel free to drop back by if you have a question.

  • Three questions about applets

    First I double click the html file, and then it opens up Internet Explorer but the information bar says:
    To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer. Click here for options... so I click it and have to allow the blocked content.
    Question 1: Is there anything I can do so that it doesn't block my applet?
    Now on the Internet Explorer page my applet shows, but it doesn't have a background.
    Question 2: Why isn't the background showing?
    If there is a problem, it would probably be in here:
    public void actionPerformed (ActionEvent e)
         processButton(e.getActionCommand());
    void processButton(String command)
         if(!command.equals("a"))
                setNumSqFt();
             setAllLabels();
             repaint();
        public void init()
       try
         setLayout(new GridLayout(1, 0));
              WorkOK().setOpaque(false);
                WorkOK().setSize(new Dimension(600, 400));
             JScrollPane sp = new JScrollPane(WorkOK());
              sp.getViewport().setOpaque(false);
         add(sp);
             sp.setOpaque(false);
             String url = "http://i93.photobucket.com/albums/l45/dazednconfused101/tile.gif";
             setSize(800,500);
             setVisible(true);
             Border bckgrnd = new CentredBackgroundBorder(ImageIO.read(new URL(url)));
              sp.setViewportBorder(bckgrnd);
                sp.repaint();
         catch (MalformedURLException e)
                  System.err.println("FileNotFoundException: " + e.getMessage());
         catch (IOException e)
                  System.err.println("Caught IOException: " + e.getMessage());
    public void start(){
         System.out.println("Applet starting.");
      public void stop(){
         System.out.println("Applet stopping.");
      public void destroy(){
         System.out.println("Destroy method called.");
      }Now for Question 3: How do I fix this?
    Thanks in advance

    For Question 1 ,
    Question 1: Is there anything I can do so that it doesn't block my applet?If you want to run active content/applet in all files on your hard disk, then you need to open menu Tools / Internet Options / Advanced tab / Security section and make sure that "Allow active content to run in files on My Computer" is checked.

  • Security permissions question about Applets

    Hello all.
    I'm wanting to make an address book on my server, so I need to have it write to a file. I've read a bunch about it, and still can't figure it out.
    I'm not exactly sure what the java home is supposed to be. I created a java.policy file in /usr/lib/j2sdk1.5-sun (I'm on Linux), but I think it might belong in /usr/lib/j2sdk1.5-sun/jre or /usr/lib/j2sdk1.5-sun/jre/lib/security
    I'm also not exactly what the java.policy file is supposed to contain. Currently, it is:
    grant codeBase "file:/home/scott/public_html/address_book/old/*" {
            permission java.io.FilePermission "/home/scott/public_html/address_book/old/Test.txt", "write";
    };Anyone want to help?
    Scott Howard

    I'm wanting to make an address book on my server, so I need to have it write to a file.Well, applets run on the client - the browser which downloaded the class files - and therefore cannot access files on the server without some type of networking.
    Caveat - the client and server are the same physical machine.
    Solution - have your applet communicate back to the server it originates from. No policy twiddling is needed, as this is an automatic permission.

  • General question about Applets!

    Hi,
    I have a Win program I need to upgrade as a Web one.
    So, I'm not sure whether I should use an applet whetther do it with JSPs...
    I've used Java applets 4 years ago and I met some printings, (very)long downloading, security, ...problems.
    Obviously, the graphic result would be much better for me with an applet but could you please tell me if Java applets for Java 1.4.1 is more reliable that it used to be. Otherwise, I would finally choose JSP technology :-)
    Thx in advance,
    -G-

    the graphic result will probably not be better with applets at all. They exist to make it far easier to port java programs to the net, but they are pretty horrible to use as a result (as you have experienced). Problem is, users don't care about what makes it tick, they just see them as slow and generally rubbish. I would use JSPs or servlets, which are a far better use of Java's power. However, you will need to do more work. They can both call out to external classes and beans, so you can reuse that way, but obviously you will need to have a think about how to restructure the I/O. You just have to look at skills demands to see whats good and whats not... just about every java job now asks for J2EE (servlet, JSP and other stuff) skills, but when was the last time you saw a job ask for applet skills?!

  • Some question about applet

    how to close the IE window which contain the applet when the user click some button on the applet?
    and how to modify the IE window's size, position and title?
    thx very much

    I would add some JavaScript or VBScript to the page
    and have your java applet call the javascript
    function.
    JavaScript has acces to close the browser and to
    change the windows size, location, attributes (ie make
    it full screen, etc)
    You can use the JSObject from netscape...
    to allow your Applet to interact with javascript...thx very much

  • Basic question about applets

    Hi,
    Can someone tell me when you run an applet on a web page where does it run??.. Does it run from the server or does the client browser download a copy a run it from there. Is there a good web site that explains all of this..
    Thanks
    Joolz

    the client browser download the applet from the server and run the applet on the client side (this is why you need a JVM to run the applet)

  • Strange question about cookie

    jsp page 1 create a cookie and send it to browser,then forward to jsp page 2,
    jsp page 2 can read cookie successfully,and jsp page 2 link to jsp page 3,
    but in jsp page 3,cookie can't be read yet,why?
    Anybody have experience like to tell me?

    Thx.I have solved the problem.
    The reason jsp page 3 can't read cookie is cookie has the
    property "path",the application write and the application read
    the cookie must be at the same path,otherwise it failed to read.
    If they are at the different path,you must use cookie.setPath()
    method to set the path which the application read is at before
    you write the cookie.
    The other thing I found is forward() will not change the path,
    so why the jsp 2 can read the cookie.
    once you added a cookie to your response, then any
    resource in your application should be able to read it
    and retrieve it's value, because actually it is going
    to be stored at the client local drive. maybe you
    should be sure about the age of the cookie i.e
    Cookie userCookie = new Cookie("cookiename",
    "cookie_value");
    userCookie.setMaxAge(60*60*24*365); // 1 year,
    setMaxAge in seconds
    response.addCookie(userCookie);
    so maybe if you try to set the max age of the cookie
    it would work
    regards

  • Question about PNP...LDB

    Hi All,
    I have been asked a simple but strange question about PNP LDB. When we assigned logical database in our program, it will basically create a selection screen, which have certain fields. Like Today.. Some date ranges. Person assigned number, company code, company status.
    From my standpoint I know when ever we give selection to PNP screen we have to check this selection parameters in our programs, like date range ,person number, employee status etc ….RIGHT?
    Somebody ask me that without checking selection in our report I mean any parameters, it can filter the record, my Answer was BIG “NO”. You need to check all the parameters in your program.
    Next question asked by me was what the purpose of PNP. I replied that rather then declaring and doing bunch of databases SAP provide logical database so current all the records and do what ever you like to do.
    What you think guys?
    Thanks

    Here`s the question , when I am giving "1"active employee in employee status why its pulling up the information for '0' withdrawn employee?
    Message was edited by: Saquib Khan

  • Another one question about how to download applet (not using external tool)

    Hi
    i write tool for downloading applet on card. I use apdu trace from NXP eclipse plugin as source of information and i read also about cap-file format in Java Card Virtual Machine specification. And i have questions about data transferred by LOAD command.
    As example - from apdu trace i see that transferred data are "C4820E33 DATA1 DATA2". Full length of transferred data is 0x2EE2.
    C4 - OK, this is "Load File Data Block" tag as specified in Global Platform
    820E33 - OK, this length of tag, =0x0E33
    DATA1 - sequence of cap-file components: Header.cap, Directory.cap, Import.cap, Applet.cap, Class.cap, Method.cap, StaticField.cap, ConstantPool.cap, RefLocation.cap. Length of DATA1 is 0x0E33, i.e. DATA1 = 'C4'-tag value.
    DATA2 - sequence of two cap-file components: Descriptor.cap and Debug.cap. These components are out of 'C4'-tag.
    the questions mentioned above... here they are:
    1. Global Platform does not define any data in LOAD command except 'E2' and 'C4' tag. Why DATA2 is transferred out of any tags?
    2. Whether the sequence of cap-file components is important? i.e. Can i load Header.cap, Directory.cap etc. in other order than i see in DATA1 field from apdu-trace?
    3. Debug.cap seems to be optional component. And what about Descriptor.cap component? Need i load it on card?

    666 wrote:
    1. Global Platform does not define any data in LOAD command except 'E2' and 'C4' tag. Why DATA2 is transferred out of any tags?Because the components are either optional or only required when communicating with a JCRE that has debugging capabilities. I assume you ran the project in JCOP Tools in debug mode against the simulator? If you did this against a real card it would fail as it does not have an instrumented JCRE capable of debugging code. You could try running the project as opposed to debugging to see the difference.
    2. Whether the sequence of cap-file components is important? i.e. Can i load Header.cap, Directory.cap etc. in other order than i see in DATA1 field from apdu-trace?Yes it is. It is defined in the JCVM specification available from the Oracle website.
    3. Debug.cap seems to be optional component. And what about Descriptor.cap component? Need i load it on card?No, it is optional and is not referenced by any other CAP file component.
    Cheers,
    Shane

  • Some basic questions about an applet

    Hi all,
    I am planning to make a project in JAVA and I have some problems, which I need to solve. I am not a total beginner in JAVA but I have never made an applet. So I need to know if it is possible to make an upload of files from clients computers to servers and the second problem is if there will be some problems with printing services and applets?
    Thank you all for your helpfull replies.

    Read all about Applets' capabilities and (perhaps even more) incapabilities here:
    http://java.sun.com/docs/books/tutorial/deployment/applet/index.html

  • Some questions about configuration in MAX.

    Hello,everyone!
    I have some questions about configuration in MAX(I am a jackaroo for motion control development),I hope I can get your help.
    I use PCI-7344+UMI-7764+Servo amplifier+Servo motor,my MAX version is 4.2 and I use NI-Motion7.5
    My question as following:
    1,In Axis Configuration,for motor type,why I must select stepper but not servo?my motor is servo motor!If I select Servo,my motor can't run,I don't know why.
     If I select stepper,though motor can work but I can't test encoder in MAX.
    2,In Stepper settings,for stepper loop mode,why I must select open-loop but not close-loop?If I select close-loop,the servo motor doesn't work too.
    3,If I want my two servo motors run at different velocity,How shoud I do?It seems I just can set the same velocity in MAX for my two servo motors.
     My English is poor,Pls pardon me!I come from China.
    Thank you for your help!
    EnquanLi
    Striving is without limit!

    Hi,Jochen,
    Thank you for your kindly help!
    The manufacturer of the drive and motor that I am using now is Japan SANYO DENKI,drive type is RS1A01AA,motor type is R2AA06020FXP00.
    And I use position control mode,thehe encoder's counts per revolution is 131072.I set the electronic gear ratio to 1:1 for drive.
    Now,I can use Close-Loop to control the motor but still has some problems.When I configure it to run in closed loop mode, the motors behave strangely and never move to the target position.When I configure it to run in closed loop mode, the motors behave strangely and never move to the target position.The detail situation is as following
    1,Motor can't run.
    2, Or motor moves to a position, then moves in the same direction agian and eventually stops.
    Except for the  two points mentioned above,"Following Error" is  occured frequently,I don't know why.
    I am still not clear why I must set the motor type be stepper in MAX .
    And I have another question:what the relationship between the steps and the counts?They have the proportion relations?I notice that there are a section said like this in help document: For proper closed-loop and p-command operation, steps per revolution/counts per revolution must be in the range of 1/32,767 < steps/counts < 32,767. An incorrect counts to steps ratio can result in failure to reach the target position and erroneous closed-loop stepper operation.
    I am verry sorry I have too many questions!
    I am very appreciate for your kingly help!Thanks again!
    EnquanLi
    China
    Striving is without limit!

  • A question about compatiblilty of JDBC

    Hi, there,
    I have a question about JDBC 3.0 in JDK1.4.1.
    We build a .jar using JDK1.4.1 and this .jar file
    provides JDBC 3.0 interface.
    I then tried to call the interface under JDK1.3.1
    but it keeps asking me about the getParameterMetaData()
    in PreparedStatement.
    (The error message like this:
    Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/ParameterMetaData dbmaker.sql.JdbcOdbcConnection.prepareStatement(JdbcOdbcConnection.java:257)
    I did implement the getParameterMetaData() method,
    but I didn't call this method in my testing program.
    It's quite strange since when JDK1.2 was release,
    we implemented the getBlob() method in
    ResultSet class and there's no problem when we
    use JDK1.1 run time to call this ResultSet object.
    Could any one tell me why? Is this caused by a
    compatibility problem between JDK1.4 and the
    older versions of JDK?

    Hi, there,
    Let me outline the condition by examples so that maybe you can help me. PLEASE! Could somebody tell us what's wrong?
    - CASE 1:
    In JDK1.2, we implemented a new method getBlob which returns the type of Blob (this is done according to JDBC 2.0 specification.) in ResultSet class. We can use the .jar compiled by jdk1.2 in jdk1.1 environment.
    e.g. We make a xyz.jar by jdk1.2 and the xyz.jar includes new method getBlob in ReaultSet class. Then, one java application including ResultSet class CAN run under jdk1.1 with xyz.jar, if the method ResultSet.getBlob() is not called.
    - CASE 2:
    BUT, the following case which is the same as in the above condition will fail in jdk1.3 environment.
    In JDK 1.4, we implemented a new method getParameterMetaData() which returns the type of ParameterMetaData. (BTW, this is done according to JDBC 3.0 specification.) in PreparedStatement class. We CANNOT use the .jar compiled by jdk1.4 in jdk1.3 environment.
    e.g. We make a ttt.jar by jdk1.4 and ttt.jar includes the new method getParameterMetaData() in PreparedStatement class. Then, one java application including PreparedStatement class CANNOT be run under jdk1.3 with ttt.jar, even when the method PreparedStatement.getParameterMetaData() is not called.

  • A question about design of Java Application on java card.

    Hi every one,
    I have a question about design of Java applet on java card,
    There is an application on my card that it is not java card, it include a DF and some EF under DF, I would like to know if I want to have this application on java card ,how can I design DF and EF on java card ,I mean is there any relation between DF,EF with applet and file? for example can I say DF is same as applet and EF is same as file?
    I'll appreciate for any help .
    yours sincerely,
    orchid

    hi
    you can write a java class for DF.
    an instance of DF class have some EF objects.
    for example,
    samples/com/sun/javacard/samples/JavaPurse/CyclicFile.java
    implements ISO 7816 CyclicFile ( EF )
    see also:
    http://forum.java.sun.com/thread.jspa?threadID=673745&messageID=3936272
    best regards,
    siavash

Maybe you are looking for

  • Content Services and OLS

    Is Oracle Content Services 10g integrated with OLS? Will OCS 11g be integrated with OLS? That is, can I label each file or folder with an Oracle Label Security label (column in the table where the document or document metadata is stored) and have OLS

  • Keywording Issue in Lightroom5

    Ran across an issue with keywords in Lightroom 5 and wondered if anyone had some advise. When I export an image with existing keywords they showup in the file properties when I open the new image in Windows Explorer. When I re-import that new file ba

  • Photoshop CS3  Hangs for over a minute upon opening a file

    My Photoshop CS3 (Windows XP) all of a sudden takes over a minute to open any file. The programs starts fine, then when I select a file to open, the program pauses, then hangs for over a minute and the photoshop window becomes blank before the file f

  • Friends and Family - (not mobile)

    Hi I've just been viewing my bill on-line... Is there now no concept of the old Friends and Family where you nominated some landline numbers, a mobile number and an international number to get discounted calls? I'm happy to be told this was discontin

  • Why does comments.vi stop working when server directory changes?

    With web server root directory set to "C:\Program Files\National Instruments\LabVIEW 8.2\www", I point my browser to "http://localhost/cgi-bin/examples/comments.vi" and I get the comment form. Next, I quit the G Web Server, set the server root to "c: