Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 136677 Details for
Bug 276564
Eclipse won't launch using JDK 7 because SWT native libraries don't load
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch
276564.patch (text/plain), 1.88 KB, created by
Felipe Heidrich
on 2009-05-21 12:30:50 EDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Felipe Heidrich
Created:
2009-05-21 12:30:50 EDT
Size:
1.88 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.swt >Index: Eclipse SWT PI/common_j2se/org/eclipse/swt/internal/Library.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.swt/Eclipse SWT PI/common_j2se/org/eclipse/swt/internal/Library.java,v >retrieving revision 1.362 >diff -u -r1.362 Library.java >--- Eclipse SWT PI/common_j2se/org/eclipse/swt/internal/Library.java 8 May 2009 20:08:19 -0000 1.362 >+++ Eclipse SWT PI/common_j2se/org/eclipse/swt/internal/Library.java 21 May 2009 16:11:05 -0000 >@@ -201,8 +201,8 @@ > } > libName1 = name + "-" + Platform.PLATFORM + "-" + version; //$NON-NLS-1$ //$NON-NLS-2$ > libName2 = name + "-" + Platform.PLATFORM; //$NON-NLS-1$ >- mappedName1 = System.mapLibraryName (libName1); >- mappedName2 = System.mapLibraryName (libName2); >+ mappedName1 = mapLibraryName (libName1); >+ mappedName2 = mapLibraryName (libName2); > } else { > libName1 = libName2 = mappedName1 = mappedName2 = name; > } >@@ -230,8 +230,8 @@ > } else { > /* fall back to using the tmp directory */ > if (IS_64) { >- fileName1 = System.mapLibraryName (libName1 + SUFFIX_64); >- fileName2 = System.mapLibraryName (libName2 + SUFFIX_64); >+ fileName1 = mapLibraryName (libName1 + SUFFIX_64); >+ fileName2 = mapLibraryName (libName2 + SUFFIX_64); > } > } > if (load (path + SEPARATOR + fileName1)) return; >@@ -248,4 +248,13 @@ > throw new UnsatisfiedLinkError ("no " + libName1 + " or " + libName2 + " in swt.library.path, java.library.path or the jar file"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ > } > >+static String mapLibraryName (String libName) { >+ libName = System.mapLibraryName (libName); >+ String ext = ".dylib"; //$NON-NLS-1$ >+ if (libName.endsWith(ext)) { >+ libName = libName.substring(0, libName.length() - ext.length()) + ".jnilib"; //$NON-NLS-1$ >+ } >+ return libName; >+} >+ > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 276564
:
136087
|
136088
|
136339
| 136677 |
137195