File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed
src/main/java/com/openfin/desktop/demo Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ REM layout.html is a simple example of OpenFin window that uses Layout service.
33REM For this example to work, layout.html needs to be hosted by a web server and its URL needs to be configured with -Dcom.openfin.demo.layout.url
44REM To set RVM path, add -Dcom.openfin.demo.layout.rvm=C:\Users\username\AppData\Local\OpenFin\OpenFinRVM.exe
55
6- java -cp openfin-desktop-java-example-7.1.1.jar;openfin-desktop-java-adapter-7.1.1-SNAPSHOT.jar;openfin-snap-dock-1.0.0.1.jar; TableLayout-20050920.jar;jna-4.1.0.jar;jna-platform-4.1.0.jar;json-20140107.jar;slf4j-api-1.7.5.jar;slf4j-jdk14-1.6.1.jar;websocket-api-9.3.12.v20160915.jar;websocket-client-9.3.12.v20160915.jar;websocket-common-9.3.12.v20160915.jar;jetty-io-9.3.12.v20160915.jar;jetty-util-9.3.12.v20160915.jar -Dcom.openfin.demo.layout.url=http://localhost:8008/layout.html -Dcom.openfin.demo.layout.rvm=C:\Users\username \AppData\Local\OpenFin\OpenFinRVM.exe com.openfin.desktop.demo.LayoutServiceDemo
6+ java -cp openfin-desktop-java-example-7.1.1.jar;openfin-desktop-java-adapter-7.1.1-SNAPSHOT.jar;TableLayout-20050920.jar;jna-4.1.0.jar;jna-platform-4.1.0.jar;json-20140107.jar;slf4j-api-1.7.5.jar;slf4j-jdk14-1.6.1.jar;websocket-api-9.3.12.v20160915.jar;websocket-client-9.3.12.v20160915.jar;websocket-common-9.3.12.v20160915.jar;jetty-io-9.3.12.v20160915.jar;jetty-util-9.3.12.v20160915.jar -Dcom.openfin.demo.layout.url=http://localhost:8008/layout.html -Dcom.openfin.demo.layout.rvm=C:\Users\wenju \AppData\Local\OpenFin\OpenFinRVM.exe com.openfin.desktop.demo.LayoutServiceDemo
Original file line number Diff line number Diff line change 1- java -cp openfin-desktop-java-example-7.0.2 .jar;openfin-desktop-java-adapter-7.0.2 .jar;TableLayout-20050920.jar;jna-4.5.1.jar;jna-platform-4.5.1.jar;json-20140107.jar;slf4j-api-1.7.5.jar;slf4j-jdk14-1.6.1.jar;websocket-api-9.3.12.v20160915.jar;websocket-client-9.3.12.v20160915.jar;websocket-common-9.3.12.v20160915.jar;jetty-io-9.3.12.v20160915.jar;jetty-util-9.3.12.v20160915.jar -Djava.util.logging.config.file=logging.properties -Dcom.openfin.temp=%LocalAppData% \OpenFin\temp -Dcom.openfin.demo.version=stable com.openfin.desktop.demo.OpenFinDesktopDemo
1+ java -cp openfin-desktop-java-example-7.1.1 .jar;openfin-desktop-java-adapter-7.1.1-SNAPSHOT .jar;TableLayout-20050920.jar;jna-4.5.1.jar;jna-platform-4.5.1.jar;json-20140107.jar;slf4j-api-1.7.5.jar;slf4j-jdk14-1.6.1.jar;websocket-api-9.3.12.v20160915.jar;websocket-client-9.3.12.v20160915.jar;websocket-common-9.3.12.v20160915.jar;jetty-io-9.3.12.v20160915.jar;jetty-util-9.3.12.v20160915.jar -Djava.util.logging.config.file=logging.properties -Dcom.openfin.temp=%LocalAppData% \OpenFin\temp -Dcom.openfin.demo.version=stable com.openfin.desktop.demo.OpenFinDesktopDemo
22
Original file line number Diff line number Diff line change 1111import com .openfin .desktop .win32 .ExternalWindowObserver ;
1212import com .sun .jna .Native ;
1313import com .sun .jna .platform .win32 .WinDef ;
14-
1514import org .json .JSONArray ;
1615import org .json .JSONObject ;
1716
Original file line number Diff line number Diff line change 2525
2626public class LayoutServiceDemo implements DesktopStateListener {
2727
28- private final static String appUuid = "layoutServiceDemo" ;
29- private final static String javaConnectUuid = "layoutServiceDemoJava" ;
28+ private final static String appUuid = "layoutServiceDemo-" + UUID . randomUUID () ;
29+ private final static String javaConnectUuid = "layoutServiceDemoJava-" + UUID . randomUUID () ;
3030
3131 private DesktopConnection desktopConnection ;
3232 private CountDownLatch latch = new CountDownLatch (1 );
You can’t perform that action at this time.
0 commit comments