Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] eclipse Linux 390 --Error: Widget has zero width and/or height


Steve,

I'm sorry the jar layout in SWT is confusing.  It is our fault we didn't proide a more clear explanation.
A few days ago, Veronika sent a message on this list explaining which piece is in which jar; you may want to refer to that.  In short:  only use the platform jars (i.e., those in ws directory).  The ones in org.eclipse.swt are just placeholders.  You want the tree in the ws/motif jar.

What do you use to build / debug swt?  We recommend that you get and install the Eclipse SDK (on Linux/386 or Windows), pull the stuff out of CVS (I find it easier than getting the source in the swtsrc.zip... if you need detailed instructions on how to do it, please don't hesitate to ask, I'll be happy to help you), and use Eclipse for building the java side of the world.  You can then run swt on the 390 using the remote debugger.

Boris




"Stephen Henkels" <henkels@xxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

11/20/2001 05:00 PM
Please respond to platform-swt-dev

       
        To:        platform-swt-dev@xxxxxxxxxxx
        cc:        "Natarajan Krishnaswami" <nkrishna@xxxxxxxxxx>
        Subject:        Re: [platform-swt-dev] eclipse Linux 390 --Error: Widget has zero width and/or height



Boris, I have 2 versions of Cursor.class in my tree ....

esll08:/eclipse/eclipse # ls -l
./plugins/org.eclipse.swt/ws/motif/org/eclipse/swt/graphics/Cursor.class
-rw-r--r--    1 root     root         4389 Nov  7 12:19
./plugins/org.eclipse.swt/ws/motif/org/eclipse/swt/graphics/Cursor.class
esll08:/eclipse/eclipse # ls -l
./plugins/org.eclipse.swt/org/eclipse/swt/graphics/Cursor.class
-rw-r--r--    1 root     root         4706 Nov  7 12:19
./plugins/org.eclipse.swt/org/eclipse/swt/graphics/Cursor.class


but I only have the Cursor.java file corresponding to  the second .
/plugins/org.eclipse.swt/org/eclipse/swt/graphics  directory .........this
one imports
import org.eclipse.swt.internal.win32.* for which I don't find during a
java compile to debug/println the width/height values on create of a
cursor.

By changing CLASSPATH, I ran with both versions of Cursor.java but I get
the same result  Widget has zero width and/or height .........

esll08:/eclipse/eclipse # ./eclipse

Start VM: /java/IBMJava2-s390-13/bin/java
args[0] = '/java/IBMJava2-s390-13/bin/java'
args[1] = '-classpath'
args[2] = '/eclipse/eclipse/./startup.jar'
args[3] = 'org.eclipse.core.launcher.Main'
args[4] = '-ws'
args[5] = 'motif'
args[6] = '-application'
args[7] = 'org.eclipse.ui.workbench'
args[8] = '-endsplash'
args[9] = '/eclipse/eclipse/./eclipse -endsplash 2166'
.................
[Loaded org.eclipse.swt.graphics.Cursor]
[Loading superclasses of org/eclipse/swt/graphics/Cursor]
[Preparing org/eclipse/swt/graphics/Cursor]
[Dynamic-linking native method
org/eclipse/swt/internal/motif/OS.XCreateFontCursor ... JNI]
Error: Widget  has zero width and/or height
................


Steve







_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top