Is it possible to run a java application within a web browser?

Hello everyone here! I have a question about running a java application within a web browser and I would appreciate it very much if anyone here can give me some answers.
I have a standalone java application written with AWT. Basically this free application lets users to select spectral lines from a big file based on some criteria and plot those selected lines. Yes, it is a very simple application. Now I want to run this application within a web browser so that users don't need to download the application from the ftp site and thus don't need to install in their machine. Is it possible to run this application within browser? If yes, can we get the same plotting function as we run the application separately and where should I start out?
Thanks in advance!
kuilian

Please see the signed applet discussion group for details of how to avoid the applet security restrictions. You can sign the applet, or use the policy file containing {AllPermission} for testing purposes (though not suitable for widespread deployment).
Regards
Matthew

Similar Messages

  • Is it possible to run a java application/program forever?

    Hi,
    Is it possible to run a java program forever?
    if so please reply how it is possible
    thanks in advanced.

    There was a computer with many processes.
    Some processes came and went: they exited either voluntarily by calling exit(2),
    simply returned from their main method, or were terminated by a signal
    like SEGV, TERM, and the dreaded uncatchable KILL.
    Other processes strove to eternal running: they detatched themselves from their
    controlling terminals, ignored the HUP signal or even interpreted
    it as an occasion to reread their configuration instead of
    taking it as a notification on the line's "hanging up"
    or more generally the controlling pseudo or virtual terminal's being closed.
    Resources were acquired and released, processes came and went, some stayed though.
    Long-running processes were experienced to writing ever growing "access" and "error" logs.
    Rumors went around about "garbage collection" and "memory leakage".
    The processes started to think: "What if not all resources get released?
    What if the available memory shows an overall shrinking trend
    and in the long term it will be totally exhausted?
    What if the disk space get freed in a lesser pace as it gets consumed?
    How shall we survive in a Universe where there is no space is left
    even for sysem logs?"
    The processes made the observation that they were identifed by their process id's
    (pid of the integral type pid_t), and the only way they to create a process
    was the fork(2) system call, which returned 0 to the child,
    the positive pid of the child to the parent, and a negative value on error.
    Thus the pid could only be postive numbers.
    The processes observed the one "init" with pid=1, the smallest thinkable pid.
    They asked: "Will it run forever? If not, what will become of us?
    If a process exits without wait(2)-ing for its children,
    who will inherit it if "init" no longer exists?"
    They came to the conclusion that no process could have existed before this one,
    so their universe began once, was not infinite in the past.
    They called this event (which lead to the existance of the process "init"
    and actually their whole universe) "The Big Bang" or "The Big Boot".
    "Is it possible that different, parallel universes exist?
    Is it possible that different, parallel universes arise with different laws and system API's?"
    - they asked.
    Will their universe exist for eternity?
    If yes, in what conditions? Will it eventually run out of the resources,
    will it become cool and frozen with no memory, no available disk space,
    with no resources left drifting along with no activity?
    Or will their universe come to an end, to a condition where
    signals (TERM and then KILL) fly to all processes,
    all file system get umounted, all activity stops?
    "Big Crash" or the "Big Shutdown" they called this scenario.

  • Running a Java application from a web page?

    Hi
    Could anyone please tell me how do i launch a java application (which is not an applet) by clicking a button on a web page?
    Does the application have to be converted to .exe? And if so how do i do it?
    The application is on my PC not on a server.
    Thanking u in advance for ur help.

    Hi dins19
    Java WebStart is a pretty good technology for that purpose. Installing and launching a Java application on a local machine has always been a burdensome task. JWS really remedies that. The cool thing about JWS is that it works for both web and client applications. The technology introduces a new file format called jnlp which tells a program called "Java Web Start Application Manager" where the resources, typically a single jar file, are located. Check out
    http://java.sun.com/products/javawebstart/
    for a nifty demo.
    Hope this has been of some help.
    Morten Hjerl-Hansen

  • How to launch my java application in a web browser?

    Hi. I try to launch my java application, e.g. "HellowWorld.java", using web browser.
    1. How can I change my java application program to java applet in general way?
    I read "Java: An Introduction to Computer Science and Programming, Third Edition"
    by Walter Savitch and found page 803 - "Converting a Swing application to an applet".
    My question is how I can know which class should be removed or not such as using JApplet instead of JFrame. Are there general rules about this?
    2. I found "AWT only" tutorial had some example lauching application using "AppletButton".
    How can I use this method to launch "HelloWorld.class"?
    http://java.sun.com/docs/books/tutorial/information/download.html#OLDui
    (after extracting zip file) -> ../OLDui/layout/card.html
    3. (continued 2) Can I use above method to embed applet into web browser?
    For example, java Swing application -> applet using "AppletButton" -> web browser using "<applet></applet>" tag.
    I'd appreciate any partial anwers of these questions or other suggestions.
    Thanks.

    Thanks! Here is what I got from your help.
    * HelloWorldSwing.java is a 1.4 example that
    * requires no other files.
    import javax.swing.*;  
    import java.awt.*;                //for Container class    
    //  public class HelloWorldSwing {
       public class HelloWorldSwingToApplet extends JApplet {
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
    //    private static void createAndShowGUI() {
          private void createAndShowGUI() {
            //Make sure we have nice window decorations.
    //        JFrame.setDefaultLookAndFeelDecorated(true);
            //Create and set up the window.
    //        JFrame frame = new JFrame("HelloWorldSwing");
    //        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         Container frameApplet = getContentPane();
            //Add the ubiquitous "Hello World" label.
            JLabel label = new JLabel("Hello World");
    //        frame.getContentPane().add(label);
         frameApplet.add(label);
            //Display the window.
    //        frame.pack();
    //        frame.setVisible(true);
          public void init() {
           createAndShowGUI();
    /*    public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

  • Can programs run from java that is on web browser

    i have written a program and used autorun to run when a cd is put on but not every body will have java on their computer a firend told me that most people will have java on the web browser that will be able to run the cd is this true or will i have to give download instructions to download jav first. this is obviously not ideal as i want people to be able to run the program by putting the cd in and nothing else.

    1. You can create a Java applet, which is a Java program that runs
    from a web page. It will need to be a signed applet. Your autorun will start the browser with the web page carrying the Java applet.
    I don't think this is optimal.
    2. Search for "embed JRE", which describes how you can supply your
    private JRE with your program. It does not install the JRE, nor does it
    care if one is already installed. I did this many times, there is no problem
    at all, but here I have no idea whatsoever what happens if your JRE originates from write protected media. I guess it should work. Experiment or wait for others to see what they think.

  • MIdlet 2.0 - is it possible to run a java application in background

    Hallo everyone
    I am developing a application that i want to run in background. The application is going developed for platform 40???
    I hope that someone could help me out.. this is every important..

    Hallo everyone
    I am developing a application that i want to run in background. The application is going developed for platform 40???
    I hope that someone could help me out.. this is every important..

  • Is it possible to run a java program without using the command prompt?

    Hi,
    I was wondering whether it is possible to run a Java program (not an applet) without using a command line in the command prompt?
    Basically I want to run a program that will be continually running in the background and hence I don't want to have a command prompt screen loaded up as well - I just want the program to be running in the task bar.
    I know how to run the program in the task bar - but I still need to launch the program from the command prompt - is there anyway I can get a program running without having to start it from the command prompt?
    Cheers

    Or create a desktop shortcut (in Windows) or an application launcher ( in Linux GUI).

  • Running a Java application from a Swing GUI

    Hi,
    I was wondering if there is a simple way to run a Java application from a GUI built with Swing. I would presume there would be, because the Swing GUI is a Java application itself, technically.
    So, I want a user to click a button on my GUI, and then have another Java application, which is in the same package with the same classpaths and stuff, run.
    Is there a simple way to do this? Do any tutorials exist on this? If someone could give me any advice, or even a simple "yes this is possible, and it is simple" or "this is possible, but difficult" or "no this is not possible" answer, I would appreciate it. If anyone needs more information, I'll be happy to provide it.
    Thanks,
    Dan

    I don't know if it is possible to run the main method from another Java app by simply calling it...
    But you could just copy and paste the stuff from your main method into a new static method called something like runDBQuery and have all the execution run from there.
    How does that sound? Is it possible?
    What I'm suggeting is:
    Original
    public class DBQuery{
    public static void methodA(){
    public static void doQuery(){
    methodA();
    public static void main(String[] args){
    // Your method calls
    //Your initializing
    doQuery();
    }Revised:
    public class DBQuery{
    public static void methodA(){
    public static void doQuery(){
    methodA();
    public static void doMyQuery(){
    // Your method calls
    //Your initializing
    doQuery();
    // No main needed!!
    //public static void main(String[] args){
    // Your method calls
    //doQuery();
    //}

  • How do i run a java application in jdk1.3

    im trying to run a java application in jdk 1.3. I created it in jbuilder and i was trying to use the applet viewer.

    http://java.sun.com/j2se/1.3/docs/tooldocs/win32/appletviewer.html
    Jesper

  • How can I run a java-application on starting of Windows 2000

    How can I run a java-application without any user on starting of Windows 2000?
    For example, if the computer is restarted and nobody enter into it yet, my java-application should run anyway.
    How can I do that?

    Hi, you have to put it in a Windows service.
    To do this you have a program, Srvany.exe that allow to insert a .exe or .bat program in a Windows service.
    For example, i develop a program, TomcatGuardian and i put it in a service because i need to run it in a server without Administrator logged in.
    Regards,
    Ivan.

  • Running a Java application from web browser

    Hi,
    I'm not sure if this is the right place to put this, and it probably isn't, but I don't really know what else to do at the moment.
    I have a problem. I've written all these nice and pretty Java applications that do all this complicated junk that makes me proud. However...I have no idea how to actually run those applications.
    I've looked at guides on Java applets, Java Web Start, Java Server Pages, etc, and I still am not sure. JSP looked like the best option, until I figured out I can't use it with my web server. So, I've pretty much hit a wall here.
    If anyone could shed some light on this, I would be very appreciative. All I want is for a certain application to run when a user clicks a button on a simple HTML page. That's all I want...yet it seems so hard.
    Is there a simple way to do this, or do I need to use JWS or something and configure all these JARs and JNLP and classpaths and everything under the sun (no pun intended)?
    Again, I apologize if there is a better forum for this; I am just very confused right now and feel like I've hit a brick wall. If anyone can give me any advice, or point me in a good (easy) direction, I would truly be grateful.

    If anyone could shed some light on this, I would be
    very appreciative. All I want is for a certain
    application to run when a user clicks a button on a
    simple HTML page. That's all I want...yet it seems so
    hard. There's a lot of hidden details that make it so hard. What computer will run the application when the button is clicked? If the application will run on the client computer (within the web browser) there has to be a mechanism for allowing arbitrary code to be downloaded, verified and executed on any number of different target platforms. This is the problem that Java Applets address. Mostly this is a security issue, since a simple HTML page being able to run arbitary code without user interaction or approval is going to cause the world to be overrun by computer virii. There's also the multi-platform issue, but in many cases that can be avoided by requiring the client to use a single platform (the MS approach).
    If the application will run on the server, then the client code is much less difficult, as only a basic web browser is needed, and the server code is complicated, since it needs to keep track of multiple clients at the same time and process data in a request-response fashion.
    From the end-user's point-of-view, it certainly is simple though. Press the button and voila!
    "Any technology which is distinguishable from magic is insufficiently advanced"
    Brian

  • Running a java application from a java application

    hello ,
    please who knows how i can run a java application 'B' from inside another java application 'A' and get the error messages (if any) from the application 'B'

    how are you executing application B from application A? Please explain the java code you are using?

  • Running a java application in command prompt

    hi, I'm new to this forum.
    I would like to know what exactly needs to be specified to run a java application in a normal DOS command prompt.
    I know it is something like:
    javaw -classpath .\class GUI.applicationGUI
    where applicationGUI is the main class, right? What else do I need to do, since I have some other non-GUI classes that I need, inside the class folder ?
    Thanks for your time.

    You need to import those classes. And you need to make packages.
    In classes 1, 2 and 3 put:
    package class;
    In class 4 put;
    package class.GUI;
    Then you need to make the connection:
    In classes 1,2 and 3 put:
    import class.GUI.*;
    In class 4 put:
    import class.*;
    Compile each directory separately while in the respective directory. javac *.java
    Then go back to the directory above the directory "class" and run
    java class/GUI/name_of_file_containing_main_method

  • Can we run a java application using Runtime.exec()?

    Can we run a java application using Runtime.exec()?
    If yes what should i use "java" or "javaw", and which way?
    r.exec("java","xyz.class");

    The best way to run the java application would be to dynamiically load it within the same JVM. Look thru the class "ClassLoader" and the "Class", "Method" etc...clases.
    The problem with exec is that it starts another JVM and moreover you dont have the interface where you can throw the Output directly.(indirectly it can be done by openong InputStreams bala blah............). I found this convenient. I am attaching part of my code for easy refernce.
    HIH
    ClassLoader cl = null;
    Class c = null;
    Class cArr[] ;
    Method md = null;
    Object mArr[];
    cl = ClassLoader.getSystemClassLoader();
    try{
         c = cl.loadClass(progName.substring(0,progName.indexOf(".class")) );
    } catch(ClassNotFoundException e) {
    System.out.println(e);
         cArr = new Class[1] ;
         try{
         cArr[0] = Class.forName("java.lang.Object");
         } catch(ClassNotFoundException e) {
         System.out.println(e);
         mArr = new Object[1];
         try{
         md = c.getMethod("processPkt", cArr);
         } catch(NoSuchMethodException e) {
         System.out.println(e);
         } catch(SecurityException e) {
         System.out.println(e);
    try {            
    processedPkt = md.invoke( null, mArr) ;
    } catch(IllegalAccessException e) {
              System.out.println(e);
    } catch(IllegalArgumentException e) {
              System.out.println(e);
    }catch(InvocationTargetException e) {
              System.out.println(e);
    }catch(NullPointerException e) {
              System.out.println(e);
    }catch(ExceptionInInitializerError e) {
              System.out.println(e);
    }

  • Is it possible to run the java program without main?

    Hi,
    Is it possible to run the java program without main?
    if anybody know please tell me, how it is possible.
    Regards,
    Ramya

    Hi,
    Is it possible to run the java program without main?
    if anybody know please tell me, how it is possible.
    Regards,
    RamyaWhy do you ask? It sounds like an odd question. Your program can be an applet and it doesn't need a main method in that case.
    Kaj

Maybe you are looking for

  • Upgrading the Features framework in SharePoint foundation 2013

    Hi all, I have a question, how can I upgrade the features of Sharepoint foundation 2013. In Sharepoint Health Analyzer, there is an error "missing server side dependencies" and description of this error it has been said that I need to upgrade the fea

  • Error in BD64 while partner generation and model distribution

    Dear all, My scenario is as follows. Transfer MATMAS from TTP105 to TTP100 system. The steps I followed so far are as below. <b>On the Sender system TTP105</b> <b>---- </b> 1) <b>BD54</b> - Created the logical systems for sender & receiver (TTP100 an

  • Using multiple airport expresses to supply music to stereo

    I currently have an airport express plugged into my router via ethernet to distribute a wireless network. I want to add another airport express in the lounge room to connect to my stereo. Will this work?

  • Product Configuration - How to relate a z-table to a product characteristic

    Hi All, We have generated different z-tables for different types of products. Every table has more than 200 entry, we want to relate a characteristic to this table, so that we won't enter these characteristics manually and it will be automatically fe

  • Managed Server not accepting HTTP requests

    We restarted our managed server (it had Oracle Identity Analytics deployed) and received an error after the application came up (pasted below). The application seems to be running but when I attempt to access it I'm getting a Page Not Found error. I