Applet that launches application... possible?

i want to launch a java application (in the form of a jar file) that is already on my hard drive using an applet. i want the application to run in its own DOS window locally. is this possible, if so, how? (i will sign the applet, so that should not be an issue)
thanks for the help...

Just construct a JFrame, add stuff to it, and call show().

Similar Messages

  • Launch application like "word"

    Hello all,
    I have build an intranet with resin2.0.16 and JDK1.3.
    And in this intranet i want to launch application on client PC.
    I can run any application for the moment but only in the web server.
    Is it possible to run application on the client pc ?
    Thanks for reply
    Ibouddha

    I suppose you could create an applet that launches a program on the client. You would have to sign it to get around the security restrictions.

  • Trying to write an applet that reads/displays a file from a remote server

    Hey all,
    I'm trying to make a little applet that launches from a browser that allows me to read a file from a server, reads it line by line and displays each line, and continues to read/monitor the file until I get a specific line of text.
    I've tried to do some code and although I can read the file (and display it), I can't seem to detect the end string (the if statement that tests if the line == "--END--" seems to have no effect, i.e. constant false).
    I have a feeling the approach I took is wrong since this seems insecure and just looks bad (I've seen stuff that seems to indicate I need to do something with implements Runnable or something.) Even if anyone doesn't have the time to actually do the framework of this, if they could perhaps outline an approach and any necessary topics I need to look at (such as
    1. Go and read the threads tutorial.
    2. Go and read the X section in the Y tutorial.
    3. Check out this <link>, as they seem to be doing something similar to what you're doing.
    Thanks in advance.
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    import java.net.*;
    public class FaxTest extends JApplet {
         JTextArea area;
         JScrollPane pane;
         String display;
         String old_display;
         String tmp;
         boolean end = false;
         java.util.Timer FileTimer = new java.util.Timer();
         TimerTask FileReadTask = new readFile();
         public void init() {
              area = new JTextArea();
              area.setWrapStyleWord(true);
              area.setLineWrap(true);
              area.setEditable(false);
              pane = new JScrollPane(area);
              Container c = getContentPane();
              c.add(pane);
              FileTimer.schedule(FileReadTask, 500,5000);
         public void stop()
              FileTimer.stop();
         class readFile extends TimerTask {
              public void run() {
              java.util.Timer timer = new java.util.Timer();
              TimerTask task = new FaxUpdate();
              timer.schedule(task, 1000,1000);
              try {
              display = "";
              String filename = getParameter("FILENAME");
              URL url = new URL(filename);
              InputStreamReader in = new InputStreamReader(url.openStream());
              BufferedReader br = new BufferedReader(in);
              while( (tmp = br.readLine()) != null) {
                   if (tmp == "--END--\n") end = true;
                   display += tmp;
              catch(IOException error) {
              display = "Error" + error;
         class FaxUpdate extends TimerTask {
              public void run() {
              if(end == true) {
                   area.setText("finito");
              else area.setText(display);
    }

    use tmp.equals("--END--\n") instead of tmp == "--END--\n"
    The == means does tmp reference the same object as "--END--\n" which will probably never be true. Using the equals method means does tmp contains the same characters as "--END--\n"

  • When I try to launch itunes I get an error mesage saying that Apple application support was not found and suggests that I uninstall and re-install it, but that doesn't work

    When I try to launch itunes I get an error mesage saying that Apple application support was not found and suggests that I uninstall and re-install it, but that doesn't work

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    Start with the section Install missing components which should address your particular error. Otherwise the steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If you've already tried a complete uninstall and reinstall try opening iTunes in safe mode (hold down CTRL+SHIFT) as you start iTunes, then going to Edit > Preferences > Store and turning off Show iTunes in the Cloud purchases. You may find iTunes will now start normally.
    tt2

  • I just bought a new iMac and used the Migration Assistant to transfer my files. Initially, all was working, but now a week later, I get the message that the application manager is missing, and I cannot get Photoshop and InDesign to launch. I do not want t

    I just bought a new iMac and used the Migration Assistant to transfer my files. Initially, all was working, but now a week later, I get the message that the application manager is missing, and I cannot get Photoshop and InDesign to launch. For my personal use, I did not a need to join Creative Cloud. Have you any suggestions for a work-around?

    Try to install Adobe application Manager from below link and check
    Adobe - Adobe Application Manager : For Macintosh : Adobe Application Manager : Thank You

  • Can you use an application in hyper-v environment in Windows server from each client computer or that is not possible?

    hi,
    I like to know besides running 2 or more operating systems,like exchange or SQL  ect .
    what other benefits it has for example when you install 2-3  applications in t hyper_v environment can you use those applications from each client computer or that is not possible at all. ( I don't mean cloud )
    thanks
    johan
    h.david

    thanks,
    so , now what is the benefit of hyper-v role on essential 2012r2 .  it that means that I can install only one operating system on it only one instance and no more. also I can run some applications on this server  just like you say with RDP licence
    for each user to acces this virtual server!
    and if I want more instances then I have to get datacenter.
    johan
    h.david

  • Launching applications from an applet

    How do you launch applications from an applet? For example,launch a notepad exceutable when you click on a button (an awt component)?

    Hi,
    you can launch an application from the applet using the Java RunTime environment.
    Runtime.getRuntime().exec(applicationName);
    But to do this the applet needs permissions.It should be a trusted applet.

  • When I try to launch iTunes is says that the application can not be opened

    When I try to open iTunes it says that the application can not be opened, that the required folder can not be found. On my husbands log-on iTunes will open. I am so confused. Please help!!!

    Hello Keaton44,
    I recommend taking a look at this article named iTunes: Finding lost media and downloads found here http://support.apple.com/kb/ts1408
    If you need to re download the movies you bought from iTunes you can do that free of charge with this article.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/ht2519
    Regards,
    Sterling

  • Is possible hide the front panel of a vi that launch other vi?

    We have a vi that launchs other vi( modal subvi, that shows his front panel).
    But while is running this subvi, I want to "hide" the vi, and when the subvi finish we want to show the vi's front panel.
    How can we do it? I check property node /Invoke node functions, but I don't find any good solution!
    Any idea?
    Best regards,
    Graci

    Here is a vi that does exactly what you are asking for.
    Sorry for the french comments... It should not be to difficult to understand the code.
    You must call this vi twice in the subvi.
    1) With the input set to "Masquer" (--> hide) at the beginning of the execution of the subvi.
    2) With the input set to "Afficher" (--> show) at the end of the execution of the subvi.
    Attachments:
    Afficher et cacher face avant.vi ‏35 KB

  • Soap and Applets? Is it possible?

    Is it possible to use SOAP in a java applet, without having a massive
    JAR file that the user is required to download? With my current applet,
    I keep on getting the following exception:
    java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException
    What I'm trying to do is have an applet that gets downloaded to the
    client that gets some page info via SOAP from a .Net web service with
    a SQLserver database. Any ideas? Is this possible? It should be, as
    it SHOULD be just XML over the wire. Or should I try something other
    than SAAJ?
    This is my current applet. Anyone see any bugs that would prevent
    this from running as an applet?
    import javax.swing.*;
    import java.awt.*;
    import javax.xml.soap.*;
    import java.net.URL;
    import java.util.Enumeration;
    import java.util.Iterator;
    public class BApplet extends JApplet
         private String heightStr;
         private String widthStr;
         private String pageNameStr;
         private JTextArea tArea;
         public void init()
              heightStr = getParameter( "height" );
              widthStr = getParameter( "width" );
              pageNameStr = getParameter( "pageName" );
              tArea = new JTextArea();
              tArea.append("testing\n testing\n testing" );
              JScrollPane sPane = new JScrollPane( tArea );
              Container cp = getContentPane();
              cp.add( sPane );
              try
              SOAPConnectionFactory scFactory =     
              SOAPConnectionFactory.newInstance();     
              SOAPConnection con = scFactory.createConnection();
              MessageFactory factory = MessageFactory.newInstance();     
              SOAPMessage message = factory.createMessage();
              SOAPPart soapPart = message.getSOAPPart();
              SOAPEnvelope envelope = soapPart.getEnvelope();
              SOAPBody body = envelope.getBody();
              Name bodyName = envelope.createName( "getPageData", "PageData",
                         "http://www.blah.com/BService");
              SOAPBodyElement bodyElem = body.addBodyElement( bodyName );
              Name name = envelope.createName("pageName");
              SOAPElement symbol = bodyElem.addChildElement(name);
              symbol.addTextNode("Home");
              URL endpoint =
                   new URL( "http://www.blah.com/BService");
              SOAPMessage response = con.call(message, endpoint);
              con.close();
              SOAPPart sp = response.getSOAPPart();
              SOAPEnvelope se = sp.getEnvelope();
              SOAPBody sb = se.getBody();
              Iterator it = sb.getChildElements(bodyName);
              SOAPBodyElement bodyElement = (SOAPBodyElement)it.next();
              String lastPrice = bodyElement.getValue();
              tArea.append(lastPrice);
              catch( java.net.MalformedURLException mEx )
                   tArea.append( mEx.getLocalizedMessage());
              catch( javax.xml.soap.SOAPException sEx )
                   tArea.append( sEx.getLocalizedMessage());
    the html file is as follows:
    <html>
    <head>
    </head>
    <body>
         <applet code="BApplet" width="310" height="310">
         <param name="pageName" value="home">
         </applet>
    </body>

    Consider this article (Applet to Servlet communication) hope this will help to solve Applet to SOAP communication problem.
    Applet File (TestApplet.java )
    import java.applet.*;
    import java.net.*;
    import java.io.*;
    import java.awt.*;
    public class TestApplet extends Applet{
    private String line;
    public void init () {
    try {
    URL url = new URL(
         "http://127.0.0.1/servlets/test?name=TestApplet");
    BufferedReader in = new BufferedReader(
         new InputStreamReader(url.openStream()));
    line = in.readLine();
    in.close();
    }catch (Exception e){
    e.printStackTrace();
    public void paint (Graphics g) {
    g.drawString (line, 20, 40);
    Servlet (TestServlet.java)
    import java.io.*;
    import java.util.*;
    import javax.servlet.http.*;
    import javax.servlet.*;
    public class TestServlet extends HttpServlet {
    public void doGet(HttpServletRequest req,
              HttpServletResponse res)
              throws ServletException, IOException{
    res.setContentType ("text/plain");
    PrintWriter out = res.getWriter();
    out.println ("Hello " +
              req.getParameter("name") +
              ", servlet talking!");
    out.close();
    (web.xml)
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>
    test
    </servlet-name>
    <servlet-class>
    TestServlet
    </servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>test</servlet-name>
    <url-pattern>/servlets/test</url-pattern>
    </servlet-mapping>
    </web-app>
    for a full expalnation pls go to http://java.sun.com/developer/qow/archive/53/index.html

  • SGD - Fails to launch applications

    We are having a problem with SGD - we can not launch applications.
    We have SGD 4.2 running on a Solaris 10 server.
    We had SGD up and running good. However, we had several things occur and now it does not work. First we had to relocate our server due to building renovations. Then shortly after setting up the system in the new location, we had a hard drive fail. And unfortunately the sys admin guys did not have a good/current backup of the drive. We did however reload a backup that was about 9-months old. However it does not work correctly now.
    We can bring up the main SGD web page, can login to the system, and see the applications and function set up in object manager. However when we try to launch an application it fails.
    Looking in the error.log file we see a message "failed to open display"
    However we can not see how SGD sets the display to enable the application to be viewed over the web connection.
    Any help would be greatly appreciated.
    Thanks,
    Mike

    It is a good thing to have as much help as possible. One of the other SAs working on the problem entered his google search a little different and came up with this hit: (http://blogs.sun.com/malhar/entry/sun_secure_global_desktop_tarantella -- text below) that fixed our problem. Thought I would post it here for the next person who runs into the same problem.
    Sun Secure Global Desktop (Tarantella) "DISPLAY variable not set" error message?
    If you've been facing a problem with the erstwhile Tarantella, now Sun Secure Global Desktop (SGD), where you get don't see X applications opening up when you click the link, you're in luck.
    I have the solution.
    If you are fast enough to click on the "Show Details" button before the application loading window opens and then closes, you will see in the logs that the application cannot open because it finds that the DISPLAY variable is not set.
    Also, if you read the documentation, you will see that the admin guide explicitly asks you to NOT set the DISPLAY variable which gets set automatically. So where's the problem?
    What you need to do is this:
    1. Open the /etc/rc.d/init.d/Tarantella script in your favourite text editor
    2. Look for TTASSHCLIENT (this is usually commented out)
    You will notice that the line will look something like this
    #TTASSHCLIENT="";export TTASSHCLIENT
    3. Uncomment the line
    4. Add /usr/bin/ssh -X inside the quotes on the line to make the line look like this
    TTASSHCLIENT="/usr/bin/ssh -X";export TTASSHCLIENT
    And restart!
    That's it. You're problem is solved. I accept your thank yous in advance
    Posted at 06:23PM Dec 11, 2006 by malhar in General |
    Thanks again

  • Auto Launch Application and perform some action

    Hello Friends,
    I am working on Autoback, want to launch application and perform some action to take backup.
    Can any one please update me what all the J2ME phone supports this kind of feature and basic needs to implement Autobackup, any sample code available please let me know
    Thanks,
    Kumar.M.R

    Something sketchy.
    I had the same message appear. It resized my window to the smallest possible size (not minimize!) and when I resized it larger, it had opened a new tab with that message. It was on "c510a1.minersaver1.com" which sounds like a related site. It tried to download "avmast_2004-4_mst5.exe"and I was going to try and refind this site on my Linux box, but forgot to save the exact URL (oops!).
    Running Firefox 4.0b11 on 64-bit Windows 7 Home Premium.
    EDIT: Found a LIVE link
    http://c510a1.minersaver1.com/defender/?44a=pccfjf&8d1ad=glslkkqpgl&eb45=gpqmpkkcmc&03f67=3

  • Is there a way to stop the launching applications to come to foreground?

    Is there a way to stop the launching applications to come to foreground?
    Back with os 10.3 Panther or 10.4 Tiger the apps opened in the background. That was one of the good differences with Windows. I guess that 10.5 Leopard adopted this annoying Windows behavior. Hope it's gonna change with 10.7 Lion.
    (Of course I am looking for another solution than the AppleScript/Terminal launch that can be found on Google. I'd rather have a plist option to change if it exists!)

    I have found this page http://www.realsoftware.com/listarchives/realbasic-nug/2009-03/msg01167.html where it is proposed to add :
    <key>LSBackgroundOnly</key>
    <string>True</string>
    to MyApp.app/Contents/Info.plist
    I tried this but the app launches totally hidden in the background. Plus you have to set this behavior for every app.
    The open -g option works fine as expected.
    Still looking for a system-wide option, but it doesn't seem to exist.
    About the utility of such an option, I'll just remember you that some machine don't load apps very fast and, instead of waiting for an app to launch, the user will do something else until the app launches. You'll understand that waiting in front of a computer isn't acceptable and having a MBPro isn't possible for everyone.

  • Can't launch application - 10810

    After restarting all applications will launch, but after several minutes - when I try to launch a new application, I get the message "Can't launch application XYZ - 10810"
    If I restart, then, again, any application will launch.

    See if this helps:
    The following have been suggested as possible solutions:
    1. If you're using 10.3, you need to get rid of the following:
    /Library/Caches/com.apple.LaunchServices.6B.csstore
    ~/Library/Preferences/com.apple.LaunchServices.plist
    (where '~' means your Home directory, i.e. '/Users/yourname')
    2. If you have Virex or other virus software installed, try uninstalling it. Be sure to use uninstallers that come with the software because simply deleting the application does not fully uninstall most virus software.
    After deleting the referenced files above you will want to do a restart. Then use Disk Utility in your Utilities folder to repair permissions.

  • Overwrite class file that launched app?

    Here's a wacky one for you:
    I have a single bootstrap class file residing on customers' machines that launches a remote application. This bootstrap class file cannot be updated or changed directly. The only hope for making any changes to it is to have the remote application it launches update it.
    In more general terms, there is a Java class file X (with a main method) that launches remote Java application Y (in a jar file at a URL). Is it possible for application Y to overwrite the contents of class file X on disk?
    I realize that deploying a file that could not be easily changed was STUPID, STUPID, STUPID, but that is the situation I am now facing.
    Thanks for any help,
    Steve C.

    > Then as you indicate, the program was designed
    incorrectly and you want to find a way to make it work
    without re-designing it. So are you saying you want
    to fix a bug that's in a piece of code, but without
    changing the code? Doesn't make sense does it?Everything in the system is updatable except for that one file. That file was designed incorrectly and needs to be redesigned. So at this point I need to use the parts of the system that can be updated to update that one file that is difficult to update. Whatever mechanism that is used to change that file must run that file as it << currently is >>, and that is why I cannot use Runtime.exec().
    Thanks for your input,
    Steve C.

Maybe you are looking for

  • Vendor wise Sales & Stock Report in SAP Retail

    Hi, My requirement is: I need to develop a report for suppliers, showing them the sales and stock in each sales office. The report will be able to show the quantity in sales and stock for each sales office and a total for each one, in a determinated

  • Adobe acrobat pro xi won't open

    I purchased acrobat pro xi several weeks ago and now today i cannot open any adobe file. I get a window asking for permission for adobe to change settings on this computers. I click yes and then nothing. No selected pdf will open.

  • How do I take a date string, add "X" days to it, and display a new date?

    I have a date listed in a text string. I would like to convert it to a time stamp, and take a variable number of days, converted to seconds, added to the date, and displayed as a correct date. Example: 9/1/2011 adding 35 days is 10/6/2011. The trick

  • Freezing/Startup issue

    I've been dealing with this all weekend and wasted my whole weekend I guess. Here's the story: It all started when I updated iTunes. Never had a problem before that. I wouldn't have even updated it because I'm usually paranoid about updates anyway fo

  • How to validate date between Header and Detail Block..

    Hi All, I was trying to find a way where, suppose I enter 'from date' and 'to date' in the header block.then in detail block all 'from dates' and 'to dates' should be restricted between the dates entered in the header block. Thank you