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.

Filter by
Sorted by
Tagged with
0
votes
1answer
107 views

Unable to access jarfile server.jar

I am trying to add ram to my Minecraft server. To do this I have created a start.command file with the following text in it: #!/bin/bash cd “$(dirname “$0”)” exec java -Xms4G -Xmx4G -jar server.jar I ...
0
votes
1answer
73 views

“jdk-14.0.1.jdk” is damaged and can’t be opened - when installing JMC / JFR afterwards

I get the above message when trying to run my JDK. I installed it last week and it works fine during the day. I then Shutdown my laptop and when I re-start it the next day I get this message when I ...
1
vote
1answer
26 views

How to use Jar Launcher with specified jdk version

Now I have multiple jdk installed on OSX as shown below: └─[1] <> /usr/libexec/java_home -V Matching Java Virtual Machines (2): 14.0.1, x86_64: "Java SE 14.0.1" /Library/Java/...
1
vote
0answers
20 views

Numbers removes Byte-Order-Mask (BOM) from UTF-8 files when exported as CSV. How to fix?

I am dealing with a requirement where CSV should be UTF-8 encoded, in order to detect this in my java application I am relying on Byte Order Masks which is working perfectly fine but we found out that ...
1
vote
0answers
25 views

How to omit file extension from zsh autocomplete?

I'm new to zsh in Catalina. In .zshrc, I currently have setopt CORRECT setopt CORRECT_ALL When I run a java program from the command line, I want only: % java ProgramName If I type java Pro ...
2
votes
1answer
135 views

I can't paste a file into system directory

I want to paste a file into /System/Library/Java/Extensions path but there is no "paste" button . So I tried to change permissions, but when I checked I already have the permission to read & ...
0
votes
0answers
65 views

The Java JAR file <fileName> could not be launched - Mac OS

I developed a Java program in a PC running on Windows 10 and sent it to my professor, who owns a PC running on Mac OS. In my computer, the executable runs perfectly, but on theirs it pops this ...
0
votes
1answer
396 views

How to fix Java Install error for minecraft forge?

I am trying to install minecraft forge 1.12.2-14.23.0.2552 on a Mac Mojave with java "java version "14" 2020-03-17". However, upon running java -jar forge-1.12.2-14.23.0.2552-installer.jar to ...
0
votes
2answers
168 views

Can I handle the Apple Event “open” within a bash shell script using osascript command?

I use a bash script (myJavaBash.sh) within an Application Bundle (myJavaJar.app), that starts "java -jar myJarFile.jar" with additional JVM arguments (which works fine so far). My goal is to pass a ...
2
votes
1answer
29 views

Self-made app will not open [closed]

I have created a Java application and wanted to run it as a standard application bundle. Here is the directory tree: Snake.app Contents MacOS Snake Snake.jar Resources ...
1
vote
1answer
364 views

How to fix JRELoadError on macOS 10.15.4 Catalina?

When I download or brew-cask-install JOSM, jEdit (and propably any other java app) and run it, I get JRELoadError. I have: $ java -version openjdk version "14" 2020-03-17 OpenJDK Runtime Environment ...
0
votes
0answers
69 views

Remove software update from managed software centre

Every time I open my mac the managed software centre pops up with "1 pending update" for Java for OS X. When I click on update, it appears to go through the motions, "update in progress, installing, ...
0
votes
1answer
30 views

Java DICOM viewer fails on MacOS Catalania (10.15.3)

I have a CD containing the images of the MRT I had recently. I tried to start the DICOM viewer which is on the CD as well. However the viewer fails with the error: WARNING: An illegal reflective ...
3
votes
1answer
615 views

Scilab Error: Need to install legacy Java SE 6 runtime

Scilab v6.0.2 is downloaded from the official website and installed, but it cannot be opened with the error: To open "this Java application" you need to install the legacy Java SE 6 runtime. I ...
2
votes
1answer
64 views

Executing bundled shell command in a hardened runtime application

I have written a Java application which I want to distribute in form of a macOS application bundle. The application needs to execute a command line application which is also part of the bundle. The ...
2
votes
1answer
1k views

“SecurID” will damage your computer?

Today I've just started getting a warning dialog when I try to run the RSA SecurID app: This is a Java app I believe. I use it to authenticate when I connect to my company's private network. I've ...
1
vote
1answer
322 views

