User Tools

Site Tools


ds:software:java11

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ds:software:java11 [2019/05/09 13:40]
rhaseitl
ds:software:java11 [2019/05/21 10:14] (current)
rhaseitl [weird look an asl when started via Windows/XWin]
Line 30: Line 30:
   - compile should now work on the command line and within NetBeans   - compile should now work on the command line and within NetBeans
   - if no LSA or device access is used: the program can now only be executed by the command line, not within NetBeans   - if no LSA or device access is used: the program can now only be executed by the command line, not within NetBeans
-  - **LSA or DeviceAcces:: TODO**+  - LSA or DeviceAcces: Seems to work out of the box when the new 13.0.0 parent is used.
  
  
Line 45: Line 45:
 **Latest news:** **Latest news:**
 All solutions below fail sometimes. Then it helps to remove the complete <code> <build> ... </build></code> section from the .pom file. All solutions below fail sometimes. Then it helps to remove the complete <code> <build> ... </build></code> section from the .pom file.
 +
 +**Superlatest news:**
 +If you need the build section for passing command line argument, the sction can look like this:
 +<code>
 +<build>
 +<plugins>
 +<plugin>
 + <groupId>org.codehaus.mojo</groupId>
 + <artifactId>appassembler-maven-plugin</artifactId>
 + <configuration>
 + <programs>
 + <program>
 + <jvmSettings>
 + <extraArguments>
 + <extraArgument>-Dmetafactory.service.name.resolvers=de.gsi.bel.ap.japc.ext.devacc.GSIServiceNameResolver</extraArgument>
 + <extraArgument>-Dde.gsi.aco.sv.japc.useDefaultResolverFirst=false</extraArgument>
 + <extraArgument>-Dlog4j.configurationFile=https://websvcdev.acc.gsi.de/groups/lobi/config/log4j2.xml</extraArgument> 
 + <extraArgument>-Dcsco.default.property.config.url=https://websvcpro.acc.gsi.de/groups/cscoap/config/</extraArgument> 
 + </extraArguments>
 + </jvmSettings>
 + </program>
 + </programs>
 + </configuration>
 +</plugin>
 +</plugins>
 +</build>
 +</code>
 +
 +Please note: Neither the plugin for the javadoc trick (see below) nor the plugin that was there before is in the build section.
 +**This is NOT used anymore:**
 +<code>
 +<plugin>
 + <groupId>org.apache.maven.plugins</groupId>
 + <artifactId>maven-compiler-plugin</artifactId>
 + <version>2.3.2</version>
 + <configuration>
 + <source>11</source>
 + <target>11</target>
 + </configuration>
 +</plugin>
 +</code>
 +
 +
  
 **Other solutions:** **Other solutions:**
Line 59: Line 102:
           <source>8</source>           <source>8</source>
         </configuration>         </configuration>
 +
       </plugin>        </plugin> 
     </plugins>     </plugins>
Line 110: Line 154:
 </code> </code>
  
 +===== Launching from within NetBeans =====
 +To start a project directly from within NetBeans, you must edit the parameters in the project properties:
 +Actions - Run project - Set Properties (adapt to your project settings):
 +<code>
 +metafactory.service.name.resolvers=de.gsi.bel.ap.japc.ext.devacc.GSIServiceNameResolver
 +de.gsi.aco.sv.japc.useDefaultResolverFirst=false -classpath %classpath de.gsi.lo.bi.trafos.TrafoMainApp
 +exec.executable=java
 +</code>
 +
 +{{:ds:software:bildschirmfoto_2019-05-16_um_10.12.59.png|}}
 +
 +===== weird look an asl when started via Windows/XWin =====
 +The dti Joda program showd this weird behaviour:
 +  * when started via ssh -X, the GUI looked as intended
 +  * when started via XWin32/XDMCP on windows, the GUI was squeezed together (see screenshots)
 +
 +As a quick solution, the window has been made resizable in the code. Then it looks as intended on all platforms.
 +
 +not looking good:
 +{{:ds:software:2019-05-21_09-50-14_asl744.acc.gsi.de.png|}}
 +
 +looking good:
 +{{:ds:software:2019-05-21_09-48-20_asl744.acc.gsi.de.png|}}
ds/software/java11.1557402048.txt.gz · Last modified: 2019/05/09 13:40 by rhaseitl