Java has a vast ecosystem, market, and developer community. This document will introduce how to integrate a Java project into a desktop application.
Preparation
- Download the project
bash
# gitee
git clone https://gitee.com/dromara/electron-egg.git
# github
git clone https://github.com/dromara/electron-egg.git- Switch to the
demobranch
bash
git checkout -b demo-java remotes/origin/demo- Install frontend and Electron dependencies
bash
# Install Electron dependencies in the root directory
npm i
# Enter the frontend directory and install dependencies
cd ./frontend
npm iDownload Demo Resources
jreandjar
- URL: java-res.zip
- Please select the correct
jreaccording to your operating system and extract it
- Extract
jreto thebuild/extraResourcesdirectory
Note: Official jre download URL: Oracle Java
Run
bash
npm run startCheck the cross menu in the demo for the Java service.
