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
10k 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
8k 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
530 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
27 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
254 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 ...
5
votes
2answers
22k 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
390 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
377 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
33 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
142 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
311 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
391 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
332 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
324 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
5k 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?...
5
votes
3answers
23k 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 ...
14
votes
2answers
61k 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
146 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
487 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
944 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
2k 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
776 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
160 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
301 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 ...
0
votes
1answer
202 views

Java 6 runtime environment & old Filemaker pro

Have an older large environment running FileMaker Pro 10, on OSX 10.7. It's got: java version "1.6.0_65" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609) Java HotSpot(TM) 64-...
0
votes
0answers
51 views

How do I get javaws to recognize and use alternate JREs that I have installed?

I have multiple JDKs installed. For one particular JNLP I need to make sure it is run with some older JRE. The Java Control Panel only recognises the latest version. How do I make it see the others ...
0
votes
1answer
43 views

OSX service with custom user does not write Java Preferences

This is the setup: OSX Yosemite Java based service that is being started using a LaunchDaemon The service is started with a custom user that is being created during installation The user has a custom ...
3
votes
1answer
855 views

Did the most recent Mac OSX security update version 2016-001 (10.11.6) break java jnotify?

I installed the security update 20016-001 for Mac OSx 10.11.6 this morning and now my use of sbt (0.13.8) with scala (2.11.8) and playframework (2.3.9) is giving the traceback below. I'm guessing ...
0
votes
2answers
5k views

Core dumps have been disabled. To enable core dumping, try “ulimit -c unlimited” before starting Java again

When I play Minecraft, usually on servers, my game constantly crashes, and the reason for this is: 'Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting ...
2
votes
2answers
4k views

Java application won't force quit, prevents shutdown

I think there might be an issue on El Capitan with Java applications force quitting, because I've seen multiple people talk about similar problems to this with no actual solutions presented. I've ...
0
votes
1answer
969 views

How can I figure out what's opening a Terminal window whenever I log in?

Whenever I log in to my Macbook, a terminal window pops up with what appears to be some Java CLI help text and a [Process completed] (or whatever) at the bottom. It doesn't cause any problems that I ...
0
votes
0answers
38 views

Configuring application servers to run as service daemons?

Mac 10.9.5 here. I am trying to figure out how to configured my machine to run an executable (Java) app as a service/daemon, so that it is always running so long as the machine is on. Hence, this app ...
0
votes
1answer
7k views

How to forcefully open a blocked Java Applet?

I downloaded from Internet (topcoder.com) a Java applet. When I try to open it, it says "Application blocked for security reasons" because "The certificate has expired". I really want to launch it... ...
0
votes
1answer
546 views

Exception in thread “main” java.lang.UnsupportedClassVersionError (Trying run Alda on OS X)

I've hit a wall with trying to get Alda to run on OS X. It's an executable I downloaded from here; then, as per the installation guide on GitHub, I ran chmod +x alda on it, and then moved it to my /...
1
vote
1answer
2k views

Mac App SQLDeveloper stuck in Dock after application closed, Process killed

I just started experiencing a bug where the SQLDeveloper 4.1.3 (latest) app icon freezes in the mac OS dock. This prevents me from relaunching the app without a hard reboot of the computer. ...
1
vote
2answers
7k views

How to uninstall Java SE 6 on OS X 10.11?

I found an old copy of Adobe CS4 that I had tucked away. I decided to install on my 2014 MBP as I was interested in running Illustrator for some vector images I was wanting to use. It required that I ...
1
vote
1answer
909 views

MEvent. Case! on Matlab running on Mac

When I try to two-finger scroll in a matlab window, I get the error MEvent.Case! The proposed solution (as posted on the Matlab forum) seems to work just fine for Matlab running on Linux !synclient ...
0
votes
0answers
35 views

How do I disable the Java updater on OS X? [duplicate]

I've disabled automatic checking for Java updates the Java Control Panel, but my changes are always ignored, as I can confirm by checking the control panel after making and saving my changes: How do ...
1
vote
2answers
907 views

If I install an older, deprecated Java runtime, will that mess up applications that use the current Java version?

I own a really old version of Photoshop. After I upgraded to El Capitan when I attempt to launch Photoshop I get a dialog saying... To open "Adobe Photoshop CS5.1.app" you need to install the ...
5
votes
1answer
145 views

My IDE runs tests slower when in a different workspace

I am developing a server-side application using Java and OSX and quite often I have to run a rather large test suite to make sure everything is alright. I am using IntelliJ IDEA (Java-based IDE). ...
1
vote
1answer
753 views

How can I automate taking screenshots of 10,000+ pages?

I am using mac OS X El Capitan and need to find a way to automate taking screenshots of 10,000 or more pages. The problem with all current solutions is that the webpage requires me to login using my ...
3
votes
0answers
53 views

How to prevent “install java” popups

When I browse certain websites in Safari, I am frequently met with popups with instructions on how to install Java. But I don't want to install Java, especially not the plugin. How do I tell Safari to ...
2
votes
1answer
700 views

/usr/local/bin/ not found by Automator and Java but exists in Terminal [duplicate]

Automator Shell Script echo $PATH eval /usr/libexec/path_helper -s echo $PATH Results: after the first echo $PATH: /usr/bin:/bin:/usr/sbin:/sbin after the second echo $PATH: /usr/local/bin:/usr/...
1
vote
1answer
2k views

Java 100 % CPU usage

I am using IntelliJ IDEA compiler for Java programming on my MacBook Pro 2015 Retina (Yosemite). When I run some Java program in my activity monitor appears Java process and takes 100+% of CPU. The ...
2
votes
3answers
707 views

What’s the Java Shebang for OS X?

I just started using TextWrangler in place of Eclipse for writing Java programs. I found a script for testing Java programs in Terminal, but I’d like to handle everything right through TextWrangler. ...
1
vote
1answer
181 views

Java 8, Update 73 not installing

I'm following the procedure on Oracle's website to install Java 8, update 73. When I get to step 5 in the procedure and click "Next," the installer window quietly shuts down without and without an ...
2
votes
1answer
882 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
1k views

Running a 32 bit version of java? [duplicate]

I was recently was trying to use a library that needed a 32-bit version of java. I tried to get my version of java to use the 32-bit version by using the flag -d32. However, I received the error: ...

1 2
3
4 5
9