I am unable to generate a folder/HTML report of jmeter in the command line. I have previously upgraded to the latest java and somehow it did not work. I have downloaded jdk8 but encountered this message below: jmeter: line 128: [: : integer expression expected jmeter: line 199: /Library/Internet Plug-Ins/Java…
Tag: macos
Unable to cast Playlist to FolderPlaylist using obstmusic Java applescript wrapper for MacOS Music app
Trying to use https://github.com/japlscript/obstmusic to talk to Apple Music app on macOS with Java, I used to write native AppleScript and then java applescript library but that was removed from Java. In this method it looks for a existing folder playlist called songkong, it it finds it then returns it. If n…
JTable multiple selection on Mac OS X
I have a Swing application and we are having a problem with some Mac users and JTable components. The tables have this selection mode set: On Windows with this selected you can: select a single row select contiguous rows by holding the mouse and dragging select contiguous rows by clicking the first row to sel…
java_home is not read by hadoop
I installed java8 with brew install –cask adoptopenjdk/openjdk/adoptopenjdk8 but i think i messed things up, when i type echo $JAVA_HOME it gives /usr/bin/java when i type java -version it gives java version “1.8.0_311” Java(TM) SE Runtime Environment (build 1.8.0_311-b11) Java HotSpot(TM) 6…
Maven shows no colors in macOS terminal
I installed Maven (the latest version, 3.8.3) via Homebrew (brew install maven) on a Mac running the latest macOS Monterey (12.0.1, Apple Silicon). When I run any mvn command in the terminal, the output is plain white with no colors and no bold text. I tried the same command (also version 3.8.3) on my older M…
./gradlew The operation couldn’t be completed. Unable to locate a Java Runtime
When I run ./gradlew from project folder I get: The same with java: I installed JDK in Android studio, seems it’s installed in ~/Library/Android/sdk/sources/android-28 Setting export JAVA_HOME=/Users/mrgloom/Library/Android/sdk/sources/android-28/ or export JAVA_HOME=/Users/mrgloom/Library/Android/sdk p…
ProcessBuilder’s inputstream empty depending of OS
I made this simple piece of code to test ProcessBuilder: It works in Windows (returns python version of my system) but the same code in my macbook returns end of line, so basically empty. ¿This needs further configuration according to the OS? ¿why is this happening? Answer What error code are you getting? The…
Can you catch a “package x does not exist” error in Java?
I’m using this code to set the macOS dock icon of my JavaFX app: I can’t run the app on Windows because it throws the error “java: package com.apple.eawt does not exist” How can I catch a “package x does not exist” error or check if it exists at runtime? Answer You can̵…
Opening app on macOS 11 Big Sur from JavaFX application randomly fails with kLSNoExecutableErr
We have a desktop JavaFX application (well, TornadoFX) that downloads an archive, extracts another app from it and launches this app with macOS open command. Simplified kotlin code looks like: This has worked for years on older versions of macOS (10.15 and earlier) but now with macOS 11 Big Sur launching the …
Malware on Java update for mac os x [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …