In order to start have your windows first in your Ubuntu 11.10, just change the order of the files in /etc/grub.d by changing the number starting each entry.
By default, the directory contains the files : 00_header, 01_linux, 02_linux_xen, 03_os_probe etc.
If you change the file names so that numbers looks like 00_header, 01_os_probe, 02_linux, 03_linux_xen
And then run grub-update (to update /boot/grub/grub.cfg) in command line. Windows will launch first at startup.
Affichage des articles dont le libellé est windows. Afficher tous les articles
Affichage des articles dont le libellé est windows. Afficher tous les articles
vendredi 2 décembre 2011
mardi 16 juin 2009
Ouvrir un document en java
Pour ouvrir un document sans préciser entièrement la ligne de commande.
Ceci permet de déléguer la responsabilité d'assigner un programme à un type de document. Pour ouvrir un PDF.
L'article source
Sous windows :
Sous linux :
Pour éditer l'association des fichiers modifier ce fichier :
/usr/share/application-registry/gnome-vfs.applications
Ceci permet de déléguer la responsabilité d'assigner un programme à un type de document. Pour ouvrir un PDF.
L'article source
Sous windows :
public class ShowPDF {
public static void main(String[] args) throws Exception {
Process p =
Runtime.getRuntime()
.exec("rundll32 url.dll,FileProtocolHandler c:/pdf/mypdf.pdf");
p.waitFor();
}
}
Sous linux :
public class ShowPDF {
public static void main(String[] args) throws Exception {
Process p =
Runtime.getRuntime()
.exec("mimopen c:/pdf/mypdf.pdf");
p.waitFor();
}
}
Pour éditer l'association des fichiers modifier ce fichier :
/usr/share/application-registry/gnome-vfs.applications
Inscription à :
Articles (Atom)