* specify bootclasspath explicitly so we can compile code that depends on sun.* classes (AssociativeScriptObject)
This commit is contained in:
parent
2a3f3c7ae8
commit
cc6b4959e7
|
@ -106,8 +106,12 @@
|
|||
<classpath>
|
||||
<fileset dir="${dir.lib}" includes="*.jar" />
|
||||
</classpath>
|
||||
<bootclasspath>
|
||||
<!-- specify bootclasspath explicitly so we can compile code that depends on sun.* classes -->
|
||||
<fileset dir="${java.home}/lib" includes="*.jar" />
|
||||
</bootclasspath>
|
||||
</javac>
|
||||
|
||||
|
||||
<!-- copy resources -->
|
||||
<copy todir="${dir.build}">
|
||||
<fileset dir="${dir.source}">
|
||||
|
|
|
@ -11,6 +11,7 @@ import java.util.logging.Logger;
|
|||
import javax.swing.JFrame;
|
||||
import javax.swing.SwingUtilities;
|
||||
import javax.swing.UIManager;
|
||||
import javax.swing.UIManager.LookAndFeelInfo;
|
||||
|
||||
import net.sourceforge.filebot.ui.MainFrame;
|
||||
import net.sourceforge.filebot.ui.NotificationLoggingHandler;
|
||||
|
@ -54,7 +55,11 @@ public class Main {
|
|||
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
|
||||
} else {
|
||||
// use nimubs laf on linux, bsd, ...
|
||||
UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
|
||||
for (LookAndFeelInfo laf : UIManager.getInstalledLookAndFeels()) {
|
||||
if (laf.getName().equals("Nimbus")) {
|
||||
UIManager.setLookAndFeel(laf.getClassName());
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Logger.getLogger(Main.class.getName()).log(Level.WARNING, e.toString(), e);
|
||||
|
|
Loading…
Reference in New Issue