Java Executable


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Java Executable

  1. #1
    William H Hagan Guest

    Java Executable


    I've written a simple financial calculator for a friend that executes in a
    browser. I changed the code to an application and wish to design an icon
    and execute the code via double clicking the unique icon, any ideas. By
    the by, the code runs perfectly when implemented via MSDOS command line:
    java FinCalc I just want to make it easier to execute instead of opening
    an MSDOS window and executing from there. I'm using JDK1.2.1
    Thanks

  2. #2
    Paul Clapham Guest

    Re: Java Executable

    Create a Windows shortcut to run your class. (E.g. right-click on the
    desktop and select New, Shortcut.) In the shortcut's Target field enter
    "D:\jdk1.2.2\jre\bin\java.exe FinCalc", changing the directory to the
    appropriate one for your environment. You may also have to have "-classpath
    something" before FinCalc. And you may have to put the directory where
    FinCalc is located into the shortcut's Start In field.

    William H Hagan <william_h_hagan@yahoo.com> wrote in message
    news:39ab86f0$1@news.devx.com...
    >
    > I've written a simple financial calculator for a friend that executes in a
    > browser. I changed the code to an application and wish to design an icon
    > and execute the code via double clicking the unique icon, any ideas. By
    > the by, the code runs perfectly when implemented via MSDOS command line:
    > java FinCalc I just want to make it easier to execute instead of opening
    > an MSDOS window and executing from there. I'm using JDK1.2.1
    > Thanks




  3. #3
    Rocky Lo Guest

    Re: Java Executable


    In addition, you may want to use javaw.exe instead of java.exe. It does not
    wait for the application to end before quiting. So you can get rid of the
    ugly DOS box.

    "Paul Clapham" <pclapham@core-mark.com> wrote:
    >Create a Windows shortcut to run your class. (E.g. right-click on the
    >desktop and select New, Shortcut.) In the shortcut's Target field enter
    >"D:\jdk1.2.2\jre\bin\java.exe FinCalc", changing the directory to the
    >appropriate one for your environment. You may also have to have "-classpath
    >something" before FinCalc. And you may have to put the directory where
    >FinCalc is located into the shortcut's Start In field.
    >
    >William H Hagan <william_h_hagan@yahoo.com> wrote in message
    >news:39ab86f0$1@news.devx.com...
    >>
    >> I've written a simple financial calculator for a friend that executes

    in a
    >> browser. I changed the code to an application and wish to design an icon
    >> and execute the code via double clicking the unique icon, any ideas.

    By
    >> the by, the code runs perfectly when implemented via MSDOS command line:
    >> java FinCalc I just want to make it easier to execute instead of opening
    >> an MSDOS window and executing from there. I'm using JDK1.2.1
    >> Thanks

    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center