Skip to content

Commit 5a9e488

Browse files
committed
Restore CLASSPATH_ATTR_LIBRARY_PATH_ENTRYs in native .classpath files
Without that launching standalone Java SWT application from the development workspace fails to load the native binaries of the platform.
1 parent 2ca0b37 commit 5a9e488

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

binaries/.classpath_cocoa

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
<classpathentry kind="src" path="Eclipse SWT/emulated/expand"/>
99
<classpathentry kind="src" path="Eclipse SWT/emulated/tooltip"/>
1010
<classpathentry kind="src" path="Eclipse SWT PI/common"/>
11-
<classpathentry kind="src" path="Eclipse SWT PI/cocoa"/>
11+
<classpathentry kind="src" path="Eclipse SWT PI/cocoa">
12+
<attributes>
13+
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="org.eclipse.swt.${target.ws}.${target.os}.${target.arch}"/>
14+
</attributes>
15+
</classpathentry>
1216
<classpathentry kind="src" path="Eclipse SWT Accessibility/common"/>
1317
<classpathentry kind="src" path="Eclipse SWT Accessibility/cocoa"/>
1418
<classpathentry kind="src" path="Eclipse SWT AWT/common"/>

binaries/.classpath_gtk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
<classpathentry kind="src" path="Eclipse SWT/emulated/coolbar"/>
88
<classpathentry kind="src" path="Eclipse SWT/emulated/taskbar"/>
99
<classpathentry kind="src" path="Eclipse SWT/common"/>
10-
<classpathentry kind="src" path="Eclipse SWT PI/gtk"/>
10+
<classpathentry kind="src" path="Eclipse SWT PI/gtk">
11+
<attributes>
12+
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="org.eclipse.swt.${target.ws}.${target.os}.${target.arch}"/>
13+
</attributes>
14+
</classpathentry>
1115
<classpathentry kind="src" path="Eclipse SWT PI/cairo"/>
1216
<classpathentry kind="src" path="Eclipse SWT PI/common"/>
1317
<classpathentry kind="src" path="Eclipse SWT Accessibility/gtk"/>

binaries/.classpath_win32

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
<classpathentry kind="src" path="Eclipse SWT/win32"/>
55
<classpathentry kind="src" path="Eclipse SWT/common"/>
66
<classpathentry kind="src" path="Eclipse SWT PI/common"/>
7-
<classpathentry kind="src" path="Eclipse SWT PI/win32"/>
7+
<classpathentry kind="src" path="Eclipse SWT PI/win32">
8+
<attributes>
9+
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="org.eclipse.swt.${target.ws}.${target.os}.${target.arch}"/>
10+
</attributes>
11+
</classpathentry>
812
<classpathentry kind="src" path="Eclipse SWT OLE Win32/win32"/>
913
<classpathentry kind="src" path="Eclipse SWT Accessibility/win32"/>
1014
<classpathentry kind="src" path="Eclipse SWT Accessibility/common"/>

0 commit comments

Comments
 (0)