| [news.eclipse.newcomer] Re: Howto export swt to jar |
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.
Still give me the same error.2. If you execute java -cp "swt.jar;." -jar program.jar, does that work?
Hmm. How about java -cp "./program.jar;./swt.jar;." editor.editor?
/Paul