Questions tagged [java]
Java is a cross-platform programming language created by Sun Microsystems and is now owned by Oracle. Do not confuse this tag with JavaScript or JScript. Questions about installing/running Java on macOS are welcome, questions about Java programming must be asked on StackOverflow.
504 questions
0
votes
1
answer
64
views
Failed applying an ad-hoc signature to /usr/local/Cellar/openjdk/25/libexec/openjdk.jdk/Contents/MacOS/libjli.dylib
I am using brew upgrade to upgrade openjdk from 24.0.2 to 25 on my Ventura 13.7.8 macOS.
It looks to be successful mostly, except for one error of an ad-hoc signature on a dylib file:
==> ...
0
votes
2
answers
145
views
Why does TinyMediaManager crash immediately on launch despite reinstall and reverting to older version of the app?
The app TinyMediaManager, which I have used for years, today is crashing immediately on launch (i.e. within a second). I have not been able to see anyone else have these issues online, and have tried ...
1
vote
0
answers
304
views
Unable to Load Java Runtime Environment on Mac
I have looked all over for an answer to this, but couldn't find anything helpful. Everything was working fine until I decided to migrate from Oracle's Java to BellSoft Liberica because of better ...
1
vote
2
answers
61
views
Having a second java version available
Running MacOS 12 on Intel hardware. Current java runtime is Java 8:
Java(TM) SE Runtime Environment (build 1.8.0_341-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.341-b10, mixed mode)
and this is /...
0
votes
1
answer
89
views
clear jEdit cache?
I've been using jEdit for years on Mac
Recently I believe it crashed, or something must have happened, and it cannot start since then. I've been using jar installed file before, now I came across this ...
0
votes
2
answers
435
views
I would like to preempt a command on my mac (specifically, Keytool)
I need, when generating Java keystores (which I do frequently), to generate them under the Java 8 version of Keytool. If I use the keytool in the default Java version, they are incompatible with the ...
0
votes
0
answers
160
views
Java Error java.lang.UnsupportedClassVersionError
Trying to run
java -Xmx4G -Xms4G -jar launch.jar
but that leads to error
Exception in thread "main" java.lang.UnsupportedClassVersionError: launch.jar has been
compiled by a more recent ...
1
vote
0
answers
142
views
Manage "open at login" items programmatically from CLI
I'd like to control a Java (not swift / native) application startup during login. While I can add plists-s to user's LaunchAgents, this does not show up as a login item in system settings. How can I ...
1
vote
1
answer
3k
views
Library/Internet Plug-Ins/JavaAppletPlugin.plugin missing on M1 Mac
I am trying to run a Java Applet but it says it cannot find Java because the directory Library/Internet Plug-Ins/JavaAppletPlugin.plugin/... does not exist.
I have installed multiple Java versions but ...
1
vote
1
answer
3k
views
How to fix error "java.lang.UnsupportedClassVersionError" on MacOS?
I am trying to run a java file using the command
java -jar BlueMap-3.14-cli.jar
but that leads to an error
Exception in thread "main" java.lang.UnsupportedClassVersionError: de/bluecolored/...
2
votes
1
answer
3k
views
How to fix "Error: Unable to access jarfile" on MacOS?
On MacOS Ventura (13.3.1) I am trying to run a jar file
java -jar somefile.jar
and get the error
Error: Unable to access jarfile somefile.jar
Having looked for how to solve this it seems I have to ...
0
votes
0
answers
577
views
Huge swap usage due to multiple Java instances
I have 16 inch MacBook Pro M1 Pro with 16 GB of RAM and use it for Android Development
I am suffering from high memory/swap usage that causes the device to be slow due to multiple Java instances that ...
-1
votes
2
answers
2k
views
How do I resolve a spurious "No suitable Java version found" message?
Usually, when I a terminal session on an IBM Midrange box, I use a Java-based TN5250 emulator I designed and helped write (but which, alas, is not available to the public except as part of another ...
0
votes
0
answers
637
views
macOS 13 Ventura : bypass unidentified developer alert
I try to run the Eclipse 2023.03 (latest) for mac os x64 binary.
I got every time the Unidentified Developer alert, so I'm unable to run Eclipse.
I tried :
sudo spctl --master-disable, but it tells ...
2
votes
0
answers
130
views
Setting global/system variable visible from JVM in console and Eclipse
How to define global/system variable in OSX latest versions (Monterey/Ventura) that should be visible from console (JVM) and IDE (preferable Eclipse, IntelliJ has special knowledge how to handle this ...