* specify bootclasspath explicitly so we can compile code that depends on sun.* classes (AssociativeScriptObject)

This commit is contained in:
Reinhard Pointner 2009-04-11 22:26:02 +00:00
parent 2a3f3c7ae8
commit cc6b4959e7
2 changed files with 11 additions and 2 deletions

View File

@ -106,6 +106,10 @@
<classpath> <classpath>
<fileset dir="${dir.lib}" includes="*.jar" /> <fileset dir="${dir.lib}" includes="*.jar" />
</classpath> </classpath>
<bootclasspath>
<!-- specify bootclasspath explicitly so we can compile code that depends on sun.* classes -->
<fileset dir="${java.home}/lib" includes="*.jar" />
</bootclasspath>
</javac> </javac>
<!-- copy resources --> <!-- copy resources -->

View File

@ -11,6 +11,7 @@ import java.util.logging.Logger;
import javax.swing.JFrame; import javax.swing.JFrame;
import javax.swing.SwingUtilities; import javax.swing.SwingUtilities;
import javax.swing.UIManager; import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;
import net.sourceforge.filebot.ui.MainFrame; import net.sourceforge.filebot.ui.MainFrame;
import net.sourceforge.filebot.ui.NotificationLoggingHandler; import net.sourceforge.filebot.ui.NotificationLoggingHandler;
@ -54,7 +55,11 @@ public class Main {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} else { } else {
// use nimubs laf on linux, bsd, ... // 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) { } catch (Exception e) {
Logger.getLogger(Main.class.getName()).log(Level.WARNING, e.toString(), e); Logger.getLogger(Main.class.getName()).log(Level.WARNING, e.toString(), e);