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 4130 Details for
Bug 34808
Workbench freeze and crashes when run with the Apple Java 1.4.1 (final)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
a better fix
34808.txt (text/plain), 1.82 KB, created by
Andre Weinand
on 2003-03-14 07:18:43 EST
(
hide
)
Description:
a better fix
Filename:
MIME Type:
Creator:
Andre Weinand
Created:
2003-03-14 07:18:43 EST
Size:
1.82 KB
patch
obsolete
>Index: macosx/org/eclipse/jdt/internal/launching/macosx/MacOSXLaunchingPlugin.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.launching.macosx/macosx/org/eclipse/jdt/internal/launching/macosx/MacOSXLaunchingPlugin.java,v >retrieving revision 1.12 >diff -u -r1.12 MacOSXLaunchingPlugin.java >--- macosx/org/eclipse/jdt/internal/launching/macosx/MacOSXLaunchingPlugin.java 10 Mar 2003 21:56:05 -0000 1.12 >+++ macosx/org/eclipse/jdt/internal/launching/macosx/MacOSXLaunchingPlugin.java 14 Mar 2003 12:18:00 -0000 >@@ -86,8 +86,10 @@ > * the stub either from the running Eclipse or from the JavaVM > * framework. Here we create the appropriate pathname. > */ >+ int pos= 0; > String javaApplStub= System.getProperty("sun.boot.library.path"); //$NON-NLS-1$ >- int pos= javaApplStub.indexOf(':'); >+ if (javaApplStub != null) >+ pos= javaApplStub.indexOf(':'); > if (pos > 0) > javaApplStub= javaApplStub.substring(0, pos); > String expected= "/Contents/Resources/Java"; //$NON-NLS-1$ >@@ -95,7 +97,18 @@ > javaApplStub= javaApplStub.substring(0, javaApplStub.length()-expected.length()); > javaApplStub+= "/Contents/MacOS/"; //$NON-NLS-1$ > } else { >- javaApplStub= "/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/"; //$NON-NLS-1$ >+ javaApplStub= System.getProperty("java.class.path"); //$NON-NLS-1$ >+ if (javaApplStub != null) >+ pos= javaApplStub.indexOf(expected); >+ else >+ pos= 0; >+ if (pos > 0) { >+ javaApplStub= javaApplStub.substring(0, pos); >+ javaApplStub+= "/Contents/MacOS/"; //$NON-NLS-1$ >+ } else { >+ // fall back >+ javaApplStub= "/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/"; //$NON-NLS-1$ >+ } > } > javaApplStub= "JAVASTUB=\""+ javaApplStub + "\"\n"; //$NON-NLS-1$ //$NON-NLS-2$ >
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 34808
:
4080
|
4085
|
4129
| 4130