tmulle commented on issue #3467:
URL: https://github.com/apache/netbeans/issues/3467#issuecomment-1015057137
@oyarzun ok, that might have worked!
Just a small change:
1. I had to copy the files built to **MacOSX_arm-64** and not
**MacOSX-arm**.
The _org.netbeans.modules.nativeexecution.api.util.HelperUtility.java_ class
builds the file it's looking for as '_MacOSX_cpufamily_bitness_'
Here is where the **path** is used in that class..path is set to
"_bin/nativeexecution/MacOSX-arm_64/pty_"
Using the original **MacOS-arm** as you mentioned causes a
"_MissingResourceException_"
```
protected File getLocalFile(final ExecutionEnvironment env)
throws ParseException, MissingResourceException {
InstalledFileLocator fl = InstalledFileLocatorProvider.getDefault();
MacroExpander expander = MacroExpanderFactory.getExpander(env);
String path = expander.expandPredefinedMacros(pattern);
File file = fl.locate(path, codeNameBase, false);
if (file == null || !file.exists()) {
throw new MissingResourceException(path, null, null); //NOI18N
}
return file;
}
```
Once I had the correct directory, I then could open the terminal and
according to Activity Monitor the PTY process was Apple instead of Intel which
means it worked.
<img width="1456" alt="Screen Shot 2022-01-17 at 11 08 04 PM"
src="https://user-images.githubusercontent.com/5183186/149869833-f0dc3ee2-cf3c-422d-9944-1a28db67ca5a.png">
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists