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.

Filter by
Sorted by
Tagged with
2
votes
2answers
204 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....
0
votes
0answers
12 views

Spring batch JobOpertaor.stop(ExecutionID) is taking more time [on hold]

Is there any other way to make the Spring batch job execution = Stopped. except jobOperatot.stop(execution Id). I'm in Dev Environment now. It's taking more time. when I call the stop method the ...
0
votes
2answers
292 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 ...
0
votes
1answer
34 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
29 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 ...
-2
votes
0answers
27 views

How to fix scroll lags in posts (only Google Chrome)

When scrolling through an article on a site, when the cursor is on the table, the page starts to slow down when scrolling. Most clearly to see in practice (in Google Chrome, Mozilla ok) https://...
2
votes
2answers
960 views

JDK - Platform Not Recognized - Running Eclipse or mvn

I screwed it up! I upgraded to Java 8 yesterday and that trashed some projects I was working on so I attempted to downgrade back to Java 7 and the wheels came off. I've removed the previous Java ...
1
vote
1answer
47 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 ...
18
votes
3answers
26k views

How can I install java openjdk 8 on High Sierra

How do I install OpenJDK 8 on High Sierra? It looks like support for the Java Oracle JDK version 8 will be deprecated after January 2019 Java SE Overview Additionally, it looks like publishing and ...
0
votes
0answers
35 views

Java JDK installed via HomeBrew, but an application is erroring out that it cannot load the JRE, is there something else i need to set?

Title says it all. Installed (successfully, no errors) Java via HomeBrew on a fresh install of Mojave. From Terminal, I get the expected responses when I run things like which java and java -version ...
2
votes
0answers
11 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 ...
2
votes
2answers
404 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 ...
2
votes
1answer
2k views

How can I upgrade from Oracle JDK 8 to OpenJDK 8 using Homebrew?

If I have Oracle Java SE JDK 8 installed on my mac, how can I upgrade to Open JDK 8? Motivation: Android build tools seem to need JDK 8, but according to the following links Oracle JDK 8 will not ...
2
votes
2answers
1k views

How can I upgrade my mac to OpenJDK 11 using Homebrew?

If I would have an older version of Java JDK on my mac such as Java SE 8 or OpenJDK 8, what would be a quick way to upgrade to OpenJDK 11 using Homebrew (using the brew command)? Motivation for using ...
4
votes
1answer
560 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 ...
0
votes
1answer
30 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
62 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
79 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 ...
12
votes
7answers
13k views

Adobe Illustrator CS6 with Java 8?

Is it possible to run Adobe Illustrator CS6 with the current Oracle Java 8 rather than the legacy insecure Java 6 provided by Apple? I know this is related to this question where the generic answer ...
2
votes
1answer
240 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 ...
0
votes
0answers
400 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 ...
3
votes
3answers
17k views

Even though JRE 8 is installed on my MAC OS Yosemite, the error - “ No Java Runtime present,requesting to install ”

Even though JRE 8 is installed on my MAC OS Yosemite 10.10.3,while running the Android present in tools in sdk - the error - " No Java Runtime present,requesting to install " gets displayed in ...
1
vote
0answers
26 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 ...
1
vote
2answers
2k views

Jar Launcher.app : where is it supposed to be located at?

On Sierra I installed Java (JDK) and Parallels Desktop. The Windows VM I have in Parallels has decided to set its own (Windows) copy of Java as default for Mac .jar files, which means that whenever I ...
5
votes
2answers
1k 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 ...
0
votes
0answers
81 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/...
1
vote
1answer
381 views

MacOS dock freezes when I launch Java application

I have a late-2016 MacBook Pro (without Touchbar) - MacOS High Sierra 10.13.2 - Java 9 Since one or two weeks, when I launch a Java application (NetBeans, a JavaFX app, Eclipse... etc) my MacOS docks ...
0
votes
2answers
3k views

I can't run Eclipse on Macbook on Yosemite: “Version 1.6.0_65 of the JVM is not suitable for this product.” and I have Java 1.8 (shows in settings)

I can't run Eclipse on Macbook on Yosemite: "Version 1.6.0_65 of the JVM is not suitable for this product." and I have Java 1.8. When I open settings I can see that version of Java is 1.8
1
vote
1answer
518 views

Python on High Sierra “No Java runtime present, requesting install”

