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
2
votes
1answer
573 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 ...
1
vote
1answer
108 views

How to install JRE in a way usable for dev?

I have Java 8 installed by an admin /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/bin /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/jre/bin I needed to install ...
1
vote
1answer
169 views

I found but can't open eclipse.ini (bad parsing)

I know the trick with "show package contents" and I've gone to: $ECLIPSE_HOME/Eclipse.app/Contents/MacOS However, the file in there is 'eclipse', rather than 'eclipse.ini' Furthermore, when I open ...
2
votes
0answers
233 views

Setting up Wireless on a Brother HL-2270dw on High Sierra

Any ideas on how to set up wireless printing on a HL-2270dw for someone running 10.13.x (High Sierra)? Most of the Brother instructions require 10.11 or 10.12. The SetupWizard Java App crashes on 10....
4
votes
1answer
69 views

How do I create an installer for a macOS app?

I want to create an installer for a Apache Mesos for Mac. I don't want to use brew since that needs several steps and an internet connection and packaging makes one definite version we can push and ...
1
vote
1answer
788 views

Managing multiple Java Installations

After hours of Googling I'm a little depressed with the results.. For work, I have multiple Java Installations, some of them via SdkMan, and some of them seem to found there way into the /Library/...
0
votes
1answer
873 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" /...
0
votes
0answers
63 views

Install Jira: issue with java JDK

I am trying to install Jira which requires java JDK. I installed the latest Java JDK and it says it was successfully installed. However I get an error: Unable to locate an executable at “/usr/bin/...
1
vote
1answer
774 views

Setting JAVA_HOME not working in Sierra

I have following versions of Java: $ /usr/libexec/java_home -V Matching Java Virtual Machines (4): 9.0.1, x86_64: "Java SE 9.0.1" /Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home ...
1
vote
1answer
422 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 ...
1
vote
0answers
890 views

Got a Java process with about 4 GB memory consumption after just starting up macOS

I recently found there is a Java process with more than 4 GB memory in my MBP, and it respawned after I force quit it. After restarting the computer and entering safe mode, the process does not ...
1
vote
2answers
6k views

CS5ServiceManager Java error shows up at startup of Mac

Every time I start my computer a popup window shows up that says "If you want to open CS5ServiceManager you have to install the older Java SE 6 Runtime" Why does this show up, and how do I resolve ...
1
vote
2answers
78 views

No compatible version of java 1.5 is available

First thanks for reading my post and willing to help. I'm trying to run a program (MultiWiiConf 2.4, last version now) on my Mac (Sierra 10.12.6) but it won't launch and error No compatible version ...
3
votes
1answer
51 views

Why do I keep getting a request to install JDK on mid 2015 MacBook Pro

After updating to OS 10.13.1 I got messages to update JDK, I have gone to the website, downloaded then installed the update. I then have the website run a check to see if I have the latest update. ...
1
vote
0answers
103 views

How to get rid of “Java was recently installed” message every time I start Safari?

Recently, every time I start Safari, I get a popup: "Java was recently installed. To improve security and save energy, Safari did not activate Java after it was installed." I already got the message. ...
2
votes
0answers
160 views

Can I turn off memory compression for one specific app?

I am using MATLAB on my Mac. Well, MATLAB is running well but not fast -- while there are plenty of free memory, my Mac still compresses MATLAB's memory - from ~2GB to ~600MB -- not to mention 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 ...
4
votes
2answers
109 views

How do I launch an application with a specific JDK?

I'm on Sierra, and I have one legacy application that requests Java 6 to run. I have Java 7 installed, and I've also installed Java SE 6 from Apple, but I'm not sure how to force the application to ...
2
votes
0answers
162 views

Problem with installing Java

