This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Errors when compiling libswt.a under winxp


I am trying to compile the library libswt.a like explain by http://gcc.gnu.org/ml/java/2002-12/msg00105.html
the compilation process have positive result generating one library libswt.a of 7.85MB,
but the compilation process also generates some warnings and errors.
With the obtained library I have compiled the "described Advanced widgets tutorial" like in http://www.cs.umanitoba.ca/~eclipse/,
nearly all the demo work except some, e.g. ImageDemo. I have noticed that the instruction


Image img = new Image(display, "EclipseBannerPic.jpg");

causes a crash of the application.

Someone can help me?

Thanks.


The errors are:


org/eclipse/swt/accessibility/Accessible.java: In class `org.eclipse.swt.accessibility.Accessible':
org/eclipse/swt/accessibility/Accessible.java: In method `org.eclipse.swt.accessibility.Accessible.Next(int,int,int)':
org/eclipse/swt/accessibility/Accessible.java:999: warning: unreachable bytecode from 489 to before 492
org/eclipse/swt/custom/CLabel.java: In class `org.eclipse.swt.custom.CLabel':
org/eclipse/swt/custom/CLabel.java: In method `org.eclipse.swt.custom.CLabel.setBackground(org.eclipse.swt.graphics.Color[],int[])':
org/eclipse/swt/custom/CLabel.java:507: warning: unreachable bytecode from 282 to before 285
org/eclipse/swt/custom/CTabFolder.java: In class `org.eclipse.swt.custom.CTabFolder':
org/eclipse/swt/custom/CTabFolder.java: In method `org.eclipse.swt.custom.CTabFolder.setSelectionBackground(org.eclipse.swt.graphics.Color[],int[])':
org/eclipse/swt/custom/CTabFolder.java:1425: warning: unreachable bytecode from 255 to before 258
org/eclipse/swt/custom/DefaultContent.java: In class `org.eclipse.swt.custom.DefaultContent':
org/eclipse/swt/custom/DefaultContent.java: In method `org.eclipse.swt.custom.DefaultContent.adjustGap(int,int,int)':
org/eclipse/swt/custom/DefaultContent.java:119: warning: unreachable bytecode from 40 to before 43
org/eclipse/swt/custom/DefaultContent.java: In method `org.eclipse.swt.custom.DefaultContent.isValidReplace(int,int,java.lang.String)':
org/eclipse/swt/custom/DefaultContent.java:186: warning: unreachable bytecode from 62 to before 65
org/eclipse/swt/custom/DefaultLineStyler.java: In class `org.eclipse.swt.custom.DefaultLineStyler':
org/eclipse/swt/custom/DefaultLineStyler.java: In method `org.eclipse.swt.custom.DefaultLineStyler.clearStyle(org.eclipse.swt.custom.StyleRange)':
org/eclipse/swt/custom/DefaultLineStyler.java:180: warning: unreachable bytecode from 170 to before 173
org/eclipse/swt/custom/DefaultLineStyler.java: In method `org.eclipse.swt.custom.DefaultLineStyler.setStyleRange(org.eclipse.swt.custom.StyleRange)':
org/eclipse/swt/custom/DefaultLineStyler.java:411: warning: unreachable bytecode from 314 to before 317
org/eclipse/swt/custom/DefaultLineStyler.java: In method `org.eclipse.swt.custom.DefaultLineStyler.textChanging(int,int)':
org/eclipse/swt/custom/DefaultLineStyler.java:584: warning: unreachable bytecode from 214 to before 217
org/eclipse/swt/custom/StyledText.java: In class `org.eclipse.swt.custom.StyledText':
org/eclipse/swt/custom/StyledText.java: In method `org.eclipse.swt.custom.StyledText.isRedrawFirstLine(org.eclipse.swt.custom.StyleRange[],int,int)':
org/eclipse/swt/custom/StyledText.java:5715: warning: unreachable bytecode from 75 to before 78
org/eclipse/swt/custom/StyledText.java: In method `org.eclipse.swt.custom.StyledText.isRedrawLastLine(org.eclipse.swt.custom.StyleRange[],int,int)':
org/eclipse/swt/custom/StyledText.java:5738: warning: unreachable bytecode from 56 to before 62
org/eclipse/swt/custom/StyledTextBidi.java: In class `org.eclipse.swt.custom.StyledTextBidi':
org/eclipse/swt/custom/StyledTextBidi.java: In method `org.eclipse.swt.custom.StyledTextBidi.fillBackground(int,int,int,int,int)':
org/eclipse/swt/custom/StyledTextBidi.java:358: warning: unreachable bytecode from 26 to before 29
org/eclipse/swt/custom/StyledTextBidi.java: In method `org.eclipse.swt.custom.StyledTextBidi.getLigatureEndOffset(int)':
org/eclipse/swt/custom/StyledTextBidi.java:529: warning: unreachable bytecode from 29 to before 32
org/eclipse/swt/custom/StyledTextBidi.java: In method `org.eclipse.swt.custom.StyledTextBidi.getLigatureStartOffset(int)':
org/eclipse/swt/custom/StyledTextBidi.java:554: warning: unreachable bytecode from 29 to before 32
org/eclipse/swt/custom/StyleRange.java: In class `org.eclipse.swt.custom.StyleRange':
org/eclipse/swt/custom/StyleRange.java: In method `org.eclipse.swt.custom.StyleRange.equals(java.lang.Object)':
org/eclipse/swt/custom/StyleRange.java:77: warning: unreachable bytecode from 73 to before 76
org/eclipse/swt/custom/StyleRange.java:80: warning: unreachable bytecode from 108 to before 111
org/eclipse/swt/custom/StyleRange.java: In method `org.eclipse.swt.custom.StyleRange.similarTo(org.eclipse.swt.custom.StyleRange)':
org/eclipse/swt/custom/StyleRange.java:125: warning: unreachable bytecode from 23 to before 26
org/eclipse/swt/custom/StyleRange.java:128: warning: unreachable bytecode from 58 to before 61
org/eclipse/swt/custom/WrappedContent.java: In class `org.eclipse.swt.custom.WrappedContent':
org/eclipse/swt/custom/WrappedContent.java: In method `org.eclipse.swt.custom.WrappedContent.getLineAtOffset(int)':
org/eclipse/swt/custom/WrappedContent.java:155: warning: unreachable bytecode from 138 to before 141
org/eclipse/swt/dnd/OleEnumFORMATETC.java: In class `org.eclipse.swt.dnd.OleEnumFORMATETC':
org/eclipse/swt/dnd/OleEnumFORMATETC.java: In method `org.eclipse.swt.dnd.OleEnumFORMATETC.Next(int,int,int)':
org/eclipse/swt/dnd/OleEnumFORMATETC.java:100: warning: unreachable bytecode from 92 to before 95
org/eclipse/swt/dnd/RTFTransfer.java: In class `org.eclipse.swt.dnd.RTFTransfer':
org/eclipse/swt/dnd/RTFTransfer.java: In method `org.eclipse.swt.dnd.RTFTransfer.nativeToJava(org.eclipse.swt.dnd.TransferData)':
org/eclipse/swt/dnd/RTFTransfer.java:121: warning: unreachable bytecode from 162 to before 165
org/eclipse/swt/graphics/Image.java: In class `org.eclipse.swt.graphics.Image':
org/eclipse/swt/graphics/Image.java: In constructor `(org.eclipse.swt.graphics.Device,org.eclipse.swt.graphics.ImageData,org.eclipse.swt.graphics.ImageData)':
org/eclipse/swt/graphics/Image.java:653: warning: unreachable bytecode from 523 to before 526
org/eclipse/swt/graphics/ImageData.java: In class `org.eclipse.swt.graphics.ImageData':
org/eclipse/swt/graphics/ImageData.java: In method `org.eclipse.swt.graphics.ImageData.blit(int,byte[],int,int,int,int,int,int,int,byte[],byte[],byte[],int,byte[],int,int,int,byte[],int,int,int,int,int,int,int,byte[],byte[],byte[],boolean,boolean)':
org/eclipse/swt/graphics/ImageData.java:2384: warning: unreachable bytecode from 2061 to before 2064
org/eclipse/swt/graphics/ImageData.java:2389: warning: unreachable bytecode from 2099 to before 2102
org/eclipse/swt/graphics/ImageData.java:2396: warning: unreachable bytecode from 2144 to before 2147
org/eclipse/swt/graphics/ImageData.java:2505: warning: unreachable bytecode from 3040 to before 3043
org/eclipse/swt/graphics/ImageData.java: In method `org.eclipse.swt.graphics.ImageData.blit(int,byte[],int,int,int,int,int,int,int,byte[],byte[],byte[],int,byte[],int,int,int,byte[],int,int,int,int,int,int,int,int,int,int,boolean,boolean)':
org/eclipse/swt/graphics/ImageData.java:2840: warning: unreachable bytecode from 1084 to before 1087
SWT_AWT.java: In class `org.eclipse.swt.internal.awt.win32.SWT_AWT$1':
SWT_AWT.java: In method `org.eclipse.swt.internal.awt.win32.SWT_AWT$1.handleEvent(org.eclipse.swt.widgets.Event)':
SWT_AWT.java:75: error: cannot find file for class sun.awt.windows.WEmbeddedFrame
SWT_AWT.java:75: confused by earlier errors, bailing out
SWT_AWT.java: In class `org.eclipse.swt.internal.awt.win32.SWT_AWT$2':
SWT_AWT.java: In method `org.eclipse.swt.internal.awt.win32.SWT_AWT$2.handleEvent(org.eclipse.swt.widgets.Event)':
SWT_AWT.java:81: error: cannot find file for class sun.awt.windows.WEmbeddedFrame
SWT_AWT.java:81: confused by earlier errors, bailing out
SWT_AWT.java:92: error: cannot find file for class sun.awt.windows.WEmbeddedFrame
SWT_AWT.java:92: error: cannot find file for class sun.awt.windows.WEmbeddedFrame
SWT_AWT.java: In class `org.eclipse.swt.internal.awt.win32.SWT_AWT$4':
SWT_AWT.java: In method `org.eclipse.swt.internal.awt.win32.SWT_AWT$4.run()':
SWT_AWT.java:89: error: cannot find file for class sun.awt.windows.WEmbeddedFrame
SWT_AWT.java:89: confused by earlier errors, bailing out
SWT_AWT.java:103: error: cannot find file for class sun.awt.windows.WEmbeddedFrame
SWT_AWT.java:103: error: cannot find file for class sun.awt.windows.WEmbeddedFrame
SWT_AWT.java: In class `org.eclipse.swt.internal.awt.win32.SWT_AWT$6':
SWT_AWT.java: In method `org.eclipse.swt.internal.awt.win32.SWT_AWT$6.run()':
SWT_AWT.java:99: error: cannot find file for class sun.awt.windows.WEmbeddedFrame
SWT_AWT.java:99: confused by earlier errors, bailing out
SWT_AWT.java: In class `org.eclipse.swt.internal.awt.win32.SWT_AWT$7':
SWT_AWT.java: In method `org.eclipse.swt.internal.awt.win32.SWT_AWT$7.handleEvent(org.eclipse.swt.widgets.Event)':
SWT_AWT.java:107: error: cannot find file for class sun.awt.windows.WEmbeddedFrame
SWT_AWT.java:107: confused by earlier errors, bailing out
org/eclipse/swt/internal/awt/win32/SWT_AWT.java: In class `org.eclipse.swt.internal.awt.win32.SWT_AWT':
org/eclipse/swt/internal/awt/win32/SWT_AWT.java: In method `org.eclipse.swt.internal.awt.win32.SWT_AWT.new_Panel(org.eclipse.swt.widgets.Composite)':
org/eclipse/swt/internal/awt/win32/SWT_AWT.java:44: error: cannot find file for class sun.awt.windows.WEmbeddedFrame
org/eclipse/swt/internal/awt/win32/SWT_AWT.java:44: confused by earlier errors, bailing out
org/eclipse/swt/internal/image/FileFormat.java: In class `org.eclipse.swt.internal.image.FileFormat':
org/eclipse/swt/internal/image/FileFormat.java: In method `org.eclipse.swt.internal.image.FileFormat.load(java.io.InputStream,org.eclipse.swt.graphics.ImageLoader)':
org/eclipse/swt/internal/image/FileFormat.java:65: warning: unreachable bytecode from 83 to before 86
org/eclipse/swt/internal/image/JPEGFileFormat.java: In class `org.eclipse.swt.internal.image.JPEGFileFormat':
org/eclipse/swt/internal/image/JPEGFileFormat.java: In method `org.eclipse.swt.internal.image.JPEGFileFormat.decodeACCoefficients(int[],int)':
org/eclipse/swt/internal/image/JPEGFileFormat.java:485: warning: unreachable bytecode from 70 to before 76
org/eclipse/swt/internal/image/JPEGFileFormat.java: In method `org.eclipse.swt.internal.image.JPEGFileFormat.decodeACFirstCoefficients(int[],int,int,int,int)':
org/eclipse/swt/internal/image/JPEGFileFormat.java:512: warning: unreachable bytecode from 110 to before 113
org/eclipse/swt/internal/image/JPEGFileFormat.java: In method `org.eclipse.swt.internal.image.JPEGFileFormat.encodeACCoefficients(int[],int)':
org/eclipse/swt/internal/image/JPEGFileFormat.java:820: warning: unreachable bytecode from 95 to before 98
org/eclipse/swt/internal/image/LZWCodec.java: In class `org.eclipse.swt.internal.image.LZWCodec':
org/eclipse/swt/internal/image/LZWCodec.java: In method `org.eclipse.swt.internal.image.LZWCodec.encodeLoop()':
org/eclipse/swt/internal/image/LZWCodec.java:161: warning: unreachable bytecode from 30 to before 33
org/eclipse/swt/internal/image/WinBMPFileFormat.java: In class `org.eclipse.swt.internal.image.WinBMPFileFormat':
org/eclipse/swt/internal/image/WinBMPFileFormat.java: In method `org.eclipse.swt.internal.image.WinBMPFileFormat.decompressRLE4Data(byte[],int,int,byte[],int)':
org/eclipse/swt/internal/image/WinBMPFileFormat.java:215: warning: unreachable bytecode from 101 to before 104
org/eclipse/swt/internal/image/WinBMPFileFormat.java:226: warning: unreachable bytecode from 158 to before 161
org/eclipse/swt/internal/image/WinBMPFileFormat.java: In method `org.eclipse.swt.internal.image.WinBMPFileFormat.decompressRLE8Data(byte[],int,int,byte[],int)':
org/eclipse/swt/internal/image/WinBMPFileFormat.java:281: warning: unreachable bytecode from 101 to before 104
org/eclipse/swt/internal/image/WinBMPFileFormat.java:292: warning: unreachable bytecode from 156 to before 159
org/eclipse/swt/widgets/Combo.java: In class `org.eclipse.swt.widgets.Combo':
org/eclipse/swt/widgets/Combo.java: In method `org.eclipse.swt.widgets.Combo.translateAccelerator(org.eclipse.swt.internal.win32.MSG)':
org/eclipse/swt/widgets/Combo.java:1338: warning: unreachable bytecode from 106 to before 109
org/eclipse/swt/widgets/Composite.java: In class `org.eclipse.swt.widgets.Composite':
org/eclipse/swt/widgets/Composite.java: In method `org.eclipse.swt.widgets.Composite._getChildren()':
org/eclipse/swt/widgets/Composite.java:91: warning: unreachable bytecode from 20 to before 23
org/eclipse/swt/widgets/Composite.java: In method `org.eclipse.swt.widgets.Composite.resizeChildren(boolean,org.eclipse.swt.internal.win32.WINDOWPOS[])':
org/eclipse/swt/widgets/Composite.java:356: warning: unreachable bytecode from 87 to before 90
org/eclipse/swt/widgets/Control.java: In class `org.eclipse.swt.widgets.Control':
org/eclipse/swt/widgets/Control.java: In method `org.eclipse.swt.widgets.Control.WM_KEYDOWN(int,int)':
org/eclipse/swt/widgets/Control.java:3225: warning: unreachable bytecode from 157 to before 160
org/eclipse/swt/widgets/Control.java: In method `org.eclipse.swt.widgets.Control.WM_KEYUP(int,int)':
org/eclipse/swt/widgets/Control.java:3406: warning: unreachable bytecode from 174 to before 177
org/eclipse/swt/widgets/Control.java: In method `org.eclipse.swt.widgets.Control.WM_SYSCOMMAND(int,int)':
org/eclipse/swt/widgets/Control.java:4078: warning: unreachable bytecode from 135 to before 138
org/eclipse/swt/widgets/Control.java:4115: warning: unreachable bytecode from 310 to before 313
org/eclipse/swt/widgets/Decorations.java: In class `org.eclipse.swt.widgets.Decorations':
org/eclipse/swt/widgets/Decorations.java: In method `org.eclipse.swt.widgets.Decorations.setDefaultButton(org.eclipse.swt.widgets.Button,boolean)':
org/eclipse/swt/widgets/Decorations.java:701: warning: unreachable bytecode from 25 to before 28
org/eclipse/swt/widgets/Decorations.java: In method `org.eclipse.swt.widgets.Decorations.WM_ACTIVATE(int,int)':
org/eclipse/swt/widgets/Decorations.java:1253: warning: unreachable bytecode from 70 to before 73
org/eclipse/swt/widgets/Display.java: In class `org.eclipse.swt.widgets.Display':
org/eclipse/swt/widgets/Display.java: In method `org.eclipse.swt.widgets.Display.asciiKey(int)':
org/eclipse/swt/widgets/Display.java:304: warning: unreachable bytecode from 74 to before 77
org/eclipse/swt/widgets/Display.java: In method `org.eclipse.swt.widgets.Display.messageProc(int,int,int,int)':
org/eclipse/swt/widgets/Display.java:1633: warning: unreachable bytecode from 129 to before 132
org/eclipse/swt/widgets/Display.java: In method `org.eclipse.swt.widgets.Display.shiftedKey(int)':
org/eclipse/swt/widgets/Display.java:2289: warning: unreachable bytecode from 76 to before 79
org/eclipse/swt/widgets/Display.java: In method `org.eclipse.swt.widgets.Display.timerExec(int,java.lang.Runnable)':
org/eclipse/swt/widgets/Display.java:2387: warning: unreachable bytecode from 121 to before 124
org/eclipse/swt/widgets/Table.java: In class `org.eclipse.swt.widgets.Table':
org/eclipse/swt/widgets/Table.java: In method `org.eclipse.swt.widgets.Table.WM_NOTIFY(int,int)':
org/eclipse/swt/widgets/Table.java:2298: warning: unreachable bytecode from 163 to before 166
org/eclipse/swt/widgets/Text.java: In class `org.eclipse.swt.widgets.Text':
org/eclipse/swt/widgets/Text.java: In method `org.eclipse.swt.widgets.Text.wmCommandChild(int,int)':
org/eclipse/swt/widgets/Text.java:1851: warning: unreachable bytecode from 57 to before 60
Tracker.java: In class `org.eclipse.swt.widgets.Tracker$1':
Tracker.java: In method `org.eclipse.swt.widgets.Tracker$1.windowProc(int,int,int,int)':
Tracker.java:449: warning: unreachable bytecode from 40 to before 43
org/eclipse/swt/widgets/Tree.java: In class `org.eclipse.swt.widgets.Tree':
org/eclipse/swt/widgets/Tree.java: In method `org.eclipse.swt.widgets.Tree.showSelection()':
org/eclipse/swt/widgets/Tree.java:1194: warning: unreachable bytecode from 76 to before 79
org/eclipse/swt/widgets/Tree.java: In method `org.eclipse.swt.widgets.Tree.WM_KEYDOWN(int,int)':
org/eclipse/swt/widgets/Tree.java:1327: warning: unreachable bytecode from 394 to before 397
org/eclipse/swt/widgets/Tree.java: In method `org.eclipse.swt.widgets.Tree.wmNotifyChild(int,int)':
org/eclipse/swt/widgets/Tree.java:1876: warning: unreachable bytecode from 659 to before 662
org/eclipse/swt/widgets/Tree.java:1920: warning: unreachable bytecode from 833 to before 836




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]