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
1 answer
45 views

M1 Pro for software development [closed]

I need to replace my Intel-based macbook, but I found out that currently, the stores are only providing the ones with M1 chipsets. So, I thought it might not be that bad with M1 Pro (10 core version), ...
user avatar
  • 11
1 vote
2 answers
106 views

Can the M1 Macbook Air compile Android source code without problems?

Do I need a x86 system to build and compile Android source code? Will it work on M1 Macbook Air to build a Android rom?
user avatar
0 votes
0 answers
31 views

Error trying to install java on OS Monterey

In the first instance, I installed Rosetta with the following command: /usr/sbin/softwareupdate --install-rosetta --agree-to-license arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw....
user avatar
0 votes
0 answers
137 views

SQL Developer will not start after Monterey upgrade

SQL Developer will not start after Monterey upgrade There does not appear to be any error message or indication of failure. I edited the product.conf file for SQL developer. I added the following line:...
user avatar
  • 1
0 votes
0 answers
73 views

How to install java and kotlin on a macbook to build apache calcite

I want to build Apache calcite on my MacBookPro (and possibly extend it). I have installed Java (1.8.0_311 from the Oracle site, or at least java -version claims I got that right) and installed ...
user avatar
0 votes
0 answers
68 views

Cannot fully uninstall java

I have disabled the system integrity protection via (in recovery mode) csrutil disable and now i am trying to fully delete java from my machine (it seems to block the reinstallation via ASDF) /usr/...
user avatar
2 votes
2 answers
526 views

How to handle java apps lacking ARM support using java SDK on M1 Mac?

Problem: I wish to run an app written in Java on an M1 Mac (running Monterey 12.0.1, as it happens). The app contains at least one .jar file with a universal mac binary containing only an i86 fork, ...
user avatar
0 votes
0 answers
32 views

Java plug-in not working in Safari on OS X 10.9

Java plug-in is missing under Safari Internet Plugins. java and javac work correctly: java -version java version "1.8.0_20" Java(TM) SE Runtime Environment (build 1.8.0_20-b26) I've tried ...
user avatar
  • 131
0 votes
1 answer
4k views

Java JDK 8/11/17 All Crashing on MacOS Monterey (12.0.1)

It appears using Oracle SQL Developer will eventually crash Java on JDK 8, 11 or 17 when using macOS Monterey (12.0.1). While I've thought it was working it will crash eventually as reported now by ...
user avatar
0 votes
1 answer
954 views

Why is Java not running on Apple Silicon?

I just got a MacBook Pro with the new M1 chip. I'd like to use native Apple Silicon code wherever possible. I have a Java-based command-line program running and I noticed that this java process in ...
user avatar
  • 581
1 vote
0 answers
88 views

How to install Java IntelliJ IDE on External SSD for Mac?

My internal Apple Silicon Mac is only 256 GB and IntelliJ IDE for Java takes up 2 GB, when I tried moving the IntelliJ from the Applications to my External SSD, I couldn't open the IDE. The prompt ...
user avatar
1 vote
0 answers
61 views

why can't i delete jdk11 in MacBook pro?

I have nothing related to jdk11 in /library/Java/JavaVirtualMachines but still i see java version is 11 when i run java -versions . Steps i tried restarting mac testing in new terminal after closing ...
user avatar
2 votes
5 answers
488 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." So I installed ...
user avatar
0 votes
1 answer
142 views

prompt not showing on terminal

I installed jdk and somehow modified my path and now my terminal no longer has a prompt, it just says "Last login: Wed Jul 14 15:28:10 on console" I created another user on my mac and that ...
user avatar
  • 101
0 votes
1 answer
144 views

"Learn Coding with Minecraft" API setup problem: "zsh: exec format error:"

Using the "Start_Server" exec file provided in .zip of set up files for MacOS, and after installing Java, BuildTools, & the Spigot jar files, etc., I try to run "Start_Server" ...
user avatar
0 votes
1 answer
315 views

error while installing autopsy

I tried to install Autopsy on my Mac by following "https://slo-sleuth.github.io/tools/InstallingAutopsyOnMacOS.html#installation-overview". After I wrote "% cd ~/Downloads/autopsy-4.16....
user avatar
0 votes
1 answer
5k views

How to remove OpenJDK and go back to regular JDK

I mistakenly installed openJDK and I want to uninstall it and revert back to using regular JDK I had before, how do I do this? I can’t find anywhere how I can I uninstall it and go back to JDK.
user avatar
2 votes
1 answer
733 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 ...
user avatar
  • 161
1 vote
0 answers
343 views

Installing NVIDIA Visual Profiler (NVVP) on Big Sur

I am trying to install NVIDIA Visual Profiler (NVVP) on my macbook with Big Sur v11.2.1. I downloaded NVVP from here and OpenJDK from here. I am getting the following error: bash-3.2$ ./nvvp -vm /...
user avatar
  • 81
1 vote
0 answers
43 views

