我正在尝试用以下命令从Java marc4j克隆一个Recrod类 Record f = new Record(); return f;然而,我得到了一个java.lang.RuntimeException: with error: org.marc4j.marc.Record是抽象的;不能在行f.set(record.get())上实例化;
/gradlew bootRun中运行Git Bash和PowerShell,并得到了以下错误:ERROR: JAVA_HOME is set to an invalid directory: C:\ProgramFiles\Java\jre1.8.0_121:findJavaFromJavaHome
setJAVA_HOME=%JAVA_HOME:"
错误消息显示java库中缺少"/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/bin“文件,但我也将jnotify_64bit.dlljava.lang.ClassLoader.loadLibrary(ClassLoader.java:1867) at java.lang.Runtime.loadLibrary0(Runtime.java
但是,当试图克隆JFrame时,我会得到以下异常:java.lang.InstantiationError: [Ljava.util.concurrent.ConcurrentHashMap(SunReflectionFactoryInstantiator.java:48)
at org.objenesis.ObjenesisBase.newInstance(ObjenesisBase.javadeep || type.isPrimitive() || ty