I have python code that works just fine in multiple other places and "used" to work on my mac, but now when I try to run my code as: python <pythonfile>.py I get an error which says: No Java ...
1
vote
1answer
62 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 (...
0
votes
1answer
29 views

Do you see video artefacts on your MacBook Pro when opening the Java control panel?

Calling all MacBook Pro 15" 2018 owners, particularly owners of the 2.6 GHz model. Would you be willing to test something on your 2018 MBP? (15”?). Install the latest Java JRE (https://download.oracle....
2
votes
1answer
49 views

Is Java UDP communication broken on macOS?

I've been trying to figure out why a Java program that uses UDP communication on Windows works 100% fine but seems to regularly drop packets on a macOS build of the JVM (8.x). I saw another thread on ...
5
votes
2answers
5k views

What is the latest version of Java for macOS High Sierra?

On my High Sierra Mac java --version gives java version "1.8.0_172" Java(TM) SE Runtime Environment (build 1.8.0_172-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode) but in ...
1
vote
0answers
44 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
vote
2answers
144 views

Minecraft Immediately Crashes On Launchup

I'm running Mavericks 10.9.5. This is my java version: Whenever I started Minecraft up, it would immediately crash. I tried: Reinstalling Minecraft Deleting the minecraft folder in Application ...
0
votes
1answer
617 views

Does macOS Mojave comes with java pre-installed?

I just ran which java command and got the output /usr/bin/java I also executed java -version command and also got version information output. So I believe that there is an actual java executable and ...
1
vote
1answer
4k views

In macOS, how to run a JNLP file with OpenJDK 8?

Due to the new license of OracleJDK8, I have to use OpenJDK8. I have installed AdoptOpenJDK8 from Homebrew and it works well. The problem is that I have to launch a Java application from a JNLP link, ...
37
votes
11answers
151k views

How to increase font size of Eclipse globally?

I'd like to know how to increase the font size for Eclipse so it adjusts the whole GUI to not look so darn small on my screen. For NetBeans there is the --font-size switch which can be set in ...
2
votes
1answer
489 views

“Installing” MySQL JDBC .jar file for MATLAB

Goal: "install" JDBC drivers for MATLAB to use This article indicated that one can put the JDBC driver .jar file in: /Library/Java/Extensions/ .bashrc and .bashrc_profile were configured with ...
0
votes
1answer
476 views

“Reopen the Java Control Panel” doesn't do anything

From System Preferences, I open the Java icon and it shows: And that's all. The "Reopen the Java Control Panel" button doesn't do anything. There isn't any separate window anywhere. macOS High ...
2
votes
1answer
734 views

Why does JDownloader use 9666/tcp on localhost?

I found 9666/tcp to listen on 127.0.0.1 on OS X. I use version 15.3.0 > nmap -sT 127.0.0.1 ...
0
votes
1answer
808 views

How do I change what's returned by /usr/libexec/java_home

$ echo $JAVA_HOME /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home $ /usr/libexec/java_home --verbose Matching Java Virtual Machines (2): 1.6.0_65-b14-468, x86_64: "Java SE 6" /...
2
votes
1answer
433 views

How do I remove java version “1.6.0_65”?

Every single time I try to install the Oracle Java Runtime Environment... I keep being stuck with Apple's Java 6. I have no idea how Apple's Java 6 ended up on my computer in the first place. The mac ...
5
votes
2answers
2k views

Can't set different Java version in Mojave with jenv

I want to have different Java versions on my machine. I installed jenv for that reason. However, I can't set the desired Java version to it. Actually couldn't set any version. I have Java 8 and 11 ...
0
votes
1answer
361 views

deleting java from system library on mac

I can't delete java from my mac. I tried deleting it from system/Library, but it says the os mac system needs it. I want to install an older version because a specific website needs it, but it keeps ...
1
vote
2answers
9k views

The Java JAR file … could not be launched

I'm trying to download the file http://algs4.cs.princeton.edu/code/algs4.jar and launch it with Jar Launcher (the default application). However, I'm getting this: Following https://discussions.apple....
1
vote
1answer
111 views

Is usr/local/bin the correct directory to place JAR files?

I have built an application that includes a JAR file I developed and I've had issues trying to run it correctly from the AppleScript application with: set foobar to POSIX path of (path to me) & "...
2
votes
2answers
4k views

How do I delete Java application preferences?

I am running Jabref v2.10 on Mac OS X 10.9.2. After changing some parts of the configuration file manually, I seem to have broken the preferences and now it fails to start. The application stores the ...
0
votes
2answers
12k views

How to I change the default JVM heap size on OS X?

I am looking for a way to change the default JVM memory settings on OS X, not for a specific application. And, yes I know that each application can override this. Currently running Java 1.6 on OS X ...
1
vote
0answers
57 views

Accessing specific version of Java in Safari

I am using Safari 12 running on macOS Mojave 10.14. The Web based VM detects the installed version of Java on my Mac as 1.5. For my particular needs version 1.6 is required. I have installed the ...