You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.txt
+16-10Lines changed: 16 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -85,13 +85,21 @@ deploy : build maven deployment artifacts (requires pom.xml) and publish to sona
85
85
- must define 'maven' property which is groupId
86
86
- auth token must be defined in ~/.m2/settings.xml
87
87
executable : build native loader
88
-
- a stub loader for the platform is copied into the project folder and configured to load classpath and start main method
89
-
- a project property "apptype" can be defined as:
88
+
- creates executable for the app and configures it to load classpath and start main method
89
+
- project property "apptype" can be defined as:
90
90
"window" for Window GUI apps (default)
91
91
"console" for console apps (alias "c")
92
92
"service" for service apps (alias "s")
93
93
"server" for service config GUI apps (same as "window" type plus adds "-server" to executable and package names)
94
94
"client" for client config GUI apps (same as "window" type plus adds "-client" to executable and package names)
95
+
- {app}.cfg file contains executable properties:
96
+
- CLASSPATH={list of jar files seperated by ;} //CLASSPATH will be adjusted to OS requirements
97
+
- MAINCLASS={main class to find main()} //startup class to find main() or serviceStart() if apptype=service
98
+
- DEBUG=true //enable JMX debugging (see JMX Debugging)
99
+
- DEBUG_PORT={port} //JMX port binding (default = 9010)
100
+
- OPTION={options} //JVM options such as heap size, GC options, etc.
101
+
- JAVA_HOME={path} //alternative JVM home (default = search various locations which depends on OS)
102
+
- METHOD={start method} //alternative main method (default = main or serviceStart)
95
103
ffmpeg : copy ffmpeg libraries to project folder (Windows only)
96
104
installapp : install files before package creation (Linux only)
97
105
deb : build Debian deb file (after installapp)
@@ -150,15 +158,13 @@ To build a project using Graal use the following Ant Tasks.
150
158
- library name should be the full class name where main() is defined (ie: javaforce.utils.CopyPath.dll)
151
159
GraalVM support for AWT is still a work in progress.
152
160
153
-
Debugging
154
-
---------
155
-
The CLI native loaders ~/bin/jfexec* enable JMX debugging support on port 9010.
156
-
These loaders are used when you run an app with "ant run".
157
-
From VisualVM you can connect to the JMX as localhost:9010
158
-
You can also enable debug support by adding DEBUG=true to the project .cfg file to have it enabled in the generated executable.
159
-
Debug support can also be enabled with environment variable JF_DEBUG=true
161
+
JMX Debugging
162
+
-------------
163
+
JMX debugging support can be enabled with environment variable JF_DEBUG=true
164
+
The JMX port by default is 9010 but can be overridden with environment variable JF_DEBUG_PORT
165
+
You can enable debug support by adding DEBUG=true and DEBUG_PORT=9010 to the project .cfg file to have it enabled in the generated executable.
166
+
From VisualVM you can connect to the JMX as localhost:9010 if it does not appear automatically.
160
167
Also try adding -Xlog:gc*:gc.log to the OPTIONS= in the project .cfg file. Then while the app is running use 'tail -f gc.log' from a terminal to watch memory usage.
0 commit comments