Как создать ярлык для Java-программы

Попробуйте следующее: Свойство Python

Код примера:

class C(object):
    def __init__(self):
        self._x = None

    @property
    def x(self):
        """I'm the 'x' property."""
        print("getter of x called")
        return self._x

    @x.setter
    def x(self, value):
        print("setter of x called")
        self._x = value

    @x.deleter
    def x(self):
        print("deleter of x called")
        del self._x


c = C()
c.x = 'foo'  # setter called
foo = c.x    # getter called
del c.x      # deleter called

10
задан Sunil Kumar Sahoo 30 September 2009 в 06:07
поделиться

4 ответа

You need to look around for Java Windows Installers, they have functionality to create desktop shortcuts. Take a look at this article and this one too.

Install4J is my personal favorite

5
ответ дан 3 December 2019 в 04:33
поделиться

You should be able to create shortcut as normal.

After all, installing Java on Windows should by default allow you to run .jar files directly; there should be an association of that extension to java.exe. Alternatively, you can create a batch file to run the jar and then create the shortcut for that file.

3
ответ дан 3 December 2019 в 04:33
поделиться

If Java is properly installed, the JAR extension is assigned to java. That means on commandline you can type

C:> myprogram.jar 

And if your jar is properly build that runs the program.

You can copy/paste-link your JAR file to desktop.

0
ответ дан 3 December 2019 в 04:33
поделиться

Это краткое руководство для создания ярлыков для существующих программ: http://support.microsoft.com/kb/140443

0
ответ дан 3 December 2019 в 04:33
поделиться
Другие вопросы по тегам:

Похожие вопросы: