Sample Header Ad - 728x90

Ask Different (Apple)

Q&A for power users of Apple hardware and software

Latest Questions

0 votes
1 answers
74 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 topic : https://apple.stackexchange.com/questions/426713/how-to-help-the-jedit-application-find-jav...
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 topic : https://apple.stackexchange.com/questions/426713/how-to-help-the-jedit-application-find-java and almost make it work... but it reaches the same point as .jar installation It seems there is some cache that is not cleared neither with app nor by java reinstall. (I tried a couple of times). What I can see is
12:51:36 PM [AWT-EventQueue-0] [warning] View: Buffer  DI 14SU2 9443 defect/log63.log doesn't exist
12:51:36 PM [AWT-EventQueue-0] [warning] View: Buffer  DI 14SU2 9443 defect/SEP64D989C24B5E.cnf.xml doesn't exist
12:51:36 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: Exception in thread "AWT-EventQueue-0" 
12:51:36 PM [AWT-EventQueue-0] [error] AWT-EventQueue-0: java.lang.ClassCastException: class java.lang.String cannot be cast to class org.gjt.sp.jedit.Buffer (java.lang.String is in module java.base of loader 'bootstrap'; org.gjt.sp.jedit.Buffer is in unnamed module of loader 'app')
"DI 14SU2 9443 defect/" is partial name of folder where I have/had logs I analyzed. Removing, recreating this folder or files do not help. It always crashes after same line..
Miguel M (1 rep)
Feb 5, 2024, 11:50 AM • Last activity: Jun 30, 2025, 12:08 AM
1 votes
1 answers
1822 views
Using "Jar Launcher" on High Sierra how do I pass command line arguments to a java app (jar)
Is it possible to use "Jar Launcher" on Mac to pass command line arguments to a java app? For example: open myApp.jar --args -hello This ought to run myApp and pass it "-hello" but it doesn't. I'm on High Sierra 10.13.6. This comes with a "Jar Launcher". It's /System/Libary/CoreServices/Jar\ Launche...
Is it possible to use "Jar Launcher" on Mac to pass command line arguments to a java app? For example: open myApp.jar --args -hello This ought to run myApp and pass it "-hello" but it doesn't. I'm on High Sierra 10.13.6. This comes with a "Jar Launcher". It's /System/Libary/CoreServices/Jar\ Launcher.app. I can run the jar file with Jar Launcher, I did it from Finder and it works, but without command line arguments. After that I can run a command line "open myApp.jar" and that works too, the open command uses Jar Launcher to open it. So far so good. Now I want to pass arguments, let's say "-hello" I tried "open myApp.jar --args -hello". That does not work, the application does not receive the hello argument. I can't figure out how to do this. Maybe the problem is with "Jar Launcher", maybe it won't pass arguments through to the java app? I know this can be done by installing a full JDK and using the java command instead of the built-in Jar Launcher, or compiling my jar into a Mac executable. I'm not a developer, I'd like to know if I can achieve this just using what's shipped on my Mac. Earlier versions of MacOs shipped with a more complete Java environment, and a lot of the help I find out there refers to earlier versions.
jay613 (2890 rep)
Feb 14, 2019, 09:45 PM • Last activity: May 24, 2025, 09:00 AM
1 votes
0 answers
216 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 support for JavaFX and licensing. I have installed Liberica and in /Library/Java/JavaVirtualMachines I ha...
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 support for JavaFX and licensing. I have installed Liberica and in /Library/Java/JavaVirtualMachines I have
liberica-jdk-8-full.jdk
liberica-jre-8-full.jre (I know the JRE is duplicative, but installing it was one of my attempts to solve this issue.) java -version results in
openjdk version "1.8.0_452"
OpenJDK Runtime Environment (build 1.8.0_452-b11)
OpenJDK 64-Bit Server VM (build 25.452-b11, mixed mode) IntelliJ works fine, and java -jar abc.jar works fine. But if I double-click a java *.app (which worked fine before), I get the message in the subject line. I am running MacOS 15.4.1 on Mac (Intel). Thanks in advance.
Ron Riggs (11 rep)
May 15, 2025, 05:43 AM
9 votes
2 answers
7409 views
Obtain Java 11 for macOS?
I know in recent years the Java development cadence has changed, becoming much more rapid and more predictably scheduled. New plans were announced for regular Long-Term Support (LTS) releases. And I have heard Oracle changed their licensing terms for their Oracle-branded releases. All of this has le...
I know in recent years the Java development cadence has changed, becoming much more rapid and more predictably scheduled. New plans were announced for regular Long-Term Support (LTS) releases. And I have heard Oracle changed their licensing terms for their Oracle-branded releases. All of this has left me confused as to how and where I can obtain Java 11 or later for my Mac. Can someone give some general overview of my options?
Basil Bourque (13982 rep)
Dec 20, 2018, 02:34 AM • Last activity: Dec 14, 2024, 09:39 PM
2 votes
1 answers
731 views
How to install a Java .jar file as a Java extension?
I'm on MacOS 11.6 running java 19.0.2. According to [Oracle][1], I should be able to use extension classes by putting .jar files in: > jre/lib/ext The closest directory I could find was > Library/Java/Extensions However this did not work. For this particular example I am just trying to use junit, bu...
I'm on MacOS 11.6 running java 19.0.2. According to Oracle , I should be able to use extension classes by putting .jar files in: > jre/lib/ext The closest directory I could find was > Library/Java/Extensions However this did not work. For this particular example I am just trying to use junit, but in general were is my extensions folder if the one I have is not correct. I do not want to use any additional tools, but want to classes found per the docs above in the extensions folder. Seems like more relevant documentation is here - Oracle - JRE 19 .
bobby wang (121 rep)
Feb 9, 2023, 09:48 PM • Last activity: Oct 28, 2024, 02:02 AM
0 votes
1 answers
65 views
Cannot find and delete the openjdk16
I don't remember what action caused the system to use openjdk16 by default, I wanted to go back to jdk8 so I chose to delete openjdk16, but I don't see a folder for openjdk in the application/java/javaVirtualMachines folder on my computer, so I don't know where I can find it and delete it. Ignore th...
I don't remember what action caused the system to use openjdk16 by default, I wanted to go back to jdk8 so I chose to delete openjdk16, but I don't see a folder for openjdk in the application/java/javaVirtualMachines folder on my computer, so I don't know where I can find it and delete it. Ignore the adoptopenjdk folder in the picture, that's me struggling.. enter image description hereenter image description here
abcd1 (1 rep)
Dec 7, 2022, 01:44 AM • Last activity: Oct 25, 2024, 11:06 PM
1 votes
2 answers
43 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 `/usr/bin/java`. For performance measurements, I would like to have also a higher Java version availa...
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 /usr/bin/java. For performance measurements, I would like to have also a higher Java version available; currently I'm only interested in JRE, not JDK. I want to see whether the same Java Byte code exhibits different timing und different JRE versions (perhaps due to different garbage collectors?). My plan was to install a higher Java in, say, $HOME/java. When I run my application, I can explicitly specify the absolute path to the java I want to run. However I don't know how to do this. This is how I proceeded: 1. I googled for the possibility to download JRE, but didn't find anything. 1. I then found the site http://java.oracle.com/ and it offers only the SDK versions. Well, it's overkill, but then let's download the whole SDK. This should also include the runtime. 1. I downloaded https://download.oracle.com/java/21/latest/jdk-21_macos-x64_bin.dmg 1. I double-clicked the DMG and found inside a file JDK 21.0.4.pkg, which seems to be the installer. 1. Executing the installer, I found that there are **written** menu entries _Instruction_, _Destination select_, _Installation type_, _Installation_, but I can not go to the item _Destination select_. The installation always proceeds directly to _Installation type_, and offers **only** the "standard installation" (which most likely means replacing my current Java by the new one). So I wonder what I can do to have two Javas on my Mac? If I could get from somewhere just the binaries in a zip file, I could unpack them into a directory of my liking ....
user1934428 (1458 rep)
Sep 3, 2024, 01:37 PM • Last activity: Sep 3, 2024, 02:04 PM
3 votes
1 answers
1663 views
Automatically switch Touch Bar to function keys for Minecraft only
Under System Preferences → Keyboard → Shortcuts → Function Keys, you can register apps to always show the function keys on the Touch Bar. I want to add Minecraft. However, Minecraft has an unusual structure where the app is actually just a launcher, then you hit a button and it opens the game in a J...
Under System Preferences → Keyboard → Shortcuts → Function Keys, you can register apps to always show the function keys on the Touch Bar. I want to add Minecraft. However, Minecraft has an unusual structure where the app is actually just a launcher, then you hit a button and it opens the game in a Java window. That means the function keys then show up in the launcher, but not the game proper. I’ve tried adding the “java” executable to the function keys list by right clicking it while running, selecting Options → Show in Finder, then both dragging and dropping that file into the window and navigating to it from the Function Keys window, but in both cases the GUI didn’t accept the file to be added to Function Keys list. macOS version: 13.4 Minecraft version: 1.19.4
twhb (201 rep)
May 20, 2021, 01:15 AM • Last activity: Aug 26, 2024, 11:14 AM
0 votes
2 answers
5645 views
Java Update not working on Macbook
I have a Macbook Pro with running OS 12.6. `/usr/bin/java -version` shows > java version "1.8.0_341" > Java(TM) SE Runtime Environment (build 1.8.0_341-b10) > Java HotSpot(TM) 64-Bit Server VM (build 25.341-b10, mixed mode) Since I'm running applications which require a higher Java version ([jEdit][...
I have a Macbook Pro with running OS 12.6. /usr/bin/java -version shows > java version "1.8.0_341" > Java(TM) SE Runtime Environment (build 1.8.0_341-b10) > Java HotSpot(TM) 64-Bit Server VM (build 25.341-b10, mixed mode) Since I'm running applications which require a higher Java version (jEdit for instance), I want to update Java. This is what I tried: I went to SystemPreferences/Java and the Java Control Panel opens. I go to the "Update" tab. I would now expect to be shown a new Java version, if one is available. However, on top of the panel is only shown something like a rotating circle, most likely indicating that information is being fetched from the internet. This stays like this for arbitrary time (at least for 15 minutes - after this, I lost the patience). It seems that the Java Control Panel can not access the information from the internet. Internet connection itself (wireless) works fine. I tried to use the router at home (FritzBox), and I also used tethering via my iPhone as a personal hotspot (and this in turn using mobile data via its SimCard) - just to rule out the possibility that my FritzBox is blocking some ports which are needed for the update. MacOS Software Update itself works and shows that my Mac is up to date. Could someone explain why the Java update does not work in this way? Do I have to install a private Java-version in my home directory, if I want to have a more recent one?
user1934428 (1458 rep)
Apr 16, 2023, 12:52 PM • Last activity: Aug 7, 2024, 08:06 AM
13 votes
2 answers
1753 views
How to track screentime of Java apps with Catalina
I am using macOS screen time as a mechanism for parental controls. Before updating to Catalina, the screen time tracked the total time a user was logged in with his/her credentials, regardless of what apps they used or games were played. After the update, it tracks some individual apps. The problem...
I am using macOS screen time as a mechanism for parental controls. Before updating to Catalina, the screen time tracked the total time a user was logged in with his/her credentials, regardless of what apps they used or games were played. After the update, it tracks some individual apps. The problem is that screen time is not tracking for example the time used for java apps. E.g with Minecraft, only the Minecraft launcher is tracked but not the game itself which runs java. Is there any way to enable the screen time to track the usage of the java apps and/or total login time? Total logged-in time matches with Finder usage time, but open can not add Finder to the list of tracked apps. The question is, is it possible to add java or Finder to the list of the apps tracked by screen time? An alternative solution may be third-party software, but those I haven't yet looked for.
Reni (131 rep)
Nov 16, 2019, 07:09 AM • Last activity: Jan 9, 2024, 11:39 PM
3 votes
0 answers
2095 views
JavaLauncher.app will not launch a JAR on double-click in the Finder, will launch from command line
MacBook Pro M1, MacOS Ventura 13.1 -- but same problem over multiple MacOS versions. Java version 17.0.1 -- but same problem using Java 8, 11, etc. Double-click on a Jar in Finder and nothing happens. Have checked all the logs and cannot find any logged error. **Solved one problem** - This is a fat-...
MacBook Pro M1, MacOS Ventura 13.1 -- but same problem over multiple MacOS versions. Java version 17.0.1 -- but same problem using Java 8, 11, etc. Double-click on a Jar in Finder and nothing happens. Have checked all the logs and cannot find any logged error. **Solved one problem** - This is a fat-Jar which has flattened many other library Jars. Found that one of the libraries included **signature** files (in META-INF, SIGNINGC.RSA & SIGNINGC.SF). This Jar would not start either by double-click **or** on the terminal: java -jar MyJar.jar The latter gives a "Class not found" for the main class. Assume that Java examines the Jar, sees the signature files (from some library), takes the signature of the whole fat-Jar and once they do not match ignores the Jar. Since this is the only jar, then it cannot find the main class. *Note: It would be great if an error was printed indicating that "MyJar.jar failed verification and has been ignored" - would have saved a week of investigation!!!* This was solved by creating a script that unpacked the Jar, deleted the signature files, then re-packed the Jar. At least: java -jar MyJar.jar now works. **Unsolved Problem** Even after the above fix, some Jars still will not launch from a double-click. Even worse, **Jar will launch using JavaLauncher from command line**. **Works --** java -jar MyJar.jar **Works --** /System/Library/CoreServices/JavaLauncher.app/Contents/MacOS/JavaLauncher MyJar.jar **Does not work --** double-click the Jar from Finder, **or** right-click, select *Open With* JavaLauncher.app **Update 2023-12-08** Have not had this problem for several months, have now upgraded to MacOS Sonoma 14.1.1 (but think that is irrelevant). Now have a jar which launches OK **twice** with a double-click, but then fails. **Did** manage to get a log from JavaLauncher on the failures - key info appears to be this: > >Exception Type: EXC_CRASH (SIGKILL (Code Signature Invalid)) >Exception Codes: 0x0000000000000000, 0x0000000000000000 >Termination Reason: CODESIGNING 4 Launch Constraint Violation > **BTW** Jar has not been changed, and it did launch successfully twice. (Modified date has not changed either.) So why was JavaLauncher OK for two launches, and now fails. Have the whole log - is there any way to attach it to this question? **SOLVED - WTF** This was compiled for Java 8, actually executing on 21.0.1 - but do not think that matters. Anyway, the application puts up a JDialog for a login to the application. JDialog has Yes and Cancel buttons. If you login, all proceeds normally. If you **Cancel** then the application exits with a System.exit(1) - and get a popup _Java Application Launch Failed_. From that point on, cannot double-click to launch the app (but can launch it from the terminal). All I can think of is that the System.exit(1) sets a flag somewhere that this Jar failed during launch, and therefore all future launch attempts are aborted. If the System.exit(1) is changed to a System.exit(0), then can continue to double-click to launch. Did check the extended attributes on the file, but nothing obvious. Does anyone have a clue??? Seems extremely strange!
JDC (41 rep)
Feb 23, 2023, 09:15 PM • Last activity: Dec 10, 2023, 10:44 PM
10 votes
6 answers
3497 views
How to help the jEdit application find java?
I installed jEdit on my new mac (Intel processor 11.3.1 Big Sur) but it gives me the message **"This application requires that java 11 or later be installed on your computer."** [!["This application requires that java 11 or later be installed on your computer."][1]][1] So I installed java with `brew...
I installed jEdit on my new mac (Intel processor 11.3.1 Big Sur) but it gives me the message **"This application requires that java 11 or later be installed on your computer."** So I installed java with brew install java and followed the instructions to symlink it, and add it to my .zsh PATH. All looks good for java in the terminal:
java --version
openjdk 16.0.2 2021-07-20
OpenJDK Runtime Environment Homebrew (build 16.0.2+0)
OpenJDK 64-Bit Server VM Homebrew (build 16.0.2+0, mixed mode, sharing)
...but how can I tell the jEdit application where my JRE is. I tried installing jedit via homebrew too, but the result was the same. If I run the jar file at the command line then jedit *does* start up, albeit with these errors showing up in the terminal (significant? maybe not):
% /usr/local/opt/openjdk/bin/java -jar /Applications/jEdit.app/Contents/Java/jedit.jar
12:39:14 [AWT-EventQueue-0] [error] OSXAdapter: Could not talk to EAWT:
12:39:14 [AWT-EventQueue-0] [error] OSXAdapter: java.lang.IllegalAccessException: class macosx.OSXAdapter cannot access class com.apple.eawt.Application (in module java.desktop) because module java.desktop does not export com.apple.eawt to unnamed module @1ed7437b
...
2021-10-13 12:39:15.678 java[44580:3291018] JavaNativeFoundation: GetGlobalVM: Failed to locate @rpath/libjvm.dylib for JNI_GetCreatedJavaVMs(). A JVM must be loaded before calling this function.
So that's a workaround, but I kinda want to be able to click on the application icon!
Harry Wood (461 rep)
Sep 2, 2021, 05:30 PM • Last activity: Nov 28, 2023, 10:55 PM
4 votes
2 answers
1652 views
Safari keeps losing cookies
For like two weeks now I'm facing a strange issue with Safari (Version 15.5 (17613.2.7.1.8)) on macOS (Monterey), which keeps "forgetting" all cookies, including log-in ones. That is extremely annoying because it happens really often - maybe every hour? And with most sites nowadays you have to enter...
For like two weeks now I'm facing a strange issue with Safari (Version 15.5 (17613.2.7.1.8)) on macOS (Monterey), which keeps "forgetting" all cookies, including log-in ones. That is extremely annoying because it happens really often - maybe every hour? And with most sites nowadays you have to enter 2FA as well so if you're logged in to multiple sites you're working with for the whole day, I bet I'd have to spend at least an hour every day re-logging to every single one. I've been using Safari almost exclusively for years now and have all credentials stored in Keychain so switching to a different browser is an almost impossible task (I know I can have a look into Keychain for passwords but I'd prefer not to look into it multiple times a day). I'm not aware of any changes to my system, other than uninstalling Java JDK 16.0.2 (I think that was the version...). The reason for uninstalling that was another weird issue - for some reason, whenever I clicked a button on any page, it "clicked" the back button and I got redirected back - this no longer happens after uninstalling Java. I definitely didn't install any browser extensions. Any thoughts what might be causing that and how to fix it?
jnko (41 rep)
Jun 7, 2022, 08:54 AM • Last activity: Sep 27, 2023, 02:49 PM
0 votes
2 answers
404 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 Java on the target systems we manage. I've figured out a way to do this, with a wrapper shell script...
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 Java on the target systems we manage. I've figured out a way to do this, with a wrapper shell script (currently called "keytool8"). And that shell script echoes a message indicating that it's using the Java 8 keytool, before handing off to that keytool. And I have the shell script in a directory that's in my path. But if I rename it to "keytool," and type "keytool" from a command line, I still get the default keytool. Is there a way for my shell script to preempt the default keytool? **MORE INFORMATION, 9/11/2023** I added "/Users/jameslampert/Applications" (the directory where I put my script) to my /etc/paths, so that it now looks like: /Users/jameslampert/Applications /usr/local/bin /System/Cryptexes/App/usr/bin /usr/bin /bin /usr/sbin /sbin and now "echo $PATH" produces /opt/homebrew/bin:/opt/homebrew/sbin:/Users/jameslampert/.nvm/versions/node/v16.0.0/bin:/Users/jameslampert/Applications:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin If I do "which keytool," I get: /usr/bin/keytool Somehow, the default keytool is preempting me, even though /usr/bin is theoretically *after* /Users/jameslampert/Applications in the path.
hbquikcomjamesl (934 rep)
Sep 10, 2023, 09:09 PM • Last activity: Sep 11, 2023, 03:49 PM
0 votes
0 answers
148 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 version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file...
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 version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:756) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:473) at java.net.URLClassLoader.access$100(URLClassLoader.java:74) at java.net.URLClassLoader$1.run(URLClassLoader.java:369) at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:362) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:632) I found this topic but solution **doesn't change anything**. Using macOS 13.4 (22F66); Java version is 1.8.0_371, tried to install Java 17 with Homebrew brew install openjdk@17 Do you have any answer to this, ideally by using only command lines as in [1] ?
W. Bismarck (1 rep)
Aug 17, 2023, 03:25 PM • Last activity: Aug 17, 2023, 03:52 PM
1 votes
3 answers
260 views
Minecraft Immediately Crashes On Launchup
I'm running Mavericks 10.9.5. This is my java version: ![http://prntscr.com/7s9xnw][1] Whenever I started Minecraft up, it would immediately crash. I tried: - Reinstalling Minecraft - Deleting the minecraft folder in Application Support - Reinstalling Java Hints for the problem: - Downloaded the mos...
I'm running Mavericks 10.9.5. This is my java version: <a href=http://prntscr.com/7s9xnw " class="img-fluid rounded" style="max-width: 100%; height: auto; margin: 10px 0;" loading="lazy"> Whenever I started Minecraft up, it would immediately crash. I tried: - Reinstalling Minecraft - Deleting the minecraft folder in Application Support - Reinstalling Java Hints for the problem: - Downloaded the most recent Java. Version 8 Update 45. - Ran this command in terminal: --- sudo mv /usr/bin/java /usr/bin/java-1.6 - Ran this command in terminal: --- sudo ln -s '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Content­s/Home/bin/java' /usr/bin/java I was having troubles with running a plugin, so I thought it was my java. After I did all of that, java wouldn't work at all. I tried to enter "java -version" in terminal, and it would say "unknown command". After that happened, I went to Apple Java, and installed the most recent build, found here: https://support.apple.com/downloads/java I installed "Java for OS X 2015-001 Beta. After that, I could type in "java -version" with no problem. After I restarted my computer, Minecraft wouldn't launch. When I try to run my own server, it starts up, and then it fails and crashes. Note: Java Control Panel also crashes on launch.
William (11 rep)
Jul 13, 2015, 07:22 PM • Last activity: Aug 3, 2023, 03:28 PM
1 votes
0 answers
129 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 manage those entries programmatically (command line) ?
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 manage those entries programmatically (command line) ?
martin (121 rep)
Jul 26, 2023, 02:54 PM
1 votes
1 answers
2900 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 they only seem to be added under `Library/Java/...`. How can I run a Java Applet on a modern M1 m...
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 they only seem to be added under Library/Java/.... How can I run a Java Applet on a modern M1 machine?
Ioakim Ioakim (11 rep)
Jun 30, 2023, 10:25 AM • Last activity: Jul 2, 2023, 03:13 PM
1 votes
1 answers
3046 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/bluemap/cli/BlueMapCLI has been compiled by a more recent version of the Java Runtime (class file version 55.0)...
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/bluemap/cli/BlueMapCLI has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:756) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:473) at java.net.URLClassLoader.access$100(URLClassLoader.java:74) at java.net.URLClassLoader$1.run(URLClassLoader.java:369) at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:362) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:620) I am using MacOS 13.4 (22F66) and java -version says java version "1.8.0_371". I am NOT an java expert and assume I have to update java? How to do that in the MOST SIMPLE POSSIBLE way, ideally using only command line commands?
Alex (2711 rep)
Jun 20, 2023, 06:17 PM • Last activity: Jun 20, 2023, 06:47 PM
2 votes
1 answers
2865 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 give "Full Disk access" to "Java". I found some answers with some links to some various locations, none...
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 give "Full Disk access" to "Java". I found some answers with some links to some various locations, none of them do exist. So how to solve this problem? What EXACT file do I have to give full disk access for MacOS Ventura and java version 1.8.0_371 (or how to figure that out)? I tried these solutions and this suggestion : 1. /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home -> JavaAppletPlugin.plugin is greyed out, unable to select it: enter image description here 3. /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/ -> Path does not exist (no "Java" under "Library") 4. /Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home -> Folder under "JavaVirtualMachines" is empty... I installed java following the instructions given in HERE .
Alex (2711 rep)
Jun 15, 2023, 08:30 AM • Last activity: Jun 17, 2023, 09:06 PM
Showing page 1 of 20 total questions