-
Notifications
You must be signed in to change notification settings - Fork 867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browser is not found. UnsatisfiedLinkError (Windows, aarch64) #8218
Comments
and
sounds like some of the native libs don't support arm atm netbeans/ide/extbrowser/src/org/netbeans/modules/extbrowser/NbDdeBrowserImpl.java Line 77 in e38f618
Would be curious if it works if you set |
I included the switch you suggested: "Would be curious if it works if you set -J-Dorg.netbeans.modules.extbrowser.UseDesktopBrowse=true" It had no effect. If I open the browser separately and call the localhost the it executes just fine. So it seems that everything wen fine through deployment. |
you are saying this worked before NB 24? |
I did not yet look into what |
No, I wasn't and didn't think with so many units sold it would be considered a niche. Since you mentioned it, I had a copy of v22 so I installed that and it does not work on v22. I use NB a lot, a lot and am required to use surface pro for other reasons. Is this something that would be corrected? Doesn't seem like there is a simple work around. Any other suggestions? |
You can create a patch and provide it here that protects |
I'm somewhat surprised NetBeans even launches given we don't even build the launcher for aarch64. I assume the emulation is able to switch to the JDK architecture. Right now, it's an unsupported platform. Contributions to making it supported would be welcome, but it needs contribution from someone with access to relevant hardware to test things. |
the stacktrace sounds like all it wants is to open a tab. I am wondering if basic functionality could be maintained by only using JDK api. That is why i wondered if |
I am surprised you say it's unsupported, I found the configuration I used on stack trace. If you use the os installer version, then it doesn't work. According to stack trace, it is a supported configuration, and the zip version of NB was referred to as the common version as it is only supposed to rely on the JDK to run. |
Looking further into this unsupported conclusion, this is the most recent information I could find: According to the latest information, Apache NetBeans 24 officially supports running on any chipset that can run a JDK 17 or higher, as the binary releases require JDK 17+ to function properly; meaning most modern processors across platforms like Intel, AMD, and ARM are supported. |
What did you gain from this? Apache NetBeans is user driven. There are currently no Windows-Aarch64 users here, that contribute. So no that combination is not supported. So why are you hairsplitting over a technicality? You want help, that is fine, acting as if you paid for it is not. |
Apache NetBeans contains various native binaries to accomplish a few things. This includes the launcher exe used on Windows. As far as I know, none of our own native binaries for Windows are compiled with arm support. I am slightly surprised that the launcher even works. As it obviously does mostly work for you, great! That is different to saying it's a supported configuration. We had the same situation with macOS arm for a while. I have access to one, so was able to help fix. To properly support Windows on arm will require contribution and testing from people. With regard to the specific issue you're having, I agree with @mbien that the more things we can push to JDK APIs the better, and the easier to fully support more platforms. EDIT : crossed replies with Matthias |
Linaro documents a way to run Windows aarch64 (https://linaro.atlassian.net/wiki/spaces/WOAR/pages/28914909194/windows-arm64+VM+using+qemu-system). I'll see whether I can get it to work. |
matthiasblaesing: you are reading into my comment. My intent was definitely not to be hairsplitting or acting like I am paying for support. My post was to show what is currently the public marketed position is and that non-technical management believes. Do to this I am dealing with a belief that now I am the problem. I am not the technical person that could help make these types of changes, but I am able, reliable and willing to test.
It may be the only issue is how the launcher accesses the win os from the launcher. |
Project maintainers are trying to explain to you that arm/windows is not a fully supported platform, while you are somehow trying to argue that it is supported. This issue contains now sufficient information to allow someone who is interested in and/or with access to the given platform to work on resolving it. If the discussion continues to derail like this I will lock this thread for committers and collaborators only. |
I am somewhat amused by the idea that we have either marketing or non-technical management! 😆 @rockyAdmin thank you for the offer of help in testing. We likely still need someone with technical skills and the target platform to contribute here. No one is going to break your current workflow, just expect some rough edges. There is a small, mostly volunteer, team developing and maintaining the IDE. The people who wrote that download web page are the same people telling you that this platform is not fully supported! Another non-technical contribution would be to look at clarifying the level of support for various platforms on the download page https://github.com/apache/netbeans-antora-site/edit/main/modules/ROOT/pages/download/nb24/index.adoc |
Once again, I will clarify, was referring to my management not yours and all public information produced by an organization NB in this case is marketing and sets the expectations of decision makers. I understand your staffing and internal technical position to address this issue, and I would like to thank you for spending your time on this thread. Should you find the technical part of the equation my offer to test stands. |
I reviewed past issues with the launcher and the win dll that were located on github. The dll is just a rats nest, so I read the propaganda on JNA. Turns out we are in luck it does what is says it will. I took some time this morning and created a working In this draft i do the following things:
Runs fast and smooth on my laptop. All things being equal I should be able to just send you this one file and it should run as is on your x64 windows machine. This may provide you with the base if not a starting point of what you need to scrap the dll. |
@rockyAdmin thanks for further looking into this. The interesting bit will be integration into the existing classes. But ignoring everything else you verified, that the JNA libraries actually work on win-aarch64, that should have been the case, but geting the info first hand is nice. Thank you! I experiented a bit with this the last two hours and initially I thought I broke the DDE client, until I realized, that neither Edge, nor Firefox support DDE anymore and while switching from the c++ code to java code I removed some exception guards I'll need to readd. Unfinished/only preliminary tessted branch: matthiasblaesing@33eafba |
…ontrol This reduces the amount of native code that needs to be shipped with NetBeans and allows to support running on more platforms. Closes: apache#8218
If you can make the launcher code available for me to review., maybe I can be more helpful then I first thought. I do have time available now for you. Also how would you like me to transmit the working win-reg code to you. Should I just paste it here? |
This reduces the amount of native code that needs to be shipped with NetBeans and allows to support running on more platforms. The DDE based control was completely removed as in tests MS Edge, Google Chrome and Mozilla Firefox all did not support DDE. Closes: apache#8218
This reduces the amount of native code that needs to be shipped with NetBeans and allows to support running on more platforms. The DDE based control was completely removed as in tests MS Edge, Google Chrome and Mozilla Firefox all did not support DDE. Closes: apache#8218
@rockyAdmin could you have a look at PR #8224. After noticing that DDE does not work with any modern browser and all tested browsers run fine via command line invocation, I ripped out all of the DDE support. A testbuild is available from https://github.com/apache/netbeans/suites/33993818897/artifacts/2543615585 I tested:
|
I reviewed #8224 and I am getting a 404 error message at the link you provided.
…________________________________
From: Matthias Bläsing ***@***.***>
Sent: Wednesday, February 5, 2025 3:58 PM
To: apache/netbeans ***@***.***>
Cc: rockyAdmin ***@***.***>; Mention ***@***.***>
Subject: Re: [apache/netbeans] Browser is not found. UnsatisfiedLinkError (Windows, aarch64) (Issue #8218)
@rockyAdmin<https://github.com/rockyAdmin> could you have a look at PR #8224<#8224>. After noticing that DDE does not work with any modern browser and all tested browsers run fine via command line invocation, I ripped out all of the DDE support.
A testbuild is available from https://github.com/apache/netbeans/suites/33993818897/artifacts/2543615585
I tested:
* Linux-amd64: Firefox and Chrome start fine
* Windows-amd64: Edge, Firefox, Chrome and Opera start fine
—
Reply to this email directly, view it on GitHub<#8218 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BCUAUNDZKSJUTV66G4XHIQT2OJ3OHAVCNFSM6AAAAABWIPUJS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMZYGAYDOMRXGA>.
You are receiving this because you were mentioned.
|
@rockyAdmin the artifact might be gone already. But you can get to the dev build artifact by opening the summary page of the PR workflow run and scrolling to the bottom: https://github.com/apache/netbeans/actions/runs/13166253240?pr=8224 |
@rockyAdmin sorry, I think I screwed that. One of the unittests failed and I restarted them. Right link: https://github.com/apache/netbeans/suites/33993818897/artifacts/2547867181 |
It loaded much better than before.
load time was much faster
loaded all previous version settings
in one test I had it open 20 projects
The only one thing was it still required that
#netbeans_jdkhome="/path/to/jdk"
be set. It did not find the Java Home setting.
If there is any thing else I can do to help let me know.
…________________________________
From: Matthias Bläsing ***@***.***>
Sent: Thursday, February 6, 2025 12:17 PM
To: apache/netbeans ***@***.***>
Cc: rockyAdmin ***@***.***>; Mention ***@***.***>
Subject: Re: [apache/netbeans] Browser is not found. UnsatisfiedLinkError (Windows, aarch64) (Issue #8218)
@rockyAdmin<https://github.com/rockyAdmin> sorry, I think I screwed that. One of the unittests failed and I restarted them. Right link: https://github.com/apache/netbeans/suites/33993818897/artifacts/2547867181
—
Reply to this email directly, view it on GitHub<#8218 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BCUAUNCJ7FFQPDE3D4V6ZJL2OOKL3AVCNFSM6AAAAABWIPUJS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBQGUYTKMBRGE>.
You are receiving this because you were mentioned.
|
@rockyAdmin thank you. So I understand, that you tested on windows arm64 and tested a setup like you described in the original text? So the browser was correctly opened and it was the correct browser? |
Yes windows 11 Pro , arm64. Yes, recompiled several projects on seperate installs and selected run from the project dropdown. Yes, it correctly opened and it was the correct browser and I made it switch from browser one to another no issue. The correct browsers are loaded in the dropdown and the correct browser is marked as default.
The projects I used for the test are JSF. One thing I did notice "that is not part of this issue" is that if you select a specific "xhtml" file and then select run file: it does nothing, no error displayed or browser opened.
I was working with this version several hours today it seems to respond much faster.
…________________________________
From: Matthias Bläsing ***@***.***>
Sent: Thursday, February 6, 2025 2:49 PM
To: apache/netbeans ***@***.***>
Cc: rockyAdmin ***@***.***>; Mention ***@***.***>
Subject: Re: [apache/netbeans] Browser is not found. UnsatisfiedLinkError (Windows, aarch64) (Issue #8218)
@rockyAdmin<https://github.com/rockyAdmin> thank you. So I understand, that you tested on windows arm64 and tested a setup like you described in the original text? So the browser was correctly opened and it was the correct browser?
—
Reply to this email directly, view it on GitHub<#8218 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BCUAUNG5L47HCKDICGSZH332OO4DRAVCNFSM6AAAAABWIPUJS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBQHA2DIOBUGE>.
You are receiving this because you were mentioned.
|
I was working on a win 11 pro x64 today and tested the update. I ran better then the currently installed win installer version.
It also had and issue not finding the JaveHome setting and having to declare it in the config file.
If there is anything else I can do just let me know.
…________________________________
From: Matthias Bläsing ***@***.***>
Sent: Thursday, February 6, 2025 2:49 PM
To: apache/netbeans ***@***.***>
Cc: rockyAdmin ***@***.***>; Mention ***@***.***>
Subject: Re: [apache/netbeans] Browser is not found. UnsatisfiedLinkError (Windows, aarch64) (Issue #8218)
@rockyAdmin<https://github.com/rockyAdmin> thank you. So I understand, that you tested on windows arm64 and tested a setup like you described in the original text? So the browser was correctly opened and it was the correct browser?
—
Reply to this email directly, view it on GitHub<#8218 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BCUAUNG5L47HCKDICGSZH332OO4DRAVCNFSM6AAAAABWIPUJS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBQHA2DIOBUGE>.
You are receiving this because you were mentioned.
|
Thanks for testing.
This is a known problem with the launcher code on Windows, and not related to this issue. It requires the JDK to be set. The current ASF installer writes the JDK location into the config file for you. |
Apache NetBeans version
Apache NetBeans 24
What happened
no browsers show up in the browser dop down and the following silent error is produced and for existing project sometimes it also displays in the output window.
Exception:
Language / Project Type / NetBeans Component
No response
How to reproduce
new surface pro with win jdk,-21 and win 11os and new install of
Netbeans -24 common zip version.
create new web project with ant: compile and run. Expect browser to load and display default index;
Did this work correctly in an earlier version?
No / Don't know
Operating System
win 11 on a surface pro
JDK
microsoft-jdk-21.0.6-windows-aarch64
Apache NetBeans packaging
Apache NetBeans binary zip
Anything else
problem happens everytime
Are you willing to submit a pull request?
No
The text was updated successfully, but these errors were encountered: