Попробуйте следующее: Свойство 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
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
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.
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.
Это краткое руководство для создания ярлыков для существующих программ: http://support.microsoft.com/kb/140443