jlink

GDB Monitor commands in CLion

喜你入骨 提交于 2020-01-12 22:31:07
问题 I'm trying to debug an embedded project using remote GDB. My system: Target: ARM Cortex M0. SEGGER J-Link GDB Server V6.10 Command Line Version arm-none-eabi-gdb 7.10.1.20160616-cvs CLion 2016.2.2, Build #CL-162.1967.7 Ubuntu 16.04 I have the following in my .gdbinit file: target remote localhost:2331 #(I remove this line when debugging with CLion) set verbose on file "/path_to_output_file/blinky.elf" monitor reset break main The thing that has troubled me for days now, is that this works

custom jre with javaFX 11

天大地大妈咪最大 提交于 2019-12-31 03:04:36
问题 I'm Using JDK11 and JavaFX11. I created a custom JRE for my sample FX module program using Jlink, but when I try to run with the custom JRE, it renders errors as below: This is how I created my custom JRE (no errors) jlink --module-path ..\jmods;%PATH_TO_FX% --add-modules java.base,java.desktop,jdk.unsupported,javafx.graphics --output FXJRE This is how I tried to run (with errors) FXJRE\bin\java --module-path %PATH_TO_FX%;mods -m com.javafxdemo/com.javafxdemo.JavaFXDemo The error messages:

SSLHandshakeException with jlink created runtime

本小妞迷上赌 提交于 2019-12-30 18:42:30
问题 I've got a dropwizard app, which runs fine with the standard JRE. I've tried creating a runtime using jlink which is considerably smaller: /Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home/bin/jlink --no-header-files --no-man-pages --compress=2 --strip-debug --add-modules java.base,java.compiler,java.desktop,java.instrument,java.logging,java.management,java.naming,java.scripting,java.security.jgss,java.sql,java.xml,jdk.attach,jdk.jdi,jdk.management,jdk.unsupported --output jre If I

“Received fatal alert: handshake_failure” in jlinked JRE

不打扰是莪最后的温柔 提交于 2019-12-24 06:07:16
问题 My Java program sends requests by java.net.http.HttpClient (Java 11). It works when I am running it in Eclipse on OpenJDK 11's JRE. On custom jlinked JRE, I get an error: java.io.IOException: Received fatal alert: handshake_failure I suppose the problem is with my custom JRE. 回答1: TL;DR jlink without jdk.crypto.ec cannot talk to a server that has an elliptic curve certificate. You get a handshake_failure error when trying to talk to a server running with this. When you build a deployable jre,

Calling java project from Mathematica

这一生的挚爱 提交于 2019-12-24 01:43:17
问题 Could you please give me a hint how can I invoke a java project (written in eclipse) from Mathematica? I want to give values generated by my Mathematica program as input to a java project, and use the (outputs) results obtained from solving the problem by java, as input to my Mathematica code. I know there is a J/Link package for calling java from mathematica. But, i don't know how I can have this interaction between them. 回答1: Assuming your project is on the class path, you can pull in Java

Is there a maven jigsaw jlink plugin?

心已入冬 提交于 2019-12-23 07:27:58
问题 Does maven have a plugin for the new Java 9 jlink I have searched online but have not been able to find anything official from the maven team. 回答1: Yes . There has been some progress made to create one on Github/maven-plugins for the same. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jlink-plugin</artifactId> <version>3.0.0-SNAPSHOT</version> </plugin> The plugin in its code reads to be adaptive to JEP-282 and JEP-220 from the proposals. And though this might look

java 9: JLink created invalid images - missing module executable script

会有一股神秘感。 提交于 2019-12-21 04:42:22
问题 I am creating a sample application with 3 modules user , dept and account . In my user module, I have a main class and compile my modules with the following command: javac -d target --module-source-path src $(find -name "*.java") After compiling, execute following command for run: java -p target -m com.user/com.user.info.Launcher The output after running java modules are successful. But when trying to create runtime image using jlink the image created successfully but module executable script

Is there a way to add maven dependencies while using the maven-jlink-plugin?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-17 06:51:42
问题 I'm using this Github project to get exposed to the new modular features in Java 9. I would like to add dependencies to the project and be able to build a native image. However, when I try to add a new dependency to the pom.xml, and add the requires statement to the module-info.java, I get a the following error from the maven-jlink-plugin: Error: module-info.class not found for joda.time module I'm trying to use this as a proof of concept that I can deploy images using the new linking phase,

1.7 如何使用VSCode搭建SIG MESH开发环境

*爱你&永不变心* 提交于 2019-12-17 02:27:57
前言 继上一章节讲完了 如何使用SES搭建SIG MESH开发环境 ,我相信大部分人都已经可以愉快地使用SES开始自己的SIG MESH之旅了。然而,此次小编却剑走偏锋采用 CMake+Vscode+nRF5-SDK-for-Mesh 的组合来搭建此次MESH的开发环境。因此,本章节仅适合有一定基础且又进取的人,从而也不太适合啥都要现成的工程师 (如果有的话,看到这里就可以移动你的鼠标到右上角,并单击) 首先,采用这样的组合方式在业内不是属于首次,互联网上已经大量充斥着类似的文章。然而,更多的是基于纯应用层的应用,即没有跟硬件绑定在一起的相关场景。只有零星的几篇跟嵌入式开发相关的,因此小编觉得还是有必要借这样的机会写一写的,顺带促进自己的成长。 优势 那么这样的组合的方式有什么样的优势呢?小编认为是如下几种: 开源免费,没有版权纠纷。因为CMake以及Vscode均是开源免费的工具软件; 适合于模块化以及大项目工程开发且跨平台,不受平台限制; 提升工程师自身的水平,更了解编译的原理 缺点 就我目前的了解,除了入门的门槛有点高之外也没有什么其他的缺点了。当然了,集成化的IDE在调试方面还是会优于这种方式的。 准备工作 在开始环境搭建之前,我们还需要安装如下的工具软件: 工具名称 作用 nRF5x Command Line Tools 用于下载以及合并固件

@ComponentScan does not detect beans in a jlink'ed Java runtime image

不想你离开。 提交于 2019-12-12 20:00:14
问题 I'm using JavaFX on Java 11 to create a desktop app. The app is bundled into a custom runtime image with all its modules and their dependencies using jlink . For dependency injection, the app relies on the Spring Framework. I'm aware that Spring modules currently do not include a module-info.class , instead they are shipped as "automatic modules". Since automatic modules cannot be bundled with jlink , I manually added module-info.class to each Spring dependency JAR using the Moditect Maven