In the tutorial :

http://pivot.apache.org/tutorials/hello-world.html

 

 

The same application can be run from the command line using the following
syntax (minus the line breaks) on UNIX-based systems: 

java -cp pivot-core-[version].jar:pivot-wtk-[version].jar:
pivot-wtk-terra-[version].jar:pivot-tutorials-[version].jar
org.apache.pivot.wtk.DesktopApplicationContext
org.apache.pivot.tutorials.HelloJava 

and the following on Windows systems: 

java -cp pivot-core-[version].jar;pivot-wtk-[version].jar;
pivot-wtk-terra-[version].jar;pivot-tutorials-[version].jar
org.apache.pivot.wtk.DesktopApplicationContext
org.apache.pivot.tutorials.HelloJava 

 

 

De : Jacques Granduel [mailto:[email protected]] 
Envoyé : jeudi 28 octobre 2010 12:39
À : [email protected]
Objet : Re: launching Pivot programmatically

 

Thanks... but I've searched in it with no success. I would like something
like

new JFrame().visible = true in Swing for trying from a Groovy/Rhino
Console...

 

Maybe a pointer?

regards

 

 

2010/10/28 Jérôme Serré <[email protected]>

Hello,

 

I think you should read the tutorial first :
http://pivot.apache.org/tutorials/

 

Best regards

Jérôme

 

De : Jacques Granduel [mailto:[email protected]] 
Envoyé : jeudi 28 octobre 2010 07:52
À : [email protected]
Objet : launching Pivot programmatically

 

Hi all, 

 

this is a very basic question ! I would like to know how I can launch the
equivalent of the command line "hello world" tutorial:

public static void main(String[] args) {

  DesktopApplicationContext.main(HelloJava.class, args);

}

 

Thanks a lot.

 

Best regards, 

jqg

 

Reply via email to