Is /usr/libexec/java_home still relevant on macOS?

I can add my java bin dir to my path in .zshrc and compile and run Java apps just fine. I can set JAVA_HOME there as well, for applications that need it. So do I need /usr/libexec/java_home for ...
user avatar
0 votes
0 answers
183 views

Java app doesn't recognize OpenJDK (from AdoptOpenJDK)

I've removed Oracle's Java from my Mac (running 10.14 Mojave), and then installed OpenJDK from AdoptOpenJDK. I can run Eclipse using the OpenJDK, and the terminal tells me $ java -version openjdk ...
user avatar
  • 1,524
1 vote
0 answers
26 views

How do I remap Home/End key behaviour in Java Swing applications?

I am using a Java Swing applications as a code editor. I find it hugely annoying that the Home and End keys behave differently on macOS than the rest of the world. Under macOS they go start and end of ...
user avatar
1 vote
0 answers
277 views

.jar file is not opening on 10.15.7 macOS Catalina

I have a JAR file, which is a program. I want to open this file, but when I double click the icon flashes for half-a-second but then nothing happens. I tried to open via java -jar Downloads/launcher....
user avatar
1 vote
0 answers
41 views

.jar application not working properly

I recently installed MARS MIPS Simulator and the issue I am facing is that when I save a file and then try to reopen it later, the pop up window which shows the files available to open is blank even ...
user avatar
  • 11
0 votes
0 answers
119 views

Safari can't connect to localhost - Java OAth

I am trying to write a Java code and I'm trying to do OAuth. I created an authentication URL which I'm supposed to go to with Safari with a callback url set as http://LocalHost except Safari said can'...
user avatar
0 votes
0 answers
85 views

How can java application request access to network volume?

My app is completely written in java (we moved to java11 from java8) and was running fine under High Sierra. new RandomAccessFile(file_on_network_volume, "rws") gained access and execution ...
user avatar
1 vote
1 answer
191 views

Adobe Illustrator CS6 on Mojave with Java 8?

I ran into the common issue where Illustrator CS6 was unable to open in newer Mac OS version and asking for Java 6 to be installed. While I have already installed Java 8, I found this thread where a ...
user avatar
1 vote
1 answer
204 views

I can't seem to open this .jar file. Can someone make sense out of my error message?

I'm trying to set up a modded minecraft server on my Mac. I am on Mojave 10.14.6 and I have Java SE Oracle JDK 15.0.1 installed. Each time I attempt to open the file forge-1.12.2-14.23.5.2854-...
user avatar
0 votes
1 answer
185 views

How to delete the Java installed shown in the "System Preferences" dialog?

I have MacOS El Capitan About Java, in the /Library/Java/JavaVirtualMachines path I have: All works fine. But I did realize about the following in System Preferences: Observe in the bottom the Java ...
user avatar
5 votes
1 answer
593 views

Can an application that requires JRE 6 run in Rosetta 2?

I have an application I'd like to run on a new MacBook Air that has as one of its requirements installing Apple JRE 6. Prior to Apple Silicon, this would've been as simple as installing it from Apple'...
user avatar
  • 348
1 vote
0 answers
252 views

The Java JAR file "Test.jar" could not be launched

When I try to launch Test.jar apple pops up with the error The Java JAR file "Test.jar" could not be launched. when I do java -version it says... java version "15" 2020-09-15 Java(...
user avatar
1 vote
1 answer
149 views

How do I update java manual pages with Homebrew?

I am using Homebrew to install AdoptOpenJDK 11. I want to see the documentation via the manual pages. Symptoms When I run man java, I see documentation from 2004. At the bottom: SEE ALSO javac(...
user avatar
0 votes
0 answers
50 views

MacBook Pro 2,2 OS X 10.7.5 and Java

Is it possible to get Java working inside a web browser? I have Chrome and Arctic Fox installed. The issue I have is that certain web pages wont load and/or work correctly... Mainly docker web GUIs ...
user avatar
  • 111
0 votes
1 answer
3k 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 ...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
  • 133
1 vote
1 answer
1k 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/...
user avatar
  • 143
1 vote
0 answers
91 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 ...
user avatar
2 votes
1 answer
55 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 ...
user avatar
  • 67
3 votes
1 answer
5k 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 & ...
user avatar
0 votes
0 answers
726 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 ...
user avatar
  • 1
0 votes
1 answer
6k 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 ...
user avatar
  • 855
1 vote
2 answers
464 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 ...
user avatar
  • 11
2 votes
1 answer
38 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 ...
user avatar
  • 21
2 votes
1 answer
2k 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 ...
user avatar
0 votes
1 answer
62 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 ...
user avatar
3 votes
1 answer
2k 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 ...
user avatar
2 votes
1 answer
192 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 ...
user avatar
2 votes
1 answer
2k 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 ...
user avatar
  • 1,065
1 vote
1 answer
2k 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!
user avatar
0 votes
0 answers
161 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 ...
user avatar

1
2 3 4 5
10