Java library with JNI native library bindings for Dokany 2.0.x https://github.com/dokan-dev/dokany
- Install Visual Studio 2022
- You can download it from here.
- Install CMake
- You can download it from here.
- Install Dokany 2.x.x
- You can download it from here.
- During installation choose "Development" option.
- Open command prompt in the project directory and run the following commands:
cmake -H.\native -B.\native\build
cmake --build .\native\build --config Release
copy /y .\native\build\Release\dokany4j.dll .\src\main\resources\one\papachi\dokany4j
- Install JDK 17
- You can download it from here.
- Install maven
- You can download it from here.
- Open command prompt in the project directory and run the following commands:
mvn install
If you are using maven as your build tool, you can reference the library in your pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>one.papachi</groupId>
<artifactId>example</artifactId>
<version>1.0.0</version>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>one.papachi</groupId>
<artifactId>dokany4j</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
</project>