Java 8 appears to be installed but in fact is not (macOS) [duplicate]

I downloaded Java 8 from oracle.com, and I installed it. Nothing unusual. But when I type java I get: No Java runtime present, requesting install. And if I go to settings the java icon is there!
0
votes
0answers
16 views

Problem opening java applications

Running Macbook Pro, Mojave. I've had this problem for a while that I can't run java applications by clicking on their icons. Whenever I try this, I get "JRELoadError" message. Tried with multiple ...
0
votes
0answers
41 views

Using Jabba (java) in macos

I recently started using jabba and I installed a couple of java versions $ jabba ls adopt@1.13.0-0 openjdk@1.13.0 zulu@1.13.0 and setup $ java --version openjdk 13 2019-09-17 OpenJDK Runtime ...
0
votes
0answers
18 views

I downloaded Java and DocFetcher, but they try to open in Calibre

I downloaded Java and DocFetcher online, but they downloaded as dmg files and when I try to open them, they try to open in Calibre, an e-book software program. What am I doing wrong?
0
votes
1answer
40 views

Unknown Binary in Application Samples

I recently started sampling applications that freeze on my machine. I have an iMac with 8 cores and 32GB of RAM running Catalina 10.15.1 fully patched. It's far from resource constrained yet certain ...
3
votes
2answers
2k views

Java uninstalled but still cannot install java 6 macOS

I'm trying to install Java SE 6 because I need it to use Scilab, I follow this and this tutorials for uninstall java, but still cannot install Java SE 6. When I'm trying to install appears this ...
10
votes
0answers
526 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 one user was logged in with his/her credentials, regardless of ...
1
vote
1answer
51 views

When try to I open a .jar I get “The java JAR file could not be opened”

Found this error:Could not find or load main class E Caused by: java.lang.ClassNotFoundException: E I am trying to install Forge so I can load mods for Minecraft.
20
votes
5answers
9k views

Cannot install JDK 13.01 on Catalina

