comment lancer une JVM supportant AWT/Swing à partir de java (donc d'une jvm)

je pensais à :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
Process proc = shell.exec("java osteo.Run",envp,dir);
mais ca retourne :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
 
Exception in thread "main" java.awt.HeadlessException: 
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
    at java.awt.Window.<init>(Window.java:317)
    at java.awt.Frame.<init>(Frame.java:419)
    at java.awt.Frame.<init>(Frame.java:384)
    at javax.swing.JFrame.<init>(JFrame.java:150)
    at osteo.Run.<init>(Run.java:45)
    at osteo.Run.main(Run.java:133)
sachant que Run.java:133 correspondant a l'initialisation d'une JFrame.


je sais qu'Ant sait le fare (avec des fork je pense), mais j'ai rien trouvé de concret