How to make a mouse clickable Java application ?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: How to make a mouse clickable Java application ?

Hybrid View

  1. #1
    Nijo Varghese Guest

    How to make a mouse clickable Java application ?


    Can I make a Java application which can be started by double clicking(in Win98)
    on icon instead of running it from DOS prompt? If possible, how can I do
    it ?

    Regards, Nijo

  2. #2
    Paul Clapham Guest

    Re: How to make a mouse clickable Java application ?

    Yes, you can. Create a shortcut: Right-click on the wallpaper, select New
    then Shortcut. For "Command line" enter something like
    "D:\jdk1.2.2\jre\bin\Javaw.exe MyProgram", where "MyProgram.class" is what
    you want to run. (Use the actual path to your JRE; Javaw.exe runs without
    the DOS console visible, Java.exe shows the console. You can use either.)
    You may need to insert parameters such as -classpath, and you may also need
    to edit the Properties of the shortcut you created to change the "Start In"
    directory to be where your class is.

    Nijo Varghese <Nijo@Mypad.com> wrote in message
    news:39043268$1@news.devx.com...
    >
    > Can I make a Java application which can be started by double clicking(in

    Win98)
    > on icon instead of running it from DOS prompt? If possible, how can I do
    > it ?
    >
    > Regards, Nijo




  3. #3
    Tom Duffy Guest

    Re: How to make a mouse clickable Java application ?


    Hello Paul:

    I've had better luck with writing a simple batch file. Something like this
    deals with classpath pretty easily:

    set classpath=%classpath%;C:\VisualCafe\Projects\FinCalc\FinCalcDisplay.jar
    java FinCalc.Switchboard

    This assumes that java is in your path statement. If not, use the fully
    qualified path to java.exe.

    You can write these in Notepad, save them wherever you like, and then drag
    them to your desktop.

    Tom Duffy

    "Paul Clapham" <pclapham@core-mark.com> wrote:
    >Yes, you can. Create a shortcut: Right-click on the wallpaper, select

    New
    >then Shortcut. For "Command line" enter something like
    >"D:\jdk1.2.2\jre\bin\Javaw.exe MyProgram", where "MyProgram.class" is what
    >you want to run. (Use the actual path to your JRE; Javaw.exe runs without
    >the DOS console visible, Java.exe shows the console. You can use either.)
    >You may need to insert parameters such as -classpath, and you may also need
    >to edit the Properties of the shortcut you created to change the "Start

    In"
    >directory to be where your class is.
    >
    >Nijo Varghese <Nijo@Mypad.com> wrote in message
    >news:39043268$1@news.devx.com...
    >>
    >> Can I make a Java application which can be started by double clicking(in

    >Win98)
    >> on icon instead of running it from DOS prompt? If possible, how can I

    do
    >> it ?
    >>
    >> Regards, Nijo

    >
    >



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