Bug 113240 - Unable to run SWT Application with NLPack
Summary: Unable to run SWT Application with NLPack
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1.2   Edit
Assignee: PDE-UI-Inbox CLA Friend
QA Contact:
URL:
Whiteboard:
Keywords:
: 120394 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-20 11:05 EDT by Shinji Miyamoto CLA Friend
Modified: 2006-01-08 20:53 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shinji Miyamoto CLA Friend 2005-10-20 11:05:32 EDT
[step]
1. Install Eclipse and NLPack.
2. In Java Project, select Java file and right click -> Run As -> SWT 
Application
3. I encounterd following error

-------------------------------------------
Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-win32-3139 
in java.library.path
-------------------------------------------

and I see the path
"workspace/.metadata/.plugins/org.eclipse.pde.ui/xxxxxxxxx.swt"
there are no files.


In case Eclipse SDK , It worked.
In case Eclipse SDK and NLPack, It didn't worked.


I use following files.
-------------------------------------------
eclipse-SDK-3.1.1-win32.zip
NLpack1-eclipse-SDK-3.1.1a-win32.zip
-------------------------------------------
Comment 1 Shinji Miyamoto CLA Friend 2005-10-21 12:44:06 EDT
It may be caused by
org.eclipse.pde.internal.ui.launcher.SWTLaunchConfiguration
#findFragment() method

only with Eclipse
findFragment() method return "org.eclipse.swt.win32.win32.x86"
so jar location is "...plugins/org.eclipse.swt.win32.win32.x86_3.1.1.jar"

but with Eclipse + NLPack
findFragment() method return "org.eclipse.swt.nl1"  (<- maybe not correct)
so jar location is "...plugins/org.eclipse.swt.nl1_3.1.0.jar"
Comment 2 Wassim Melhem CLA Friend 2005-11-28 01:41:19 EST
In the presence of NL fragments, SWT has > 1 resolved fragments, but the code currently only picks the first one.

candidate for 3.1.2
Comment 3 Wassim Melhem CLA Friend 2005-12-12 12:02:06 EST
*** Bug 120394 has been marked as a duplicate of this bug. ***
Comment 4 Wassim Melhem CLA Friend 2006-01-08 20:53:34 EST
Fixed in the 3.1.2 and 3.2 streams