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: Jelly : no swt-win32-2128 in java.library.path
Date Fri, 15 Oct 2004 07:13:03 GMT
Hi

On step ahead
Following your informations 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

Complete log below :


{orion:rcs} maven demo
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0

Attempting to download swt-linux-gtk-3.0m8.jar.
856K downloaded
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.NoClassDefFoundError: 
org/eclipse/swt/internal/gtk/OS
    [java]      at org.eclipse.swt.widgets.Text.<clinit>(Text.java:42)
    [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.java:84)
    [java]      at 
org.apache.commons.jelly.tags.swt.SwtTagLibrary.<init>(SwtTagLibrary.java:121)
    [java]      at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [java]      at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    [java]      at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.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(AbstractSAXParser.java:446)
    [java]      at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:306)
    [java]      at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1568)
    [java]      at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.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.java: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

A Leg wrote:

> Hi Dion
>
> Thank's for answer.
>
> In clear does that mean that I must change something in project.xml ?
> What jar name should I use for gtk swt jar ?
> Or must I just replace the swt-win32-2.1.0.jar by the eclipse gtk/swt.jar
>
> I saw that all jar files have an md5 corresponding file, how can I 
> solve this ?
>
> Cheers
>
> Andre
>
> Dion Gillard wrote:
>
>> On Fri, 15 Oct 2004 09:09:12 +0300, A Leg <hale_india@yahoo.com> wrote:
>>  
>>
>>> I
>>>
>>> Hans is right
>>>
>>> I found this in build.xml :
>>> <get dest="${libdir}/swt-win32-2.1.0.jar" usetimestamp="true"
>>> ignoreerrors="true"
>>> src="http://www.ibiblio.org/maven/swt/jars/swt-win32-2.1.0.jar">
>>> and from that I found :
>>>   
>>
>>
>> The build.xml file is generated from project.xmland that entry is
>> generated from this:
>>
>>    <dependency>
>>      <id>swt</id>
>>      <!-- don't know how to support OS-dependent jars in Maven yet -->
>>
>>      <version>win32-2.1.0</version>
>>    </dependency>
>>
>> You'll need to change that dependency to use your OS specific version
>> of the swt jar.
>> The jar must be in the local maven repository.
>>  
>>
>
>


---------------------------------------------------------------------
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