Replies: 2 comments 11 replies
-
Hi, it's very hard to solve this issue without having access to the actual app code. First of all, you should replace the Then, make sure to change the executable name in This project aims to support even the old Apple and Oracle Java Plist keys, so it should work without big tweaks to the If you need further help, post the content of the |
Beta Was this translation helpful? Give feedback.
-
Try to replace `<key>Java</key>` with `<key>JavaX</key>` and see if it works now…
The old Apple definitely doesn’t work on M1.
The universalJavaApplicationStub doesn’t care what Java version you use. You can see what Java versions are found and selected for execution by the stub if you open `Console.app` and filter for `syslog`. The name of your app should appear with quite a bunch of log messages by the stub...
You could copy & paste them here for further help of it doesn’t work...
|
Beta Was this translation helpful? Give feedback.
-
Hi
Ok so I will start by saying I am totally out my depth. Just created github acc. I have a client with a relatively unknown Java application but it is really functional for what he needs. It works on Windows and Apple but since the client purchased a new MacBook Pro with M1 architecture, the software has stopped working. I have reached out to the developer and he is no longer supporting the application but has given me the source code. I am a IT Administrator who is starting out with getting into software dev and wanting to help find a work around to this issue. Basically the application won't open and gives below error:
Process: JavaApplicationStub [6396]
Path: /Applications/appname.app/Contents/MacOS/JavaApplicationStub
Identifier: com.appname.appname.appname
Version: ???
Code Type: X86-64 (Translated)
Parent Process: ??? [1]
Responsible: JavaApplicationStub [6396]
User ID: 501
Date/Time: 2021-03-01 20:47:59.864 +1100
OS Version: macOS 11.2.2 (20D80)
Report Version: 12
Anonymous UUID: B8AB3F14-36C9-28A0-1215-9FD296765929
Sleep/Wake UUID: 63826CBC-A1E6-48DA-BE94-0F20B48EF0C6
Time Awake Since Boot: 2800 seconds
Time Since Wake: 53 seconds
System Integrity Protection: enabled
Crashed Thread: 0
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: DYLD, [0x1] Library missing
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
dyld: Using shared cache: ED582735-28E0-3BED-8517-F876F6C67F0B
Library not loaded: /System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Versions/A/JavaApplicationLauncher
Referenced from: /Applications/APPNAME/APPNAME.app/Contents/MacOS/JavaApplicationStub
Reason: image not found
Binary Images:
0x100a2a000 - 0x100a2afff + (???) <2EF297DB-A500-C676-D2E9-3AF8AA29E602>
0x200b40000 - 0x200bdbfff dyld (832.7.3) <0D4EA85F-7E30-338B-9215-314A5A5539B6> /usr/lib/dyld
0x7ffdffee1000 - 0x7ffdfff54fff +runtime (203.30) /Library/Apple/*/runtime
Model: MacBookPro17,1, BootROM 6723.81.1, proc 8:4:4 processors, 8 GB, SMC
Graphics: kHW_AppleM1Item, Apple M1, spdisplays_builtin
Memory Module: lp_ddr4
AirPort: spairport_wireless_card_type_airport_extreme, wl0: Dec 31 2020 21:39:03 version 18.20.222.20.7.8.104 FWID 01-1b2645bc
Bluetooth: Version 8.0.3d9, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB 3.1 Bus
USB Device: USB 3.1 Bus
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
I installed AZUL's open JDK build for ARMv8 (8u282b08 Zulu:8.52.0.23) and after many hours trying to figure out what may be wrong I have come across the universalJavaApplicationStub and it seems it could solve the issue if I knew how to use it correctly or it was tweaked to work with Apple M1 architecture. As you can see from the error it is a Intel x86-64 app and I believe it should get translated by Rosetta 2. The problem app did not prompt for Rosetta to be installed but I followed instructions from another blog to manually install. It seems that some issues may lie in the apps info.plist file which I tried to amend to use the universalJavaApplicationStub but still no luck. However, I also tested on a older Apple Mac without M1 chip but on Big Sur and it would not work either so maybe it is not the M1 chip itself and something with Big Sur and Java apps that needed the old native Apple java build installed. The app did work on Catalina.
Maybe I need to rebundle the App differently or something. Think its was bundled for Apple with a program called Packager.
Any help or advise would be greatly appreciated. Maybe this is the wrong discussion topic but the universalJavaApplicationStub seemed to be the closest I could find to alluded to the problem could be.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions