| Summary: | New Snippet Contribution: fix a missing include for WebKit (>= 1.3) JNI. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | أحمد المحمودي <aelmahmoudy> | ||||
| Component: | SWT | Assignee: | Grant Gayed <grant_gayed> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | eclipse.felipe, Silenio_Quarti, swagiaal | ||||
| Version: | 3.6.2 | ||||||
| Target Milestone: | 3.7 RC1 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
أحمد المحمودي
*** Bug 341825 has been marked as a duplicate of this bug. *** Created attachment 193284 [details]
executable test jar
I don't have access to a FC15 build or the latest Debian. I assume that you (and Sami) are compiling SWT's libraries from source. If so, can you try the test jar attached in the last comment? I'd like to first verify that our libraries compiled against 1.2 work with 1.4 at runtime. The executable jar is specific to x86_64. To launch it just run at the command line: java -jar testWebkit.jar , and it should print a couple of things to stdout. Can you update here whether this works for you? In case you're wondering, the test jar just runs the snippet below.
public class Snippet148 {
public static void main(String[] args) {
Device.DEBUG = true;
final Display display = new Display();
Shell shell = new Shell(display);
shell.setLayout(new FillLayout());
Browser browser = null;
try {
browser = new Browser(shell, SWT.WEBKIT);
} catch (SWTError e) {
e.printStackTrace();
return;
}
System.out.println("successfully created Browser type: " + browser.getBrowserType());
display.dispose();
}
}
I should also point out that the code in comment 4 uses style SWT.WEBKIT, which is new to 3.7. To run the snippet with 3.6.2 it should be fine to change this style to SWT.NONE. Here is what I get: $ java -jar testWebkit.jar org.eclipse.swt.SWTError: No more handles at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.browser.Browser.<init>(Unknown Source) at Snippet148.main(Snippet148.java:35) I just ran the jar. Is there any kind of setup that I need to do ? Assuming that the WebKitGTK libs are on the library path there shouldn't be additional setup required. I'm guessing that it failed to load the swt library. I'll have to investigate this. This change is included in the fix for bug 343454, marking as a duplicate. *** This bug has been marked as a duplicate of bug 343454 *** |