Results 1 to 4 of 4
  1. #1
    avaj987 is offline Member
    Join Date
    Aug 2007
    Posts
    2
    Rep Power
    0

    Default launch a desktop icon program command

    hello what is the simple java command code for launching
    a program that is on your desktop....
    for example google earth..?? thanks:eek:

  2. #2
    imran_khan is offline Member
    Join Date
    Jul 2007
    Posts
    8
    Rep Power
    0

    Default

    Hi,
    for this you need to sequence your different program files in any word application and save it with .bat extension.
    for example I have a java file named Example.java
    give sequence in the word file as
    javac Example.java
    java Example

    and save the word file with anyname.bat extension
    if you have differnt java files connected to each other you can give your programs name as your needs.

  3. #3
    avaj987 is offline Member
    Join Date
    Aug 2007
    Posts
    2
    Rep Power
    0

    Default

    thanks but too confusing. google earth is on my desk top.
    when it is clicked it opens the program files AND connects to
    google earth. apparently you have to be connected to
    their site for it to work, ..another google shit idea.
    anyway ,how exactly ,step by step do you access the program files and then save a different set of them?? with
    a new name..?? and how would the code look...
    I am just making a quick launch button launch the desktop item... thanks..:rolleyes:

  4. #4
    imran_khan is offline Member
    Join Date
    Jul 2007
    Posts
    8
    Rep Power
    0

    Default

    If you follow these steps an icon will be created when you click on that icon it will behave like your favourite google earth icon but remember that it is only for standalone programs.

Similar Threads

  1. Launch native app inside a JFrame???
    By benedums in forum Advanced Java
    Replies: 6
    Last Post: 02-25-2011, 03:23 PM
  2. Moving icons on your desktop
    By Leprechaun in forum New To Java
    Replies: 3
    Last Post: 12-14-2007, 10:07 AM
  3. Unable to execute command line command in java
    By LordSM in forum New To Java
    Replies: 1
    Last Post: 08-08-2007, 12:23 AM
  4. Replies: 2
    Last Post: 08-06-2007, 09:16 PM
  5. k5n Desktop Calendar 0.9.0
    By levent in forum Java Software
    Replies: 0
    Last Post: 06-02-2007, 07:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •