Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. How to get a java applet to make a desktop ico/shortcut

How to get a java applet to make a desktop ico/shortcut

Scheduled Pinned Locked Moved Java
javatutorial
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kyle Sponable
    wrote on last edited by
    #1

    I want to make an applet to make a desktop short cut to a website. I was thinking have java execute a batch file that does the actual creation. I have no idea how to call the batch file. Any guidance would be appreciated!

    L J 2 Replies Last reply
    0
    • K Kyle Sponable

      I want to make an applet to make a desktop short cut to a website. I was thinking have java execute a batch file that does the actual creation. I have no idea how to call the batch file. Any guidance would be appreciated!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I don't think you are allowed to do this from within an applet as it would breach the security rules for web browsers.

      The best things in life are not things.

      K 1 Reply Last reply
      0
      • L Lost User

        I don't think you are allowed to do this from within an applet as it would breach the security rules for web browsers.

        The best things in life are not things.

        K Offline
        K Offline
        Kyle Sponable
        wrote on last edited by
        #3

        You can override that using a signed applet, so I think that is ok but I need to figure out how to execute the code

        L 1 Reply Last reply
        0
        • K Kyle Sponable

          You can override that using a signed applet, so I think that is ok but I need to figure out how to execute the code

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Sorry I can't offer much in the way of suggestions but you could look at the Runtime[^] class.

          The best things in life are not things.

          1 Reply Last reply
          0
          • K Kyle Sponable

            I want to make an applet to make a desktop short cut to a website. I was thinking have java execute a batch file that does the actual creation. I have no idea how to call the batch file. Any guidance would be appreciated!

            J Offline
            J Offline
            jschell
            wrote on last edited by
            #5

            Since you already mentioned signing the applet. 1. Figure out a command line tool that does this for you. This has nothing to do with java. 2. Use Runtime.exec or ProcessBuilder to run the command line. 3. Sign your applet.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups