我正在尝试将EXE4j版本6.0.2与OpenJDK版本12.0.2结合使用。但是,当我尝试编译(或打开EXE4j)时,我得到
import multer from 'multer';
import * as shortid from 'shortid';
import * as mime from 'mime-types';
const storage = multer.diskStorage({
destination: function (req,file,cb) {
cb(null, '/path/to/uploads/');
},
filename: function (req,file,cb) {
/* generates a "unique" name - not collision proof but unique enough for small sized applications */
let id = shortid.generate();
/* need to use the file's mimetype because the file name may not have an extension at all */
let ext = mime.extension(file.mimetype);
cb(null, `${id}.${ext}`);
}
});
我已经有EXE4J_JAVA_HOME和JAVA_HOME的环境文件夹,它们指向JDK的基础。我还将JDK \ bin文件夹添加到了我的路径。
EXE4j仅适用于某些Java版本吗?