I tried to install the x64 version of jdk (from https://www.oracle.com/technetwork/java/javase/downloads/jdk13-downloads-5672538.html), however, Apple refused to install it saying that the software ...
1
vote
1answer
2k views

Bundling Java applications for Mac OS X Catalina

I write amateur Java scientific applications which I provide freely for a small audience. (Probably I am the main user.) Most of them are still compiled under Java 1.6 where they run fine on Mojave ...
32
votes
7answers
13k views

Can't run OpenJDK macOS Catalina “Can't verify it's not a Virus”

I downloaded OpenJDK 13 from the official website and extracted it to my /Library/Java/JavaVirtualMachines/ folder. If I now try to run it with java -version I get a prompt saying something around the ...
0
votes
0answers
14 views

Eclipse crashes on Install Plugin Archive - OSX High Sierra 10.13.6 - Eclipse Indigo Service Release 2

Eclipse is working normally for creating projects, writing code etc. It is crashing at this plugin update dialog: Help -> Install New Software... -> Add... -> Archive... Application Specific ...
0
votes
0answers
15 views

Is there a way to customise keyboard shortcuts for a Java executable?

Is there a way to customise keyboard shortcuts for a Java executable? I cannot add it in System Preferences > Keyboard > Shortcuts > App Shortcuts as it's an executable and does not end in .app. It's ...
3
votes
1answer
895 views

brew cask install java6 - Cannot install on volume / because it is disabled - MacOS 10.15 beta

I've un/reinstalled brew, turned off macOS Gatekeeper, csrutil is disabled, and a bunch of other things but brew cask install java6 always results in this: > $ brew cask install java6 ...
1
vote
0answers
237 views

Getting the Java jar file could not be launched even though it runs normally from terminal, any help?

I exported my Java project but when i try to double-click on it and open it normally I get that it could not be launched and I should check my console for possible error, found nothing there. Tried ...
0
votes
1answer
63 views

How can I fix poor Java performance caused by Mojave update 10.14.6?

I installed the 10.14.6 macOS update yesterday, and now Java is performing very poorly. This is especially noticeable when using Maven to build Java applications. There are projects I build ...
2
votes
0answers
45 views

Set java version for one specific application

I have multiple Java Versions installed and want to run a packaged application (JabRef) with a specific version at /Library/Java/JavaVirtualMachines/zulu-8.jdk which is not JAVA_HOME. If I would run ...
0
votes
1answer
108 views

Remove or relocate Java icon in Dock

I am using a MacBook Pro running macOS Mojave with the latest version of Java. When i run my Java program, it shows 2 icons in the Dock. Is it possible to remove 1 or relocate both? I cannot use a ...
2
votes
0answers
150 views

Allow Java 1.7 app to run without “Install Legacy Java SE 6” message showing up and JRE not JDK

I am tasked with deploying an old Eclipse RCP (Java 1.6) application with minimal or no changes to the code on macOS Mojave 10.14 64bit. The application hasn't been deployed in a long while, the last ...
12
votes
5answers
15k views

How to run an app that require Java SDK on macOS Catalina 10.15?

Currently I am getting issue with new macOS Catalina limitation. Every time I run an app that require openJDK I get this message: "openjdk-12.0.1.jdk" can’t be opened because it is from an ...
1
vote
1answer
114 views

Running Java / Jython process in the background

I am trying to run a Jython script in the background. This is what the script looks like, a_jython_script.py for i in range(10000): print i When I try to run it in the background, it is ...
2
votes
0answers
59 views

“Please wait while Bamboo sets up your instance” taking for ever on Mac [closed]

I am trying to install and configure Bamboo on mac. I have installed it and now at the stage of running the setup wizard. After giving the license and selecting "Express installation", now am stuck at ...
11
votes
2answers
3k views

What if there is an error message that adoptopenjdk8 exists in multiple taps?

When brew cleanup shows the following error message: Error: Cask adoptopenjdk8 exists in multiple taps: homebrew/cask-versions/adoptopenjdk8 adoptopenjdk/openjdk/adoptopenjdk8 How can I resolve ...
1
vote
1answer
50 views

How to enable mouse control (accessibility?) for Java WebStart application?

We have an demo application that our salesman launches through Java WebStart. It works fine, exception on Macs (running MoJave) for a section that uses AssertJ Swing to drive the mouse and the ...
0
votes
0answers
110 views

Fix Application launcher from Java 1.6 Legacy to Oracle Java 7

I'm using a Mac Pro 64bit Mojave. Is it possible to create a .command or .sh or some other low-effort "launcher" for a Java program where all of the compiled code is in the "plugins" dir that does ...
0
votes
1answer
564 views

On Mac OS X 10.7, Java Control Panel crashes unexpectedly

I'm wondering if this is a serious problem that I should be concerned about. I have the latest version of Java installed (currently Java(TM) SE Runtime Environment (build 1.8.0_212-b10) via command ...
5
votes
3answers
3k views

Enabling “Hardened Runtime” from outside of XCode

This question is prompted by the new Notarization requirements that Apple will enforce for Mac Apps distributed outside of the Mac App Store targeting Mojave (in the near future.) I maintain a suite ...
3
votes
1answer
858 views

Did Oracle remove the Java System Preference in macOS?

I recently updated my Java install on macOS 10.14.4 from Java 10 to Java 11, and the Java System Preference pane disappeared after Java updated. I updated Java again on a different Mac running the ...
3
votes
2answers
604 views

Is it allowed to be an Apple trusted developer with pure Java

I am developing JavaFX with Spring applications that are shipped with native installers for Windows, Linux and macOS. I am hosting the macOS DMG and pkg installers outside Mac App Store on my web site....
1
vote
0answers
43 views

Java update failed

Just realized that java on my mini 2012 is 1.6.0_65-b14-468. Therefore I searched for anything newer compatible with JDownloader. Therefore I downloaded 1.8 (jre-8u201-macosx-x64). Apparently the ...
0
votes
0answers
106 views

Apache Netbeans 10 binaries not working

I have recently downloaded the Apache Netbeans 10 binaries from the Apache Netbeans (Incubating) site. I extracted the zip file to /Application/netbeans/. But when I try to run /Application/netbeans/...
0
votes
1answer
856 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 ...
2
votes
2answers
195 views

I have Java 8. An app wants Java 6 (legacy one). Can I avoid that?

My government made a Java app to submit tax documents. That app, it's actually a very outdated version of Eclipse. When I run this ugly mess, I get a dialog that prompts me to install Java SE 6 (...
2
votes
0answers
77 views

How can a I run a bundled app with Java 11?

I followed the answer to this question to get a bundled app to work with Java 8... How to direct an app to use a specific Java version? I would like to know if I can get it to run with the latest ...

1
2 3 4 5
9