I just downloaded the latest Java SE Development Kit and tried to install it. The installer opens but then after clicking on install nothing happens. I know this is not very specific (not good with ...
1
vote
0answers
189 views

Integrative Genome Browser can't find Java Runtime

Every time I try to run IGV, I'm greeted with can't find Java Runtime error dialog. I have Java installed on the system as running /usr/libexec/java_home returns /Library/Java/JavaVirtualMachines/jdk1....
1
vote
1answer
113 views

Java applet for OS X 10.9 (Mavericks)

I was trying to run a Java applet (downloaded) through the jnlp file which came with it. And I see this error always. I looked into the code signing certificate, and its signed from a trusted CA, and ...
4
votes
3answers
2k views

Cannot install JDK 7 on macOS Sierra 10.12.6

I tried to install JDK 7u67 on my MacBook Pro with macOS Sierra 10.12.6, but all I get is this error message: It does not really makes sense for me, because I already have higher version, so Java ...
1
vote
3answers
4k views

How can I check if Java is installed on my Mac?

I have gone into Terminal and typed java -v for which it responds with No Java runtime present, requesting install. But I am not sure if that is confirming if Java is not installed or whether ...
3
votes
0answers
265 views

El Capitan, Java application “can't be opened”

OK, this is really weird. I'm on El Capitan, am developing a Java app. Yesterday I made a new release and put it in Applications on my machine, right where the previous version used to be. Went to ...
0
votes
1answer
8k views

Unable to locate an executable at “/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/bin/apt” (-1)?

this error comes when i use this command:- sudo apt install wireless-tools Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/bin/apt" (-1) echo ...
3
votes
3answers
7k views

Is MacBook Air 2017 used for programming viz Java or Python and also for Web development? [closed]

I'm planning to buy a MacBook Air 2017 8 GB RAM with 256 GB SSD. The reason I'm going with a MacBook Air is primarily for portability and Battery life, since I see that it gives at least 10 hours. Is ...
0
votes
1answer
410 views

When launching java app as Mac app there default java process name and About description instead of mine

I have a number of jar-files, some resources, h2 database, etc. in my project. To create Mac application I used Platypus. To run my application shell script was used. However at this case when ...
1
vote
1answer
26 views

Is it possible to add description of an app when creating by Platypus?

I am creating an app by Platypus. Is there any way to add description of an app that would be visible in About menu? Or how it might be done?
0
votes
1answer
203 views

Can't launch an app after creation by Platypus. Error: …app/Contents/Resources/script: is a directory

In my project I have a number of jar-files, resources, h2 database, etc. I launch my application by executing a shell-script with configuration params. I would like to create Mac app by using ...
2
votes
2answers
11k 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....
2
votes
0answers
258 views

NetBeans won't install on macOS Sierra [duplicate]

I try to install NetBeans IDE on my MacBook Air (2017) with macOS Sierra. I tried both from .dmg file and directly with Homebrew, with the same result - the installation freezes. Have any of you guys ...
1
vote
0answers
318 views

Low CPU usage when performing big task in java

I recently got mac mini and I'm new to OS X so maybe this is a trivial question. I'm developing web application in java using Spring. I have another project to run IT tests which sets up the API and ...
2
votes
1answer
18 views

Disabling Java / Enabling it only on a case by case basis

I seem to have Java installed on my MacBook Pro running 10.10.5. My default browser is Chrome (latest) but I also sometimes use Firefox and Safari. As i understand in an ideal world Java would be ...
1
vote
1answer
25 views

Possible interaction between `brew doctor` and Java

I was doing some cleaning earlier with brew doctor and deleted a file from /usr/local/lib with a .dylib extension. Now, whenever I log into a new shell, I get this error: Error: Could not find or ...
1
vote
1answer
136 views

You need install the older Java SE 6 runtime environment can open the muCommander

I installed the muCommander in my Mac, but can not open it. aircraftdeMacBook-Pro:~ ldl$ java -version java version "1.8.0_121" Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) ...
1
vote
0answers
269 views

Troubleshooting Java GUI app that stopped working

I have a Java app that I use on a regular basis that has stopped launching. The application is a Java program with a Mac GUI tied to it. I suspect that with a recent upgrade of Java on the Mac ...
0
votes
1answer
348 views

SSL Client authentication with non-exportable certificates in Mac

We use our organization's provided SSO certificate for SSL client authentication from our Java based desktop clients (Mac and Windows). It seems in Mac, the certificate is marked with non-exportable ...
1
vote
1answer
320 views

Adobe CS6 problems after installing MacOS 10.12.5

After installing the newest version of Mac OS, I can't open Illustrator at all, and InDesign and Photoshop are giving me a notification that "The Universal Type Client application that is currently ...
1
vote
1answer
308 views

How to manually 'install' a command-line based Java application consisting of an executable and several auxiliary modules?

I'd like to use Briss, a Java application for cropping pdf files. The application consists of a compressed folder containing several Java .jar files. Presumably one of them is the executable, and the ...
2
votes
1answer
3k views

Running a .jar on a Mac

I've recently been wishing I could still play a Minigolf game that came installed with my first cell phone, a Sony Ericsson T610 (eat your heart out, iPhone!), which roughly looked like this: 'Member?...
4
votes
3answers
19k 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 ...
10
votes
2answers
49k views

How to install Java using terminal?

I want to install Java entirely from the terminal without using any GUI. Can anybody give some instructions? I know that I download it with curl, but it seems that curl doesn't play quite nicely with ...
2
votes
1answer
137 views

Homebrew: Why is java not installed as a dependency for Tomcat?

Java is listed in Tomcat's dependency list. But when I install tomcat there is no java. Why? $brew install tomcat $brew list | grep java | wc -l 0
2
votes
1answer
1k views

Netbeans or Eclipse on macOS Sierra - Java problems

I want to install Eclipse or Netbeans on macOS Sierra. When I try to run Eclipse, I get an warning that Java 6 is needed. I downloaded the latest version of Eclipse to be sure. So I tried Netbeans: ...
0
votes
1answer
438 views

Activity Monitor shows java process, jps shows only JPS

My Activity Monitor shows a "java" process taking up 400 MB RAM. jps and sudo jps show only JPS. How do I find out what's running java?
3
votes
0answers
771 views

How does /usr/bin/java work on Mac?

I found /usr/bin/java linked to /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java. And its file content is different from /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/...
2
votes
2answers
1k views

Keep getting a “java” command-line tool notification on macOS Sierra 10

Every so often I keep receiving this "java" command-line tool notification on my Macbook Air - macOS Sierra. When I click on More Info it just redirects me to http://www.apple.com/safari/ Not ...
2
votes
1answer
690 views

File created during maven build can't be copied

Hardware: MacBook Pro (Retina, 15-inch, Mid 2015)\ OS: OS X El Capitan, 10.11.6 Problem: I have a standard maven project which I build using mvn clean install from the command line. I receive an ...
0
votes
1answer
141 views

El Capitan, how to choose a specific Java version to run

I'm running El Capitan and java -version produces the following: java version "1.8.0_101" Java(TM) SE Runtime Environment (build 1.8.0_101-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, ...
1
vote
1answer
283 views

Eclipse STS re creates folders every time it is opened, may be due to file permissions

Ok, i have asked this question two times in stackoverflow two times, here and here. I haven't gotten an answer, but after rethinking the problem i think it may be because of files / folders ...