macos-mojave

Robot.mouseMove does not work at all in Mac OS X

谁说我不能喝 提交于 2019-12-12 10:54:20
问题 I created java file in IntelliJ IDE, with that code import java.awt.AWTException; import java.awt.MouseInfo; import java.awt.Robot; public class JavaRobotExample { public static void main(String[] args) { int x = 12, y = 300; try { Robot robot = new Robot(); robot.mouseMove(x, y); int xAct = (int) MouseInfo.getPointerInfo().getLocation().getX(), yAct = (int) MouseInfo.getPointerInfo().getLocation().getY(); String sPred = String.format("Predicted mouse location : %, d, %, d", x, y), sAct =

Netbeans 8.0.1 not opening on MacOS Mojave

浪尽此生 提交于 2019-12-12 09:29:06
问题 After upgrade to Mojave, Netbeans 8.0.1 is not opening anymore ; it shows the splash screen, but closes right after. It probably has to be with a JDK update; which JDK version it supports and how can i downgrade the JDK Thanks ! 回答1: NetBeans reads a configuration file named netbeans.conf on startup. It is just a text file containing properties, located in its etc directory within the NetBeans installation. One of the properties it might specify is the path to the default JDK to be used via

com.apple.iTunes AEDeterminePermissionToAutomateTarget is always return -600

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 08:44:11
问题 import ScriptingBridge class iTunesAccess { static func requestAccess() -> Bool { guard #available(OSX 10.14, *) else { return true } if var addressDesc = NSAppleEventDescriptor(bundleIdentifier: "com.apple.iTunes").aeDesc?.pointee { let appleScriptPermission = AEDeterminePermissionToAutomateTarget(&addressDesc, typeWildCard, typeWildCard, true) AEDisposeDesc(&addressDesc) return appleScriptPermission == noErr } return false } } info.plist: <key>NSAppleEventsUsageDescription</key> <string

Xcode: could not load ModelIO.framework, SceneKit.framework, etc

风格不统一 提交于 2019-12-12 07:12:39
问题 Before updating to macOS Mojave my app ran fine without errors, however, I get this error after the update. I have been Googling for 2 days but it seems no one has run into this error yet. Note: The app does run as expected. The 3D model file is in the .scn format. Buildtime error: /scntool:-1: Could not load ModelIO.framework ((null)) /scntool:-1: Could not load SceneKit.framework ((null)) /scntool:-1: Could not load PhysicsKit.framework ((null)) /scntool:-1: Could not load Jet.framework (

Traceback generated for every pip command: 'ImportError: cannot import name ThreadingTCPServer' (macOS homebrew)

旧巷老猫 提交于 2019-12-11 19:34:36
问题 How do I fix my apparently-corrupted Python 2.7.16 install? (fwiw, my Python3 seems to run fine.) It is a homebrew-based, macOS 10.14.6 install. I get a Traceback generated for most every pip command, including 'pip --version' as noted below, with this error: ImportError: cannot import name ThreadingTCPServer . Details below. I've not yet tried to debug the install; ie, the ThreadingTCPServer is defined in one of the Cellar files, but I do not yet understand why it's import fails. Maybe it's

How to enable PHP Intl extension on macOS Mojave?

社会主义新天地 提交于 2019-12-11 17:06:14
问题 I'm trying to install Magento (2.3.0) on macOS Mojave. Magento shows PHP Extension intl. is missing. I tried the below to resolve: Made a copy of php.ini using cp /etc/php.ini.default php.ini Removed ";" before extension=php_intl.dll Restart Apache sudo apachectl restart But the above did not resolve. On checking php -v , i'm seeing the below error: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20160303/php_intl.dll' - dlopen(/usr/lib/php

Freeradius: problems with Open Directory, no rlm_opendirectory.* existing

北战南征 提交于 2019-12-11 16:58:26
问题 Im trying to pass from macOS Server to FreeRADIUS and I am following Apple's macOS Server— Service Migration Guide | March 2018 When trying to configure FreeRadius I have to verify the existence of some files related to Open Directory $ ls /usr/local/lib/rlm_opendirectory. You should see the following in the output: rlm_opendirectory.a rlm_opendirectory.dylib rlm_opendirectory.la But nothing is there! Later in "Set up users" When Testing the setting through: $ sudo /usr/local/Cellar

How to fix lldb stopping immediately after run call?

为君一笑 提交于 2019-12-11 10:04:17
问题 I'm using lldb on Mojave with Xcode 10.2.1. As soon as command 'run' to lldb, this happens: (lldb) target create "<executable>" Current executable set to '<executable>' (x86_64). (lldb) run Process 95857 launched: '/Users/<path to executable>' (x86_64) Process 95857 stopped * thread #2, stop reason = exec frame #0: 0x0000000102491000 dyld`_dyld_start dyld`_dyld_start: -> 0x102491000 <+0>: popq %rdi 0x102491001 <+1>: pushq $0x0 0x102491003 <+3>: movq %rsp, %rbp 0x102491006 <+6>: andq $-0x10,

Trying to adapt Menu Icon to Mojave dark mode

拟墨画扇 提交于 2019-12-11 08:54:47
问题 After switching to mojave I´m trying to adapt the menu icon when the mode has changed. My app: "Application is agent (UIElement)" doesn´t have windows initially. At the moment I´m using the NSMenuDelegate function menuWillOpen which works so far but the user has to open the menu to get the icon changed. I wonder if there is a way to detect that the appearance has changed whithout opening the menu. I already tried applicationDidChangeScreenParameters from NSApplicationDelegate without success.

Can't compile C++ 'hello world' with `#include` after upgrading to Mojave

别来无恙 提交于 2019-12-11 08:47:54
问题 CS student, compiling worked fine before upgrading to Mojave. After doing so I cannot get anything to work if it has an include statment. For example: #include <iostream> int main() { std::cout << "length:" << 10 << std::endl; return 0; } On compiling: $ g++ -ferror-limit=3 main2.cpp -o test In file included from main2.cpp:1: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iostream:38: In file included from /Applications