Same behaviour though.
I have Monterey and it seems the system should automatically detect if Rosetta is needed. That's why they removed the "Open with Rosetta" checkbox in the "Get info" window.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
According to various articles on the web, Rosetta can be manually installed via the following terminal command:
softwareupdate --install-rosetta
Have you installed Rosetta that way?
Also, perhaps rebooting after installing Rosetta might help.
Last edit: Nam-Quang Tran 2022-11-18
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2022-11-18
Hi,
Yes I indeed installed it that way. The command "pkgutil" I wrote earlier was the one I found that allows to check if it has been properly installed. So that seems to be the case.
I also rebooted twice : first time I selected "open existing windows when logging back", and then without selecting this option to have a really clean login.
Keeps on giving me the same error.
To add a point, I am trying with both the DMG app, and the portable app launching the DocFetcher-macOS script.
When launching the .app, the window opens and closes instantly and I am not able to see error logs, and launching the script shows me the error I copied before.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2022-11-18
I tried both solutions and still get the same error every time.
I can tell the system is using rosetta as per the answer in the page you told me :
With the first solution of using terminal with Rosetta always, I launch the command arch and it returns i386
For the second solution, the commands show me i386 and arm64 depending on the arch -xxx command I try.
I also tried to directly edit the mac script and launching :
On that page, select the following parameters:
- Operating System: macOS
- Package Type: JRE
For the "Version" parameter, you might have to use one of the older Java versions (8, 11, etc.) to run DocFetcher. Java 8 is only available for the x64 architecture though.
I'm not sure whether you will need a Java runtime built for x64 or for aarch64. You might have to try both, possibly in combination with Rosetta.
Run "java -version" in the terminal to check which Java runtime will be selected when you try to launch DocFetcher.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2022-11-18
Finally !
The trick was to use an i386 Java... Although I was trying to force the use of i386 with Rosetta, I was always trying it with a Java built for ARM, so it simply could not work.
Downloading a JRE built for i386 at https://bell-sw.com/pages/downloads/#downloads (the link you provided was to download a version of eclipse), and forcing the system to use that Java in the launching script, I don't even have to force the arch.
And now the application launches well, with only some messages that I guess may not have too much importance :
The link I provided was correct. The page says "Eclipse Temurin", which looks like a version of the Eclipse IDE, but is actually a Java runtime under the wing of the Eclipse Foundation. Confusing, I know. ¯\_(ツ)_/¯
The new error messages are harmless. DocFetcher spits out error messages like these all the time.
Last edit: Nam-Quang Tran 2022-11-18
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2022-11-18
Perfect, many thanks once again !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For anyone still affected by this issue, please try upgrading to DocFetcher 1.1.26, which comes with its own Java runtime as well as code signing and notarization.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have a macBook PRO with an ARM processor : M1, and the current DocFetcher cannot launch because of that.
The error when launching is :
mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e))Would it be possible to make a compatible version ?
Full error :
Thanks in advance,
Phil.
Last edit: Anonymous 2022-11-18
Hi,
is Rosetta installed on your system?
Best regards
q:-) <= Quang
Hi,
I didn't, but just installed it:
Same behaviour though.
I have Monterey and it seems the system should automatically detect if Rosetta is needed. That's why they removed the "Open with Rosetta" checkbox in the "Get info" window.
According to various articles on the web, Rosetta can be manually installed via the following terminal command:
softwareupdate --install-rosettaHave you installed Rosetta that way?
Also, perhaps rebooting after installing Rosetta might help.
Last edit: Nam-Quang Tran 2022-11-18
Hi,
Yes I indeed installed it that way. The command "pkgutil" I wrote earlier was the one I found that allows to check if it has been properly installed. So that seems to be the case.
I also rebooted twice : first time I selected "open existing windows when logging back", and then without selecting this option to have a really clean login.
Keeps on giving me the same error.
To add a point, I am trying with both the DMG app, and the portable app launching the DocFetcher-macOS script.
When launching the .app, the window opens and closes instantly and I am not able to see error logs, and launching the script shows me the error I copied before.
How about this:
Run the Terminal app in Rosetta: https://apple.stackexchange.com/questions/409746/run-everything-in-rosetta-2-on-silicon-mac
In the Terminal app, launch the DocFetcher-macOS script.
It's also possible to run a script in Rosetta without running the entire terminal in Rosetta: https://stackoverflow.com/questions/71065636/how-can-i-run-a-command-or-script-in-rosetta-from-terminal-on-m1-mac
Last edit: Nam-Quang Tran 2022-11-18
I tried both solutions and still get the same error every time.
I can tell the system is using rosetta as per the answer in the page you told me :
With the first solution of using terminal with Rosetta always, I launch the command arch and it returns i386
For the second solution, the commands show me i386 and arm64 depending on the arch -xxx command I try.
I also tried to directly edit the mac script and launching :
But to no avail
Perhaps installing an alternative Java runtime will help. You can get one from here:
https://adoptium.net/temurin/releases/
On that page, select the following parameters:
- Operating System: macOS
- Package Type: JRE
For the "Version" parameter, you might have to use one of the older Java versions (8, 11, etc.) to run DocFetcher. Java 8 is only available for the x64 architecture though.
I'm not sure whether you will need a Java runtime built for x64 or for aarch64. You might have to try both, possibly in combination with Rosetta.
Run "java -version" in the terminal to check which Java runtime will be selected when you try to launch DocFetcher.
Finally !
The trick was to use an i386 Java... Although I was trying to force the use of i386 with Rosetta, I was always trying it with a Java built for ARM, so it simply could not work.
Downloading a JRE built for i386 at https://bell-sw.com/pages/downloads/#downloads (the link you provided was to download a version of eclipse), and forcing the system to use that Java in the launching script, I don't even have to force the arch.
And now the application launches well, with only some messages that I guess may not have too much importance :
Thanks a lot for your help.
PD : The script I am now using has :
Glad to see the issue is resolved now.
The link I provided was correct. The page says "Eclipse Temurin", which looks like a version of the Eclipse IDE, but is actually a Java runtime under the wing of the Eclipse Foundation. Confusing, I know. ¯\_(ツ)_/¯
The new error messages are harmless. DocFetcher spits out error messages like these all the time.
Last edit: Nam-Quang Tran 2022-11-18
Perfect, many thanks once again !
For anyone still affected by this issue, please try upgrading to DocFetcher 1.1.26, which comes with its own Java runtime as well as code signing and notarization.