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.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,15 +42,15 @@ The project uses [dockcross](https://github.com/dockcross/dockcross) to cross-co
42
42
43
43
Currently, the full build process includes the following architectures:
44
44
45
-
* x86_32
46
-
* x86_64
47
-
* armv6
48
-
* armv7
49
-
* armv7a
50
-
* armv7l (musl libc, linked statically)
51
-
* aarch64
52
-
* riscv32
53
-
* riscv64
45
+
*`x86_32`
46
+
*`x86_64`
47
+
*`armv6`
48
+
*`armv7`
49
+
*`armv7a`
50
+
*`armv7l` (musl libc, linked statically)
51
+
*`aarch64`
52
+
*`riscv32`
53
+
*`riscv64`
54
54
55
55
The implementation can handle word sizes up to 64 bit and is byte order aware. If you need another architecture, feel free to ask for it! Alternatively read how to build another architecture
56
56
down below.
@@ -59,7 +59,7 @@ down below.
59
59
60
60
### CAN_RAW, CAN_BCM and CAN_ISOTP channels
61
61
62
-
1. Compile yourself or get a compiled release from [Maven Central](https://search.maven.org/search?q=a:javacan)
62
+
1. Compile yourself or get a compiled release from Maven Central: [Core](https://central.sonatype.com/artifact/tel.schich/javacan-core), [EPoll](https://central.sonatype.com/artifact/tel.schich/javacan-epoll) (Check Versions -> Browse for published artifacts)
63
63
2. Install the native components into your `LD_LIBRARY_PATH` or configure the appropriate Java properties (See next section)
64
64
3. Create a channel by calling one of the `CanChannels.new...Channel()` methods
65
65
4. Create a `NetworkDevice` using its static `lookup(String)` method
@@ -78,17 +78,17 @@ The library relies on several native (JNI) components. By default, these compone
78
78
the classpath into a temporary folder.
79
79
80
80
While JavaCAN 2.x bundled the native components, starting with the 3.x release series no native components are bundles with the core libraries. Dedicated jar files are generated for each native
81
-
component (classified by their architecture). JavaCAN will **not** attempt to discover the location of a library version appropriate for the correct architecture. This is instead left to
81
+
component (classified by their architecture). The native components are published alongside the Java components to Maven Central. JavaCAN will **not** attempt to discover the location of a library version appropriate for the correct architecture. This is instead left to
82
82
the downstream application developer.
83
83
84
84
There are a few approaches to get the correct native libraries loaded:
85
85
86
86
1. Installing the libraries into the library path (the `LD_LIBRARY_PATH` environment variable or the `java.library.path` property)
87
87
2. Configuring the `javacan.native.javacan-<module>.path` property to tell JavaCAN the exact file system path where the native component is located
88
88
3. Configuring the `javacan.native.javacan-<module>.classpath` property to tell JavaCAN the exact location on the classpath where the native component is located
89
-
4. Adding **one** of the architecture-specific jar files into the classpath (either add compile time or runtime)
89
+
4. Adding **one** of the architecture-specific jar files into the classpath (either at compile time or runtime)
90
90
91
-
Application that are intended to run on a single architecture or that build architecture-specific version already, the simplest solution is to bundle the provided architecture-specific jar files
91
+
For applications that are intended to run on a single architecture or that build architecture-specific versions already, the simplest solution is to bundle the provided architecture-specific jar files
92
92
matching the build architecture.
93
93
94
94
For applications supporting multiple architectures at once I'd recommend dynamically adding the architecture-specific jar file at runtime or to repackage the available native libraries and
0 commit comments