commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From A Leg <hale_in...@yahoo.com>
Subject Re: JellySwt : problem running demo
Date Fri, 15 Oct 2004 13:38:02 GMT
Hi

One more detail, final error is now :

[java] Caused by: java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3034 in 
java.library.path

Does any body of jelly project want to help me to solve this jelly SWT bug
If you want the complete log, just ask.

Any answer appreciated

Best regards

Andre Legendre
One more step :

In fact swt-linux-gtk-pi-3.0m7.jar and swt-linux-gtk-3.0m8.jar are not
compatible.
As swt-linux-gtk-pi-3.0m8.jar in not in the directory
I change to
swt-linux-gtk-pi-3.0m7.jar and swt-linux-gtk-3.0m7.jar (why put
swt-linux-gtk-3.0m8.jar and not swt-linux-gtk-pi-3.0m8.jar ??)

And I went one more step :

No error is no more about gtk/OS but

demo:
[java] org.apache.commons.jelly.JellyTagException:
file:/home/rcs/Master/extern/java/jakarta/jakarta-commons/jelly/jelly-tags/swt/src/test/org/apache/commons/jelly/tags/swt/example.jelly:19:107:


<shell> null
[java] at
org.apache.commons.jelly.tags.swt.WidgetTag.createWidget(WidgetTag.java:267)

Please I need some help !!!

Andre
A Leg wrote:

> Hi
>
> I found out where does com from
> java.lang.NoClassDefFoundError: org/eclipse/swt/internal/gtk/OS
>
> Because for Gtk it is 2 swt jar
> I added in project.xml :
>
> <dependency>
> <groupId>swt</groupId>
> <artifactId>swt-linux-gtk-pi</artifactId>
> <version>3.0m7</version>
> </dependency>
>
> And it download
> swt-linux-gtk-pi-3.0m7.jar
> which contain org/eclipse/swt/internal/gtk/OS :
> {orion:rcs} jar tvf 
> ~/.maven/repository/swt/jars/swt-linux-gtk-pi-3.0m7.jar |grep OS
> 38848 Thu Dec 18 04:19:16 EET 2003 org/eclipse/swt/internal/gtk/OS.class
>
> But error is now :
> Exception in thread "main" java.lang.NoSuchMethodError: 
> org.eclipse.swt.internal.gtk.OS.GtkTextIter_sizeof()
>
> Probably that this jar is not the good release.
>
> Any help appreciated.
>
> Andre
>
>
> A Leg wrote:
>
>> Hi Simmon
>>
>> I found out that win32 is hardcoded in project .xml
>>
>> I have replaced it, to find the name to replace it
>>
>> I connected myself to :
>>
>> http://www.ibiblio.org/maven/swt/jars/
>> and I found the "maven name" of linux gtk swt jar :
>>
>> swt-linux-gtk-3.0m8.jar
>>
>> So I have replaced the swt version tag in project.xml :
>> win32-2.1.0
>> by
>> linux-gtk-3.0m8
>>
>> And I have been one step ahead. It does not complain any more about 
>> swt jar.
>>
>> Now the problem is : java.lang.NoClassDefFoundError: 
>> org/eclipse/swt/internal/gtk/OS
>>
>> I hope to have some more answers.
>>
>> Andre
>>
>> Simon Raess wrote:
>>
>>> I've just found out that you've started another thread and got some 
>>> answers there. You seem to be using linux so my comment below is 
>>> slightly inappropriate ;). It's another problem as pointed out by 
>>> others...
>>>
>>> Am 15.10.2004 um 10:39 schrieb Simon Raess:
>>>
>>>> Hi
>>>>
>>>> The important line is
>>>>
>>>>> [java] Exception in thread "main" java.lang.UnsatisfiedLinkError: 
>>>>> no swt-win32-2128 in java.library.path
>>>>
>>>>
>>>>
>>>>
>>>> You have to set the system property java.library.path to point to 
>>>> the swt library for win32. I don't have a windows machine, so the 
>>>> following may be slightly incorrect:
>>>>
>>>> maven demo -Djava.library.path=c: 
>>>> \eclipse\plugins\org.eclipse.swt.win32_3.0.1\os\win32\i386\
>>>>
>>>> Hope this helps!
>>>> Simon
>>>>
>>>>
>>>> Am 14.10.2004 um 14:00 schrieb A Leg:
>>>>
>>>>> Hi
>>>>>
>>>>> I am interested to use jelly swt for our project.
>>>>> http://compiere-mfgscm.sourceforge.net
>>>>>
>>>>> I when I try to run jelly swt demo on Linux fedora 2 I get this :
>>>>>
>>>>> Any help welcome.
>>>>> Thank's for any reply
>>>>>
>>>>> Andre Legendre
>>>>> {orion:rcs} maven demo
>>>>> __ __
>>>>> | \/ |__ _Apache__ ___
>>>>> | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
>>>>> |_| |_\__,_|\_/\___|_||_| v. 1.0
>>>>>
>>>>> build:start:
>>>>>
>>>>> java:prepare-filesystem:
>>>>>
>>>>> java:compile:
>>>>> [echo] Compiling to 
>>>>> /home/rcs/Master/extern/java/jakarta/jakarta-commons/jelly/jelly- 
>>>>> tags/swt/target/classes
>>>>>
>>>>> java:jar-resources:
>>>>>
>>>>> test:prepare-filesystem:
>>>>>
>>>>> test:test-resources:
>>>>>
>>>>> test:compile:
>>>>>
>>>>> create-classpath:
>>>>>
>>>>> demo:
>>>>> [java] Exception in thread "main" java.lang.UnsatisfiedLinkError: 
>>>>> no swt-win32-2128 in java.library.path
>>>>> [java] at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
>>>>> [java] at java.lang.Runtime.loadLibrary0(Runtime.java:788)
>>>>>
>>>>> [java] at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:42)
>>>>> [java] at 
>>>>> org.eclipse.swt.internal.win32.TCHAR.<clinit>(TCHAR.java:26)
>>>>> [java] at org.eclipse.swt.widgets.Widget.<clinit>(Widget.java:79)
>>>>> [java] at java.lang.Class.forName0(Native Method)
>>>>> [java] at java.lang.Class.forName(Class.java:141)
>>>>> [java] at 
>>>>> org.apache.commons.jelly.tags.swt.SwtTagLibrary.class$(SwtTagLibrary.j

>>>>> ava:84)
>>>>> [java] at 
>>>>> org.apache.commons.jelly.tags.swt.SwtTagLibrary.<init>(SwtTagLibrary.j

>>>>> ava:94)
>>>>> [java] at 
>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>>>> [java] at 
>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructo

