Re: [javaCompiler-users] NetBeans and JSwing Layout Support and JMF Support
Status: Beta
Brought to you by:
soapy
From: Joe O. <joe...@ya...> - 2006-09-20 20:06:07
|
Hello Mark Many thanks for your incredibly quick reply and the detailed help you have given me. I am using GridBagLayout in my JSwing now. javaCompiler doesn't complain about the code anymore. It doesn't like jmf.jar(Java Media Framework) but I will work on it. I can't use 'mplayer' as you are doing because I am on Windows 2000. I will stay with JSwing and NetBeans for now. I've looked into it and I think it would take me a long while to change to SWT. Using the 'unmanaged' option I got successful compilation and an executable without errors (only a warning) but when I run the x.exe I get this: ********** C:\proj>x Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java. awt.peer.gtk.GtkToolkit at java.awt.Toolkit.getDefaultToolkit(x.exe) at java.awt.EventQueue.invokeLater(x.exe) Caused by: java.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkToolkit no t found in gnu.gcj.runtime.SystemClassLoader{urls=[file:.\,file:.\,file:.\,file: .\,file:.\,file:.\,file:.\,file:.\,file:.\,file:C:\PROGRA~1\JMF21~1.1E\lib\sound .jar,file:C:\PROGRA~1\JMF21~1.1E\lib\jmf.jar,file:C:\PROGRA~1\JMF21~1.1E\lib\,fi le:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} at java.lang.Class.forName(x.exe) at java.awt.Toolkit.getDefaultToolkit(x.exe) ...1 more C:\proj> ********** I am not using any such class as gnu.java. awt.peer.gtk.GtkToolkit in my app and the messy string amongst the above is my classpath as you can see. A windows executable is trying to load a GTK library it can't find in a Windows classpath. It doesn't make sense to me. I get this minor stuff during compilation which I wouldn't think would cause the above error: ************** creating JFrame1-win.exe - compiling sources for Java 1.5 preprocessing Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. - Java 1.5 file (*.class) preprocessing [RetroWeaver] Processing 96 classe(s) [RetroWeaver] 96 classe(s) weaved. - Java 1.5 preprocessing: jxl.jar [RetroWeaver] Processing 482 classe(s) [RetroWeaver] 482 classe(s) weaved. - processing jxl.jar-weaved.jar - main compilation step MainWindow/TableSorter.java: In class 'MainWindow.TableSorter': MainWindow/TableSorter.java: In method 'MainWindow.TableSorter.getComparator(int)': MainWindow/TableSorter.java:0: warning: assignment to final static field 'class$java$lang$Comparable' not in class initializer done ************* Using the 'managed' option I got a fail: ************ creating JFrame1-win.exe - processing jxl.jar - main compilation step C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/JavaCompilerTempqzfzgd.out/MainWindow/MainList.java:25: error: Class or interface 'swingwtx.swing.ProgressMonitorInputStream' not found in import. import swingwtx.swing.ProgressMonitorInputStream; ^ C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/JavaCompilerTempqzfzgd.out/MainWindow/MultiHighlight.java:20: error: Class or interface 'swingwtx.swing.text.Highlighter' not found in import. import swingwtx.swing.text.Highlighter; ^ 2 errors failed... *********** Any ideas would be greatly appreciated. Best Regards Joe ____________________________________________________ On Yahoo!7 Break a world record with Total Girl's Worlds Largest Slumber Party http://www.totalgirl.com.au/slumberparty |