Настольная Docklet была добавлена в серии Docky 2.1.x, которая может быть установлена через Docky Development PPA.
Это программное обеспечение для разработки, поэтому используйте на свой страх и риск!
] sudo add-apt-repository ppa:docky-core/ppa sudo apt-get update && sudo apt-get install docky
Виртуальная виртуальная машина по умолчанию установлена в файле jvm.cfg.
В моей системе Ubuntu 12.04 amd64 с Oracle JDK7, установленной через Webupd8 ppa, файл находится в /usr/lib/jvm/java-7-oracle/jre/lib/amd64 , Для стандартного OpenJDK 6 файл находится в /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/jvm.cfg. Обратите внимание, что вам нужен JDK, а не только JRE.
Отредактируйте jvm.cfg, который соответствует вашей текущей версии Java по умолчанию (sudo nano /usr/lib/jvm/java-7-oracle/jre/lib/amd64/jvm.cfg). Переключите -server KNOWN в -server IGNORE и -client IGNORE на -client KNOWN.
Это сделает -client flag «известным» исполняемому файлу java и сделает его игнорирующим -server flag, тем самым делая это значение по умолчанию.
Исходный файл (клиент vm по умолчанию):
# Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
# ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
#
# List of JVMs that can be used as an option to java, javac, etc.
# Order is important -- first in this list is the default JVM.
# NOTE that this both this file and its format are UNSUPPORTED and
# WILL GO AWAY in a future release.
#
# You may also select a JVM in an arbitrary location with the
# "-XXaltjvm=<jvm_dir>" option, but that too is unsupported
# and may not be available in a future release.
#
-server KNOWN
-client IGNORE
-hotspot ERROR
-classic WARN
-native ERROR
-green ERROR
Измененный файл (сервер vm по умолчанию):
# Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
# ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
#
# List of JVMs that can be used as an option to java, javac, etc.
# Order is important -- first in this list is the default JVM.
# NOTE that this both this file and its format are UNSUPPORTED and
# WILL GO AWAY in a future release.
#
# You may also select a JVM in an arbitrary location with the
# "-XXaltjvm=<jvm_dir>" option, but that too is unsupported
# and may not be available in a future release.
#
#-server KNOWN
-server IGNORE
#-client IGNORE
-client KNOWN
-hotspot ERROR
-classic WARN
-native ERROR
-green ERROR
Теперь проверьте, чтобы увидеть если сработало изменение:
$ java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)