>>>>> rAccessorImpl.java:39)
>>>>> [java] at 
>>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCo

>>>>> nstructorAccessorImpl.java:27)
>>>>> [java] at 
>>>>> java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>>>>> [java] at java.lang.Class.newInstance0(Class.java:308)
>>>>> [java] at java.lang.Class.newInstance(Class.java:261)
>>>>> [java] at 
>>>>> org.apache.commons.jelly.JellyContext.getTagLibrary(JellyContext.java:

>>>>> 454)
>>>>> [java] at 
>>>>> org.apache.commons.jelly.parser.XMLParser.createTag(XMLParser.java: 
>>>>> 979)
>>>>> [java] at 
>>>>> org.apache.commons.jelly.parser.XMLParser.startElement(XMLParser.java:

>>>>> 593)
>>>>> [java] at 
>>>>> org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXPa

>>>>> rser.java:446)
>>>>> [java] at 
>>>>> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNS

>>>>> DocumentScannerImpl.java:306)
>>>>> [java] at 
>>>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentD

>>>>> ispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1568)
>>>>> [java] at 
>>>>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XML

>>>>> DocumentFragmentScannerImpl.java:355)
>>>>> [java] at 
>>>>> org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java

>>>>> :539)
>>>>> [java] at 
>>>>> org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java

>>>>> :595)
>>>>> [java] at 
>>>>> org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
>>>>> [java] at 
>>>>> org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.ja

>>>>> va:1125)
>>>>> [java] at 
>>>>> org.apache.commons.jelly.parser.XMLParser.parse(XMLParser.java:238)
>>>>> [java] at 
>>>>> org.apache.commons.jelly.Jelly.compileScript(Jelly.java:125)
>>>>> [java] at 
>>>>> org.apache.commons.jelly.util.CommandLineParser.invokeCommandLineJelly

>>>>> (CommandLineParser.java:98)
>>>>> [java] at org.apache.commons.jelly.Jelly.main(Jelly.java:92)
>>>>> [java] [ERROR] Java Result: 1
>>>>> BUILD SUCCESSFUL
>>>>> Total time: 5 seconds
>>>>> Finished at: Thu Oct 14 11:30:44 EEST 2004
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message