The sdrtrunk library folder has more than one version of these libraries:
" + DuplicateLibraryDetector.describe(duplicates) + "" + "
This happens when a new version of sdrtrunk is unzipped over an older one. sdrtrunk can load " + "the older library code, which can cause crashes or errors that the newer version fixed.
Close sdrtrunk, delete the sdrtrunk folder that contains this library folder and unzip the " + "release into a new, empty folder:
" + DuplicateLibraryDetector.getFolder(duplicates) + "
Your playlist and settings are stored in your user folder and won't be affected.
" + ""; JOptionPane.showMessageDialog(mMainGui, message, "Duplicate Library Versions", JOptionPane.WARNING_MESSAGE); } /** * Handles an error that stops the application from starting. Stops the tuners that already started, so that they * are released for the next start, then reports the error and exits. Without this, the threads that the * application started before the error keep the JVM running with no main window and the splash screen showing. * @param t error */ private void startupFailed(Throwable t) { mLog.error("sdrtrunk failed to start", t); if(mTunerManager != null) { try { mTunerManager.stop(); } catch(Throwable t2) { mLog.error("Error stopping tuners after the startup error", t2); } } String logsDirectory = null; try { logsDirectory = mUserPreferences.getDirectoryPreference().getDirectoryApplicationLog().toString(); } catch(Throwable t2) { //Not available - the dialog leaves out the log location } if(mApplicationLog != null) { mApplicationLog.stop(); } exitAfterStartupError(t, logsDirectory); } /** * Closes the splash screen, shows the startup error to the user and exits the JVM with a non-zero status. * @param t error * @param logsDirectory where the application log is, or null if not known. */ private static void exitAfterStartupError(Throwable t, String logsDirectory) { //The application log may not be running yet, so also write the error to the console. System.err.println("sdrtrunk failed to start"); t.printStackTrace(); Splash.close(); if(!GraphicsEnvironment.isHeadless()) { String message = "" + "sdrtrunk couldn't start because of this error:
" + escapeHtml(String.valueOf(t)) + "
The application log has the details:
" + escapeHtml(logsDirectory) + "
See Help / Support on the sdrtrunk wiki for help.
" + ""; try { Runnable dialog = () -> JOptionPane.showMessageDialog(null, message, "sdrtrunk Startup Error", JOptionPane.ERROR_MESSAGE); if(EventQueue.isDispatchThread()) { dialog.run(); } else { EventQueue.invokeAndWait(dialog); } } catch(Throwable t2) { t2.printStackTrace(); } } System.exit(1); } /** * Escapes text for display in a Swing HTML label. */ private static String escapeHtml(String text) { return text.replace("&", "&").replace("<", "<").replace(">", ">"); } /** * Launch the application. */ public static void main(String[] args) { String version = SDRTrunk.class.getPackage().getImplementationVersion(); Splash.showVersion(version != null ? "v" + version : null); try { new SDRTrunk(); } catch(Throwable t) { //An error creating the SDRTrunk fields, before the constructor's own startup error handling runs. exitAfterStartupError(t, null); } } }