https://download.eclipse.org/eclipse/downloads/index.html Click on a release, like "latest release" (4.35 as of now). Scroll to the bottom of the page to the section "SWT Binary and Source".
sorry this comes up =( Not Found We're sorry, the page or file cannot be found. Here are some reasons why: A file may have moved to the archives. Please contact the project members on their user forum. Your file was part of a nightly or integration build which is no longer there. Simply download the latest version. The project is uploading a new build, and this file is not there yet. Try again later.
Hi Chris, thank you very much for your advise. Proposed solution (WebVew2 + env variable) works well on our environment. Thanks a lot!
Latest stable as of now: https://download.eclipse.org/eclipse/downloads/drops4/S-4.35RC2-202502280140/ Check the bottom of the page.
hola el archivo https://download.eclipse.org/eclipse/downloads/drops4/R-4.20-202106111600/ ya no existe, ay una forma d eimplementarlo en netbeans o apache netbeans?
Hi Carlos, Please next time create a new post for your question. As for your question, on Windows, the default web browser engine is Internet Explorer which is now deprecated. If you use a recent version of the SWT library and if you use the latest preview of DJ Native Swing, you can force the use of the Edge runtime either by passing "JWebBrowser.useEdgeRuntime()" to the JWebBrowser constructor or using the system property "nativeswing.webbrowser.runtime=edge". On some systems, you need to explicitly...
I thank you for this browser, but I have a problem, it only loads Internet Explorer 11, it is very old, I have seen comments from Criss that you updated to Edge, I have not been able to with the .jar, could you help me please, so I can run it on another more updated browser, thank you very much.
Hi Andrey, DJ Native Swing uses the SWT library internally. SWT Edge implementation is based on the WebView2 component: https://www.eclipse.org/swt/faq.php#howuseedge You would need to find a way to solve the SSO issue with the WebView2. Here is a hint: https://github.com/MicrosoftEdge/WebView2Feedback/issues/550 I have seen mentions of the environment variable "WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS" which could be set to "--enable-features=msSingleSignOnOSForPrimaryAccountIsShared", but it is unclear...
Hi there, we are using chrriis.dj.nativeswing.swtimpl.components.JWebBrowser component for user authentication over Azure Cloud SSO. And what interesting... it works fine when we are not using "EDGE runtime". However, when we use "EDGE runtime", Azure Cloud SSO fails. And the cause of the error is "Device ID" is missing on the authentication. Any ideas what should be changed here to make SSO authentication successfully with "EDGE runtime" option? Thanks!
Hi Chris, I've been monitoring this problem for a while, and the issue is not so much that it's a warning, but that when it occurs, the browser freezes for about 90 seconds, after which control is passed back to my app and it continues normally. Perhaps there's a code path that both leads to the reflective access warning and to this condition? I tried upgrading to 1.03 and the issue persists. Thanks for any help, Ithran
Hi, Sorry for the late reply... For now, this is just a warning. This is due to the module system introduced in Java 9. Perhaps I could pass "--add-opens=java.base/java.lang=ALL-UNNAMED" when I spawn the process responsible for the native stuff to get rid of the warning, but then I also need to test the version of Java to not use that option if < Java 9. Hope this helps, -Christopher
Hi, I'm successfully using JWebBrowser on 32 bit Linux (Centos 6) with the Mozilla interface. Occasionally, the browser will freeze and I see this written to the console: Native Command: [/usr/java/jdk-11.0.17/bin/java, -client, -Xms512m, -Xmx2048m, -Djava.library.path=/usr/local/javapos/wn/bin:::/opt/EpsonJavaPOS/bin:/opt/nextor/lib/psc:/opt/nextor/lib/psc/SupportJars:/opt/nextor/lib/jai:/usr/java/packages/lib:/lib:/usr/lib, -Dnativeswing.peervm.debug.printStartMessage=true, -Dnativeswing.localhostAddress=127.0.0.1,...
As I indicated in my last post, you need to force the use of the Edge runtime on Windows. This can be done using a system property. Perhaps the problem is that you are not using the lastest preview version, older (and official) version did not support Edge.
hi Christopher, I'd like to display google maps in panel on my java swing project, the first second the map appears and after that this windows ( the attatched picture ) appears and the maps disappears .. i still get the same problem after updating my browsers and setting microsoft edge the default browser. Thanks
On Windows, the default web browser engine is Internet Explorer which is now deprecated. If you use a recent version of the SWT library and if you use the latest preview of DJ Native Swing, you can force the use of the Edge runtime either by passing "JWebBrowser.useEdgeRuntime()" to the JWebBrowser constructor or using the system property "nativeswing.webbrowser.runtime=edge". That being said, the Edge runtime does not allow all the API of the JWebBrowser but it works well to view websites. Hope...
thank you Christopher, It works know, i have one more question : when navigate on sites JWebBrowser asks me to update compatible browser, and after i update the browsers i have , i'm still getting the same thing .
Hi, I don't think you have the relevant JAR files in your classpath. You need: - NativeSwing.jar - NativeSwing-SWT.jar - The SWT library conforming to your platform (64 bit, Windows, etc.) Hope this helps, -Christopher
hi Christopher, After adding all necessary JAR files i'm still getting this error on eclipse. Erreur : impossible d'initialiser la classe principale Test.GMaps Causé par : java.lang.NoClassDefFoundError: chrriis/dj/nativeswing/swtimpl/components/JWebBrowser Thanks
Hi Chris, I wonder if you have taken a second look at the possibility of rendering the native canvas to a JavaFX node. This would close the gap significantly for many JavaFX developers out there. There has been success with embedding CEF (chromium embedded framework), but what I like so much about DJ is that I don't have to package the browser with my application, it simply uses the Edge WebView2 that's already on the users machine. When I want to use DJ JWebBrowser, I do one of two things. 1. Open...
Will DJNativeSwing be impacted by Internet Explorer End of Life?
@chrriis, when you say the COM Component that SWT uses will continue to work for several years, could you please cite some references that say so? Also, could you maybe give some technical details to this "COM Component" which your Library uses?
Hello, I'm using JWebBrowser to display some page content inside our application. I've noticed that in some windows machines the content is not displayed properly the HTTP page that is not loading correctly is : https://ic2integra-web.mspe.globalblue.com/ As I said the issue can be observed only on some machines, in attachments working and not working example from two different PCs, using the same version of demo app (newest one). Both machines are windows 10. Can you let me know how we can start...
Hi Thomas, IE retires, but I don't know if the COM component that SWT uses will cease to work. I think I read that it will continue to work for several years. About the cookies that do not work, this is because Edge has some limitations and thus SWT cannot implement all APIs: https://www.eclipse.org/swt/faq.php#edgelimitations You are saying that something is not working with JDK8. What exactly is not working? Cheers, -Christopher
It did work on JDK 11 with the latest swt. Still can't get it to work on JDK 8 though.
After looking at the SendingCommands demo, I was able to create a workaround by executing the following javascript after the page was loaded: webBrowser.executeJavascriptWithResult("sendNSCommand(document.cookie);") Using the command received function, I got the web page cookies and was able to parse them. This should work just fine, but it still seems strange that the getCookie function simply returns null.
Also, the reason why I am using the edge browser is because I assume we will be required to when IE retires on June 15, 2022.
getCookie returns null when using Edge
hi, is possible use flash player inside your browser with flash.ocx library?
Hi! I found out the solution. If not letting jpackage create runtime but creating it by jlink and pass it to jpackage everything works perfectly. In this case the runtime can be used from outside not only by the packaged app. There is bin directory and java under it, etc. Cheers, Lóránd
Hi Christopher, After this message, page is not getting loaded in the browser. On reinitialization again it is working , after two clicks it gets stuck and nothing is shown. Regards Vdevi
Hi, Is it just a message in the console or it is not working at all? -Christopher
Hi, Iposted my reply in the bug: https://sourceforge.net/p/djproject/bugs/80/ Hope this helps! -Christopher
Using JWebBrowser from installed app
Hi, I am not too familiar with the jpackage tool. But one thing is sure: the native side that is manipulated by the Swing side needs to be in its own VM, so a separate java process is started. I don't know how a new VM can be spawned from an application packaged this way. If you do have a way to start a VM, for example by shipping the java exe, etc., then I suppose you could set a different process factory if the default one is not suitable: NativeInterface.getConfiguration().setPeerVMProcessFactory(MyPeerVMProcessFactoryImplementation)...
awesome, this sounds perfect, thanks!
yes you can convert the image data to base64 and set as html content without need to any extra file or storage or file path etc. img src="data:image/png;base64, iVBOR..rkJggg=="
yes you can convert the image data to base64 and set as html content without need to any extra file or storage or file path etc. Taken from wikpedia
Hi, Yeah I reliase that, however I want to serve up the html content to the user without needing to store tempory data on the filesystem
You can use navigate method to render images on your filesystem. JWebBrower.navigate("file:///logo.jpg");
Using JWebBroser from installed app
Hi All, Im using JWebBrower.setHTMLContent() and its working fine for rendering HTML and external links. Is it posisble tho to someone pass files using code so that they can be used in links/images.. for example, instead of needing an external link for a image on the page, is it possible to just use logo.jpg... and somehow pass that image into the browser in the same way setHTMLContent is used? Thanks
Hi, I have an applicatin which uses JWebBrowser and it works correctly started from IntelliJ. I installed that application by installer created by jpackage tool and starting the installed app I got the following: Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: Failed to spawn the peer VM! at chrriis.dj.nativeswing.swtimpl.core.SWTNativeInterface$OutProcess.createProcess(SWTNativeInterface.java:982) at chrriis.dj.nativeswing.swtimpl.core.SWTNativeInterface$OutProcess.createOutProcessMessagingInterface(SWTNativeInterface.java:1025)...
JWebbrowser in Linux
Windows DPI Scaling Problem
I added the version "DJNativeSwing-SWT-1-0-3-20220201.zip" that applies the scaling factor to the mouse coordinates. There are other parts of the API that might not respect scaling, but which are probably not used anymore, such as printing a native component to an image. Unless someone actually needs that, I don't intend to fix scaling there. In the case of printing to an image, it is unclear how to solve it: should we assume that the passed in image on which to print has the unscaled bounds? Etc....
Mouse coordinates should probably be okay once it's scaled; coordinates should still be based on the unscaled resolution, which judging by what it was giving previously, is probably what it outputs now Won't have a chance to try it for a little while, though, so I'm just guessing at what it's doing right now If that's not what it's doing, then yeah, your method sounds fine. The events should never give values outside of the bounds the user defined for the window (unscaled); but of course, the window...
Hi, The bounds occupied by the web browser should be fixed in version: 1.0.3-20220131 Please try with "DJNativeSwing-SWT-1-0-3-20220131.zip". I haven't done any conversion of the mouse coordinates for mouse events. I suppose that I would have to convert the physical pixels into conceptual pixels so that if there are physically 500 pixels Swing should receive an event for 400 pixels if the scaling factor is 125%. I am not sure yet if this could cause other problems... Any opinion? Cheers, -Christ...
JWebBrowser window not maximized
Hi, This is fixed in version: 1.0.3-20220131 Please try with "DJNativeSwing-SWT-1-0-3-20220131.zip" if it fixes your issue. Cheers, -Christopher
Hi Livio, Finally some good news! Thanks for your help! :) -Christopher
Hi Livio, Finaly some good news! Thanks for your help! :) -Christopher
It works!!! Super-thanks <3 Evidence attached. Livio
Hi Livio, I did a fix for the scaling factor. Could you try the version "DJNativeSwing-SWT-1-0-3-20220131.zip" and let me know if it helps? Cheers, -Christopher
I also attach the Java class that I am compiling and running. I use Java 11. 0.10. This is the script I use under Window to run the program: java -cp .;./build/classes;./lib/* -Dfile.encoding=utf-8 -Dorg.eclipse.swt.browser.DefaultType=edge Test My screen resolution is 1920 x 1080 while my Scaling factor is 125% (on Windows it should be "Change the size of text, apps, and other items"). Thank you very much Best Livio
Dear Christopher, The menu that is displayed after right-clicking is the one of Edge. See imagine attached.
Hi Livio, First, we should confirm that it is using the Edge browser (meaning that the system property was taken into account). One way to do so is to right click in the web page that is displayed, the menu is very different if it is Edge. It is a pity that I cannot reproduce the problem to find a solution at my end... If it is indeed Edge and you still have the problem, could you give me more information? - What version of Java? - What is your screen resolution? - What is the scaling factor in your...
Hi Christopher, Thank you very much for your help! I am using SWT 4.22, which is the latest version so that is not the problem. I tried to install Edge runtime but during the installation, the installer told me that it was already installed. I set the property by adding: System.setProperty("org.eclipse.swt.browser.DefaultType", "edge"); at the beginning of my code, but the result did not change: JWebBrowser is still (wrongly) displayed as in the JPEG attached above :-( Thanks again for your help...
Hi Livio, I am curious: have you tried upgrading the SWT library? https://download.eclipse.org/eclipse/downloads/drops4/R-4.22-202111241800/#SWT If you have and the bug is still present, you could try switching to the Edge runtime, to see if that makes a difference. To do so, you first have to make sure that the WebView2 component is installed: https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section And you need to launch the application with that system property set before...
Ok, I changed the Zoom settings of IE when I open it to 100% but it does not solve the problem with JWebBrowser. Never mind, thanks anyway for your quick and kind replies :-) Have a nice day Livio
Well, check the zoom-related settings I mentioned, because in the end the way the PDF is displayed is by leveraging Internet Explorer as an integrated viewer. Cheers, -Christopher
Hi Christopher, Thank you for the quick reply. Actually I am interested in displaying pdf files. Therefore, Internet Explorer is immaterial. However, if I replace webBrowser.navigate("http://www.google.com"); with: webBrowser.navigate("http://www.cran.r-project.org/doc/manuals/R-intro.pdf"); The result is the same (see attached imagine). You asked me to check the zoom level in Windows display settings (and I guess I have to look for the same also in the Acrobat reader). I searched on Google but I...
Hi Christopher, Thank you for the quick reply. Actually I am interested in displaying pdf files. Therefore, Internet Explorer is immaterial. However, if I replace webBrowser.navigate("http://www.google.com"); with: webBrowser.navigate("http://www.cran.r-project.org/doc/manuals/R-intro.pdf"); The result is the same:
Hi Livio, If you launch standalone Internet Explorer, is the zoom level set to 100%? If you check your Windows display settings, do you have a zoom level other then 100%? I have seen problems related to High DPI screens (and thus the use of these zoom factors) with Internet Explorer. I don't think Internet Explorer will ever support that properly. When time permits, I will investigate if the SWT library (which I integrate to make the browser possible in Swing) has made progress with other renderers...
Hello! In my computer, JWebBrowser is displayed starting from the top-left corner but it does not fit until the bottom/right corner. There is always an internal margin (indicated by the red arrows in the image linked below). I tried to set various options but I do not manage to make it full screen. It does so also in the SimpleWebBrowserExample.java demo that I found in DJNativeSwing-SWTDemo.jar. When I run the demo, this is what it displays: http://www.liviorobaldo.com/Immagine.jpg How can I display...
JWebBrowser window not maximized
Hi, I suspect a network configuration change, or an antivirus that is interfering with the internal communication channel. Did you try to turn off the antivirus and/or firewall to check if they are the culprit? Cheers, -Christopher On Thu, Oct 14, 2021 at 3:51 PM Michael Garcia mike-a-garcia@users.sourceforge.net wrote: We still can't figure out what's going on. Are there any settings that we can modify that might make this issue go away? JWebBrowser crashes on Windows 10 https://sourceforge.net/p/djproject/discussion/671154/thread/d23e632e07/?limit=25#62f1...
We still can't figure out what's going on. Are there any settings that we can modify that might make this issue go away?
Our organization applies security updates that Windows releases and updates some of the tools on our systems. For example they just applied the KB5005573 update from Microsoft and upgraded Firefox to version 78.14.0.
what do you mean by security updates? windows update or firewall/antivirus? we had problems with node32/eset updates and generated some firewall rules (whiltelist exceptions) on the firewall
Hi, Our application has been working fine w/DJNative swing until today. There were security updates applied and we now crash when we create our JWebBrowser. Here's the stacktrace w/some options I saw turned on in other posts. java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:210) at java.net.SocketInputStream.read(SocketInputStream.java:141) at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) at java.io.BufferedInputStream.read(BufferedInputStream.java:265)...
Get the current swt.jar: https://download.eclipse.org/eclipse/downloads/drops4/R-4.20-202106111600/ Do the necessary preparation (Installing WebView2): https://www.eclipse.org/swt/faq.php#howuseedge Set the property: System.getProperties().setProperty("org.eclipse.swt.browser.DefaultType", "edge");
Hi Chris, Does it support Microsoft Edge Chromium. Thanks, Soundar
Hi Chris, Does it support Microsoft Edge Chromium. Thanks, Soundar
Edge Chromium
Just to confirm I downloaded and imported the swt that you linked, but am still having the same problems. The DJProject installs have also been refreshed, but no change
Hi, Are you using a recent version of the SWT library? I think the old version that I ship had many problems with High DPI... Could you try and let me know if some bugs are still present? I think the latest for your platform is "swt-4.19-win32-win32-x86_64.zip" which can be found here: https://download.eclipse.org/eclipse/downloads/drops4/R-4.19-202103031800/ Cheers, -Christopher
Windows DPI Scaling Problem
Hi Devi, I answered your answer on the support section: https://sourceforge.net/p/djproject/support-requests/21/ Hope this helps, -Christopher
Hi Devi, I think that if you use a recent version of SWT and if a Webkit browser is installed, then that would be used. But... I don't know the state of this support. Java client applications are less and less developed, so this project might be getting a bit obsolete. To force the use of Webkit, you might have to set this system property: nativeswing.webbrowser.runtime=webkit The requirements for SWT to load Webkit are explained here: https://www.eclipse.org/swt/faq.php#howusewebkit Hope this helps,...
JWebbrwoser support in Linux(Fedora,centos)
Hi Christopher, I am very new to the linux and using JWebBrowser in windows without any issue. Now migrating the application to linux where JWebBrowser is not working. How to resolve the following exception in linux(Ex:fedora,centos) where the solution should be same for all flavours. org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)] I tried the samplebrowserexample also, which got failed with the same error. I see the forums that XULRUNNER is needed but...
Hi Christopher, I am very new to the linux and using JWebBrowser in windows without any issue. Now migrating the application to linux where JWebBrowser is not working. How to resolve the following exception in linux(Ex:fedora,centos) where the solution should be same for all flavours. org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)] I tried the samplebrowserexample also, which got failed with the same error. I see the forums that XULRUNNER is needed but...
What port?
Hi EJlol I have the same problen Could you help my to resolve it please? How Can I edit the swt.library.path property? Cheers
I also have the same problem, I think something in control.print (gc), but I can't find any correction
I also have the same problem, I think something in control.print (gc), but I can't find any correction
Hi Christian, DJ Native Swing is a special project which mixes native components with Swing. This requires certain steps which are specific to this native integration, among which opening the interface and running events in the main of the application. For example, take a look at this file: https://github.com/Chrriis/DJ-Native-Swing/blob/master/DJNativeSwing-SWTDemo/src/chrriis/dj/nativeswing/swtimpl/demo/examples/webbrowser/SimpleWebBrowserExample.java If event pumping is not done right, it is possible...