How to make my applet generally available?

Hello
I have written a HTML/javascript website which is ok except that a lengthy calculation in the javascript takes an excessive time to complete. So I have recoded the lengthy calculation as a java applet which is called from javascript by
return = document.<classname>.<java method name>(param)
This was done using the J2SE Development Kit 5.0 Update 4 and J2SE Runtime Environment 5.0 Update 4. My PC is Windows XP and I use Internet Explorer 6.0.
All screen handling is still done by HTML/javascript, the java applet has no i/o apart from receiving a parameter from js and returning a value to js. This all worked fine locally, so I copied all files to my ISP's server (including the java class file) and it still works fine on my PC when accessed from the server. HOWEVER when any other PC enters the website and attempts to perform the calculation they just get an Error on Page message from the javascript link to the java applet. What do I have to do to make the application run on other people's PC's as it does on mine? I have set permissions on the class file to 755. Do I need a policy file? Do I need to sign my applet? (whatever that means).
Thanks
Bryn Crossland

For a start, very few people will have Java 1.5 installed and set up for their browser. I think applets are great (if they are doing something useful), but these days you cant depend any everyone having a JVM installed for their browser, especially since microsoft ripped Java out of XP.
Maybe you could do the "lengthy calculcation" on the server.

Similar Messages

  • How to make another applet?

    Can somebody teach me how to make another applet besides the normal one the tutorial taught me?

    Your question is a litte unprecise. Just read on in the tutorial. When you finishd reading (and understanding) "Learning the Java Language" or when you dont understand something in the tutorial then you could ask again.

  • I just installed photoshop cc, how to make the english UI available in preferences, as it doesn´t appear! Please help??

    I just installed photoshop cc, how to make the english UI available in preferences, as it doesn´t appear! Help please??

    Hi George,
    Kindly try the below mentioned steps.
    Sign in, Sign out | Creative Cloud desktop app
    Click on download on Digital photography software | Download free Adobe Photoshop Lightroom CC trial
    Please share the results once done.
    Thanks,
    Atul Saini

  • How to make an applet the default one ?

    Hi everybody,
    I have a NXP JCOP41 72k JavaCard, Eclipse 3.2 with jcoptools 3.1.2, jre 1.5.
    I have read in a lot of places that it was possible to make a specific applet the default one, meaning that my applet will reply to APDUs as soon as it is powered up... I don't want to go through the Card Manager and select my applet everytime it is power up.
    How can you do this, and at what level will I have to do it ?
    This is what I already tried:
    1- I have read through the GlobalPlatform specification, and they say that it is possible to put a certain flag on a application in order to make it default. So this is what I tried... I had my card in the OP_READY status mode, and I tried to put the application in the 'LOCKED' mode in order to make it the default application using the set-status APDU command from GlobalPlatform. It did not worked.
    2- After that, I tried something else. I put the card in the SECURED status mode, and I tried to put the application in the 'LOCKED' mode, but then I think I locked the card. I was not able to authenticate to the card anymore using the init-update command and the 255 keyset. How come the default keyset is not available anymore when you are in SECURED mode ???
    Again, how do you make an applet the default one ???
    Thanks a lot for answering,
    Richard Leroy

    Hi everyone,
    I finally have found the answer to my question, and felt important to let everybody know it ...
    In order to make an applet the default one, you need to upload it and install it with specific privileges...
    With gpshell, you need to add "-priv 4" to the "install" line in order to activate the default option. This will enable a specific flag for the applet.
    Once this is done, you will have to select the applet with the appropriate APDU, and your applet will be the default one.
    You can also get more informations on globalplatform spec 2.1.1 on page 107.
    Richard

  • How to make an applet load user-defined package?

    How to have an applet load user-defined package?
    I have packages in their own directories, and the applet compiles and links with them, by use of CLASSPATH env variable. But when it comes time to run, it ignores that and does not know where the classes (in the packages) are.
    If I don't use packages and put all code in one directory, runs fine. If I use an application, I can link with and load my packages.
    I know applets can't use things like CLASSPATH for security reasons, but still, they should be able to be compiled out of several packages, why do I have to put all code together??

    OK, for reference for future newbies, here's the answer:
    use CODEBASE attribute in your html file (if on Windows server, don't use drive letter but relative path to .html file, Unix style, and put all your .class files beneath that, for example, in your .html file
    <applet
    CODEBASE="..\class
    and then have package bar Bar.class file, in ..\class\bar

  • How to make an applet to read the Text file present inside a jar

    Hi All,
    I have writen one applet named ReadFile.java which reads a text file present in the same directory and does some manipulation of text file contents.
    The applet code runs successfully when i run the applet in command prompt like
    {color:#ff0000}*java ReadFile*{color}
    And i am getting the needed results.
    Then i made a jar file with the applet code and text file as
    {color:#ff0000}*jar cvf rf.jar ReadFile.class File1.txt*{color}
    Then i have inlcuded this applet inside a html file as
    {color:#ff0000}*<applet code= "ReadFile.class" width= "500" height= "300" archive = "rf.jar" ></applet>*{color}
    after this when i load the html file, the applet code is not executed fully. Its throwing FileNotFoundException: File1.txt.
    Applet is not recognizing trhe text file present inside the jar file.
    Can any body explain me how to overcome this problem. Any setting needs to be done for making the applet indicate the presence of Text file inside the jar file.

    what code in your applet gets the text file and reads it? are you using getResource or something similar?

  • How to make Mail automatically choose available smtp server?

    I have recently switched to using Mail from Thunderbird.  In general I'm happy with the move in a number of ways, but one feature of Mail annoys me: I use a laptop as my sole computer and when I'm at work I use the smtp server at work because it responds faster than my Comcast provider. When at home, I have to use the comcast smtp because the work server won't accept outgoing mail from outside the university domain. 
    I have my accounts set so that they may use multiple smtp servers (the "use only this server" box is NOT checked), yet each time I switch locations, Mail tries to use the last used server, but then won't automatically swtich to the other.  I have to respond to a dialog box asking which to use. 
    Is there a way to set it to automatically switch smtp servers if it doesn't get a response from the first one it picks?
    Thanks! 

    You would not use JavaMail to make a mail server. JavaMail is for mail clients.

  • How to make a composite ID available for inclusion in a BPEL Email

    We have a situation where the response of a web service is such that we'd like to send out a notification. I've done that without problem using an email notification component in our BPEL process. However, I would like to provide the id of the composite back to the email reader so that they can return to the console and find the process in question. I can see how to retrieve the bpel instance using embedded java. But I don't see how to retrieve the composite instance. Is there a way to do that?
    Apologies....I meant to mention that the system we are using is SOA Suite 11g. 11.1.1.1.0.
    Edited by: crisl on Mar 5, 2010 5:30 AM

    Thanks a bunch! I went through the function droplists available in the Assign component and couldn't find any such method. But when I just typed it in as you described, it worked perfectly.

  • How to make an applet with curved edges in the browser

    Hi all,
    I m doing an applet application in which i want to show an image inside a player in the website. The edges of the player is designed in curved shape. So i too wanted to do an applet with curved edges. Otherwise my applet and the images are coming out of the player... do any body have come across such a problem. please give me some suggestions. Awaiting for your suggestions and solutions. If u don't understand what i m trying to say let me know..
    Thanks...

    I tried to get the screen height -1 and subtract from
    all the ys in my applet but it doesnt work all the
    time. I am drawing shapes and stuff with an algorithm
    I wrote for class.
    is there a way to get origin(0,0) to the lower left
    screen easily.
    thanksThe only way I can think of would be write a method to convert a "normal" y coord to an applet y coord. That would probably end up being a huge pain in the ass, since you would have to pass all y coords through it before using them, so I suggest you just get used to y being upside down.

  • How to make my applet run in eclipse browser..?

    I wrote an applet and it works fine when it is run as an applet in eclipse galileo.I need to embed it in a web page.I have searched this forum but unable to find adequate information.It is also not reporting any errors.Html file looks as below
    <html>
    <head>
    <title>Echo Applet</title>
    </head>
    <body><h1>This is an example of applet</h1>
    <applet code=com.mypackage.EchoApplet.class width="400" height="400"></applet>
    </body>
    </html>Directory structure is as below
    MyFirstApplet
           ->Java Resources:src
                 ->com.mypackage
                          ->EchoApplet.java
                 ->Libraries
          ->WebContent
                ->META-IMF
                          ->MANIFEST.MF
                ->WEB-INF  
                          ->lib
                          ->web.xml
                ->MyFirstApplet.htmlConsole of html file shows as below
    26 Aug, 2009 8:09:04 AM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8084
    26 Aug, 2009 8:09:04 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 2036 ms
    26 Aug, 2009 8:09:04 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    26 Aug, 2009 8:09:04 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.0.25
    26 Aug, 2009 8:09:04 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    26 Aug, 2009 8:09:06 AM org.apache.catalina.core.StandardHost getDeployer
    INFO: Create Host deployer for direct deployment ( non-jmx )
    26 Aug, 2009 8:09:06 AM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8084
    26 Aug, 2009 8:09:06 AM org.apache.jk.common.ChannelSocket init
    INFO: JK2: ajp13 listening on /0.0.0.0:8085
    26 Aug, 2009 8:09:06 AM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/53  config=null
    26 Aug, 2009 8:09:06 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1992 msany clue of where i might have gone wrong??Thanks in advance..!

    hello,
    the very first thing is the html console always look the one which you have posted here.it tells that server is started.
    directory structure is also ok.
    wi think the problem lies in the html file.After defining applet class you have to specify the jar file of your appletin the mannerarchive = "yourapplet.jar" have you any libraries with your applet? if yes then you have to include it in archive information
    i would like to know when you run this application does internet explorer opens if yes then can you tell me the error it is giving

  • How to make the uploaded content available to learners.

    Dear Experts,
    I'm new to this area on SAP-LSO.
    With the help of some experts from this forum, I was able to successfully load a SCORM compliant learning content to the master repository through the authoring tool. The content is now visible in the KM directory in my portal.
    Now the problem is,
    How do I allow a learner to see/play this content ?
    i.e,
    a>How and what roles are to be provided for the user who is a learner?
    b>How will the learner be able to see/play the uploaded content?
    c>Is the content player to be accessed seperately to play the uploaded SCORM Content? If yes, how and where?
    Any help in this regard would be highly appreciated.
    Regds,
    Srini
    P.S : I tried using, the std BSP Application, HCM_LEARNING and previewd the page LESO.htm but I could'nt find the content which I had uploaded in KM folder through the authoring tool.

    How do I allow a learner to see/play this content ?
    i.e,
    a>How and what roles are to be provided for the user who is a learner?
    Give standard role:
    SAP_HR_LSO_LEARNER
    SAP_HR_LSO_COURSEPLAYER
    b>How will the learner be able to see/play the uploaded content?
    Link the uploaded content with a WBT course type. When you create course type WBT, there will be a mandatory field about course content.
    And put the WBT course type into a course catalog.
    You also already set SAP Portal. So, learner will login to SAP Portal and access Learner Tab. There, course catalog is stored, and learner can book the course type. After book, there is a button to access the material.
    c>Is the content player to be accessed seperately to play the uploaded SCORM Content? If yes, how and where?
    Content player is needed to play the uploaded SCORM content, especially when we create the material using Authoring Tools. But, if learner already in SAP Portal and access the content, Content Player doesn't need to be executed separately.

  • How to make Fullscreen Applet

    Hello ,
    I am making slid show but need to be have full screen option . I searched for some example to find best way to do this task . I found this code but it`s not make full screen option when i am try to add to my code . I need someone to guide me for which way is best and high performance for this task .
    Thanks

    Sorry code is here , sorry if is not good .
    package slidshow;
    import javax.swing.*;
    import java.awt.*;
    import java.net.*;
    import java.io.*;
    public class Display extends JApplet {
         private Window mainWindow;
         private JPanel topPanel;
         private Panel bottomPanel;
         private URL myURL;
         private JEditorPane editorPane;
         public void init() {
              mainWindow = new Window(new Frame());
              // Get screen resolution and set mainWindow to fullscreen
              Dimension ss = Toolkit.getDefaultToolkit().getScreenSize();
              mainWindow.setBounds(0, -128, ss.width, ss.height + 256);
              //set up main window layout
              mainWindow.setLayout(new BorderLayout());
              /** Get bounds of screen so we can ultimately split the
                   window into two horizontally.
              GraphicsConfiguration gc = mainWindow.getGraphicsConfiguration();
              Rectangle bounds = gc.getBounds();
              double topPanelHeight = (ss.height * 0.5)+128;
              double bottomPanelHeight = (ss.height * 0.5);
              //Window size should be an integer (i.e whole number)
              int intTopHeight = (int)Math.round(topPanelHeight);
              int intBottomHeight = (int)Math.round(bottomPanelHeight);
              //Create Top Panel
              topPanel = new JPanel();
              topPanel.setPreferredSize(new Dimension(ss.width, intTopHeight));
              topPanel.setBackground(Color.blue);// May make this tranparent in the future
              topPanel.setLayout(new BorderLayout());
              //find out what the current directory structure is
              String codeBase = getCodeBase().toString();
              // Get page to load into top panel.
              try{
                   myURL = new URL(codeBase + "hi.html");
              } catch (MalformedURLException mue) {
                   System.out.println("Improper URL: " + mue.toString());
              // Create Editor Pane for top panel
              try {
                editorPane = new JEditorPane(myURL);
                editorPane.setBorder(null);
                editorPane.setEditable(false);
              } catch(IOException ioe) {
                System.err.println("Error displaying " + myURL);
              //Create JScrollPane, and place EditorPane in it.
              JScrollPane js = new JScrollPane(editorPane);
              js.setBorder(null);
              //Add Scroll pane to top panel
              topPanel.add(js, BorderLayout.CENTER);
              //Create bottom panel
              bottomPanel = new Panel();
              bottomPanel.setBackground(Color.black);
              bottomPanel.setPreferredSize(new Dimension(ss.width, intTopHeight));
              // add panels to window
              mainWindow.add(topPanel, BorderLayout.NORTH);
              mainWindow.add(bottomPanel, BorderLayout.CENTER);
              // make this visible
              mainWindow.setVisible(true);
    And now I notice your screen name, I recall you made a very odd reply to an ongoing thread in which I am also participating. What was with that? Sorry I didn`t understand what is your question ?

  • How to make New Folder command available as No as the default value for document libraries

    Hi, is there a way to make this option as No as the default value instead of Yes, for all new document libraries? Perhaps with a powershell command for an entire site collection?

    Hi Cartin,
    I would suggest to create a library template of an empty library with this settings as NO. Use this template for creating new libraries.
    For updating existing libraries you can use:
    $Site = Get-SPSite http://Site
    $ListName = "library Name"
    $Site | Get-SPWeb | ForEach-Object {
    $List = $_.Lists[$listName]
    $List.EnableFolderCreation = $false
    $List.Update()
    $Site.Dispose()
    You can modify the above script for you need.

  • How do I make an Applet read a file on my web host?

    How do I make an Applet read a file on my web host?
    I am wanting to put a file on my web host that has usernames and user details and other stuff on it...
    I was wondering whether anyone knows how to make the Applet open a file on my webserver, check if the username exists, if not add to the file the username and details?
    thanks

    URL myURL = new URL(getDocumentBase(), filename);
    InputStream myInputStream = myURL.openStream();
    DataInputStream dis = new DataInputStream(myInputStream);
    String oneLine = dis.readLine();
    Use output stream for writing..
    hope this works !!!

  • How to make Steam library available for all users

    Hello!
    Can someone tell me - how to make my Steam library available to ALL users of my iMac without sharing a password?
    Or any other program of my account?

    Hard drive level Users/Sharing - Do a Get Info on the folder (command - I) and set permissions to everyone read/write, then click the gear at the bottom - Apply to Enclosed Items.

Maybe you are looking for

  • SUS dont work!

    Hi, my SUS dont work. i have entered for all clients WGM the SU LInk: http://server.company.com/sucatalog.index but the client always uses the Apple SUS of web. i checked in the library of the client the su link... and everything was pointing to my s

  • Step by step to Windows 7 running XP as well.

    Surely I can't be the only one wanting to do this? I want to run XP and W7 side by side whilst I test programs etc, so the question is this: Can I run Itunes on both OS on the same computer? I'd like to be running whichever OS and just use Itunes usi

  • How to import songs onto iPod from two computers?

    this probably was posted before, but is there anyway to upload songs from two different computers? i have songs on my mom's computer that i dont have on my dads.

  • Manual Running Total won't Reset

    I've created the following formulas to create a manual running total.  However, I can't get the total to reset.  Instead, the total gets added to each time the group appears.  What am I missing?  GROUP 1 HEADER  ================ //placed this in grou

  • Error in transport - Urgent

    Hi! I've transported my requests from Dev. box to testing. Method of Execution is ended with warning but after that I got a error in the next step " Deleted from buffer". There is no text displayed in the log to check the details abt this error. Any