[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.newcomer] Re: Howto export swt to jar
|
- From: Canned <user@xxxxxxxxxxxxxx>
- Date: Tue, 31 Jul 2007 02:55:36 +0200
- Newsgroups: eclipse.newcomer
- Organization: EclipseCorner
- User-agent: Thunderbird 1.5.0.12 (X11/20060911)
Paul A. Rubin schreef:
> Canned wrote:
>> Paul A. Rubin schreef:
>
>>> 1. Do you have swt.jar and the required swt.whatever.dll in the
>>> directory in which you're trying to run program.jar?
>>>
>> I've already copied swt.jar to the same directory as program.jar and I
>> don't know if I need any dll to execute my program. I've added
>> org.eclipse.swt to my build path, added swt.jar to libraries, and in
>> order and export all items are checked (swt.jar, jre system library,
>> org.eclipse.swt) but still don't work.
>
> Assuming you're on Windows, you will need the swt DLL file to execute
> the program outside Eclipse. Step 5a of
> http://blog.redditech.com/professional/solution-to-problem-running-swt-app-from-jar/
>
> mentions it (although they say you can pull it out of swt.jar, which is
> news to me -- my copy of swt.jar does not contain it). The DLL file
> came with the SWT package, so I imagine it's on your system somewhere.
> This probably has nothing to do with the NoClassDefFoundError though.
>
>>> 2. If you execute java -cp "swt.jar;." -jar program.jar, does that
>>> work?
>>>
>> Still give me the same error.
>
> Hmm. How about java -cp "./program.jar;./swt.jar;." editor.editor?
>
> /Paul
Hi,
I've just downloaded and install eclipse europa yesterday. Creating the
same project, then create jar file from it and it's just work right
away. It's kinda weird that I can't get it work in 3.2.
Thanks for your help.