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
1
vote
2answers
161 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
99 views

Java update not working? [duplicate]

well I have java 8 45 and when I go into terminal and do java -version it says this "java version "1.6.0_65" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716) Java HotSpot(TM) 64-Bit ...
0
votes
0answers
265 views

Upgraded to 10.10.4 (from 10.8.5), now JNLPs don't open in finder?

I've finally upgraded from 10.8.5 to 10.10.4. But now double clicking on a JNLP file in finder no longer downloads and runs the (in the JNLP file defined) jars but takes me to the Oracle Java download ...
3
votes
2answers
19k views

Uninstalling Java 6 to replace with Java 8 [duplicate]

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. I keep ...
3
votes
4answers
7k views

How to create a .app folder from an executable .jar?

Just this. I have an executable jar that I'd like to create a .app folder for. Mainly just because I'd like it to be pinnable to the dock. Is there any easy way to do this? Edit: Really what I'm ...
1
vote
1answer
733 views

How to install, specific version of Java by command line on Mac? It's Possible?

It's possible to install an old version of Java by command line in Mac, it's possible? I am trying install java 1.6.0.17, but i can't find this version for Mac OS. I think it's possible to intall it ...
1
vote
1answer
580 views

Why is it that my MacBook Pro Retina's resolution is detected as different based on the application?

The actual advertized resolution is 2880 x 1800. Taking a fullscreen, screenshot gives me an image that is 2880 x 1800. Going to this site tells me my resolution is 1440 x 900. The built in Digital ...
0
votes
1answer
2k views

setting JAVA correctly on MAC

I am new to mac (coming from the windows world). I did some reading on how and where JAVA HOME is set on a mac machine. I have some assumptions listed below, would be great if someone could go through ...
5
votes
1answer
10k views

How to properly install Java in OS X

When I look at System Preferences > Java > Update, I see Your system has the recommended version of Java. Java 7 Update 79 From Terminal, java -version: java version "1.7.0_71" Java(TM) SE ...
4
votes
2answers
3k views

How to install LP_solve solver on Yosemite?

I want to install java based "lp_solve" LP solver on my MacBook Air, OS X Yosemite. I tried to follow the instructions given here. But when I run sh ccc.osx, it is not creating the liblpsolve55.dylib ...
0
votes
1answer
443 views

Mac OS X Yosemite Java 1.6 Downgrade to 1.6u35

I installed the latest version of Java 1.6 provided by Apple and didn't realize that the application I have to do development for must use 1.6 update 35. Is there anyway I can uninstall the latest ...
0
votes
2answers
68 views

What sets my Java Virtual Machine?

I'm not understanding how my Java environment is getting set up. If I have multiple versions of Java installed how does the correct version get selected when I start a Java dependent application? I ...
2
votes
2answers
3k views

Oracle's Java 1.8 appears to not actually install itself

I have searched for answers this problem, but nobody seems to have such a basic problem as I have. I have Java 1.7 installed and tried to install 1.8 - both through the Java control panel and manually ...
2
votes
1answer
3k views

Java 8u45 installation unable to locate a Java runtime to invoke

I've downloaded and installed Java JDK 8u45 for OS X 10.10.1 and after the installation has completed (successfully), java -version produces the following: Unable to locate a Java Runtime to invoke....
10
votes
3answers
29k views

Is there a Java IDE for iPad which can compile and run Java locally?

I'm about to have a coding session with some buddies. Problem is, one doesn't have a laptop. He's pretty new to programming so I was going to set him up something either on a rickety laptop or my iPad ...
0
votes
1answer
145 views

How do you control the security of Firefox browser in Yosemite to run educational Java app?

I am trying to run the following Java applet in the following web page: http://artint.info/demos/rl/q.html However, Firefox is blocking it due to a security issue. Not sure if it's an Apple issue ...
1
vote
1answer
5k views

How to find rt.jar file?

My virus scanner (Sophos) showed that it was scanning a file named rt.jar plus several other .jar files. I was a little bit surprised because I didn't think that Java was installed. Yet, when I ...
2
votes
1answer
865 views

Java update via Control Panel error

Was trying to run the Java update earlier. But it couldn't launch the installer after downloading. Here's the log: 21/4/15 12:35:58.498 am Java Updater[814]: Original euid:501 21/4/15 12:35:58.500 am ...
5
votes
2answers
13k views

Where else can I download the legacy Java SE 6 runtime?

I just upgraded to OSX Yosemite. I am trying to open my Adobe Flash CS6 app, but it says To open "Flash" you need to install the legacy Java SE 6 runtime. A simple google search yields this page: ...
2
votes
1answer
2k views

Open Java .app application bundles with double click on a Mac without Apple's Java 6

In short: On a mac with a clean installation of Yosemite, doubleclicking a compiled Java mac-style .app application bundle fails to launch the app, unless Apple's Java 6 is installed, even if the ...
1
vote
2answers
1k views

Why I have 3 different Java versions on my Mac?

today I was looking after my Java Version and I got very confused. I found three different ones: If I look in Webstorm it uses: 1.6.0_65 If I make java -version I get: 1.7.0_45 If I look in the ...
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 ...
1
vote
2answers
6k views

Install jdk 8 without admin privileges

Is there a way to install or run jdk 8 without admin privileges? I would like to compile a java project I have that requires jdk 8 on a computer that has only jdk 6 installed. I am not an ...
2
votes
0answers
745 views

How to get rid of stale Java icons from application switcher & dock?

I recently started seeing "java" processes with the default Java icon sometimes stay in the switcher/dock after Java Web Start applications are closed (OS X 10.9.5 Mavericks). This may have begun with ...
1
vote
1answer
2k views

Step to step guide how to use 32bit version of Java in Eclipse

I have a Java project in Eclipse that requires Java 7 running in 32 bit mode. I tried to force running in 32 bit mode by adding the flag -d32 to the VM arguments. However, I then get the following ...
2
votes
2answers
987 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 ...
3
votes
2answers
3k views

Could the Java Updater (com.oracle.java.Java-Updater) be the source of all my kernel panics?

In the past few months I've been getting more kernel panics than usual. This is on my late 2012 2.3 GHz Intel Core i7 Mac Mini, running OS X Yosemite (OS X 10.2.2) with 16 GB of RAM. Looking at the ...
3
votes
1answer
13k views

Can't update Java due to apparently newer version already installed

I'm trying to update Java on my MacBook (OS X 10.9.5). When I download the most resent version (v8 update 40) from java.com and try to install it, it pops up an error box saying You are trying to ...
0
votes
1answer
346 views

Linker Error: leJOS NXJ HelloWorld complains 32 bit JVM unsupported

I trying to get started using leJOS NXJ to develop in Java for my Mindstorms NXT. I've installed Oracle's Java 8 JDK, Eclipse and leJOS NXJ on my Macbook Pro running Mountain Lion. When I try to ...
0
votes
2answers
3k views

Why is Java SE 6 Legacy required to open Intellij?

I currently deleted Apple Legacy Java SE6 on my macbook because I've already downloaded JRE8 on my machine and I think I no longer need the older version. After I deleted it, every time I opened ...
2
votes
1answer
2k views

What causes the pop-up “To view this web content, you need to install the Java Runtime Environment”

On OSX Yosemite an annoying pop-up comes up quite often saying: To view this web content, you need to install the Java Runtime Environment I know the solution is to install java; however I'm ...
9
votes
3answers
25k views

How to uninstall Java 1.8 under OS X 10.10 Yosemite?

There are a few answers on old questions about the same issue under Lion / Mountain Lion. Now with Java 1.8 and OS X 10.10 I wonder if anything has changed? Would be great to have exact removal steps. ...
0
votes
1answer
5k views

Eclipse Fails To Launch Complaining of Incompatible Java VM

I get the following error when trying to launch Eclipse, which I recently tried to install. "Version 1.6.0_65 of the JVM is not suitable for this product. Version 1.7 or greater is required." I'm ...
1
vote
1answer
6k views

How to start SQL Developer with the correct Java Version?

I've Java 1.8 installed on my Mac OS Yosemite... and Terminal shows the following: mccoy:~ daniel$ which java /usr/bin/java mccoy:~ daniel$ java -version java version "1.8.0_25" Java(TM) SE Runtime ...
2
votes
1answer
99 views

Apple says I'm signing an app with old OS version, and I'm not

I'm trying to submit a Java-based app to AppStore. After having the worst headaches in my life trying to sign everything my last problem (I hope!) is this: Invalid code signature - Signatures ...
-1
votes
3answers
22k views

How do I install Apache Tomcat 7.0.x on Yosemite? [closed]

I am a junior-level developer beginning to work on a project that requires me to use Apache 7.0.x, and I'm running Yosemite with a Windows 7 VM. When I did some research on how to get Apache, I ...
0
votes
1answer
189 views

How to restart a process without user interaction

I killed a process (a simple .jar running in the background as a global agent) by pkill -9 java. Since the global agent in launchd is configured as keepAlive the process gets restarted immediately. ...
5
votes
2answers
24k views

I can't find the location of jdk for Java 7 and 8 [duplicate]

I have 3 different versions (jdk) of Java installed: 6, 7 and 8. In bash_profile: export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) setjdk() { export JAVA_HOME=$(/usr/libexec/java_home -v $1) } ...
1
vote
1answer
2k views

Location of java.security and deployment.properties files

Where are java.security and deployment.properties files located on Mac OS Yosemite??
2
votes
3answers
2k views

Shell script to restart a certain process if it is not responding

I need an java application to run 24/7 on my mac. Unfortunately the JVM process sometimes gets stuck and thus the java application does not respond anymore. Is there a possebility to detect if a ...
2
votes
1answer
3k views

“Failed to install SGD client” when accessing the secure global desktop from OS X

I am having an issue since I have upgraded to OS X Yosemite. I used to previously remotely access my work's Windows system from my Mac (OS X Mavericks). I had installed XQuartz and Java and was using ...
1
vote
1answer
8k views

Now when Chrome is 64-bits, how do I install the Java plugin?

As long as Chrome just was 32 bit, the Java plugin was not supported since Java for Mac OS X is 64 bit but now when Chrome (since version 39) is 64 bit, how do I install/enable the Java plugin? ...
1
vote
1answer
1k views

How can I eliminate this repeated Java Runtime Environment (JRE) pop-up window?

This window has been popping up repeatedly: I was sure that I already had the latest version of Java installed, but to verify I went here: https://www.java.com/en/download/installed.jsp And sure ...
1
vote
1answer
3k views

What are the dimensions for the apple dock icons?

I have figured out how to change the icon for my program that I made in java, but now the default icon goes and nothing is there, is it because of the incorrect dimensions? I currently have a 16x16 ...
1
vote
1answer
9k views

How to launch web start on 10.10 OSX

My wife is taking an online class and it says it needs to launch using Java Web Start. I've changed the endings from .ed files to .jnlp files and make sure I click open other and select Java Web ...
0
votes
1answer
9k views

Problem with installing Java: java: command not found

I just installed Java 8.25 but I'm still not getting 'legacy' applications to work. I tried verifying the version in terminal: manfred$ java --version -bash: java: command not found I think there's ...
1
vote
1answer
174 views

iMac install Java, webpage test succeeds, `javac` fails

I'm trying to install Java on my iMac running 10.9.5. I downloaded and installed JDK according to the official Oracle instructions. When testing via the web-page at the end of the install, Java is ...
1
vote
1answer
151 views

Automator fails. Is there a better solution?

Recently I was trying to train an Automator script to run some mundane tasks - unfortunately it stops at the first step. I clicked the "record" button on my old Mac OS 10.5 machine, opened Keychain ...
1
vote
0answers
861 views

Mac preventing loading Java site

I am trying to administer my Western Digital MyBookLife home network drive, using the Java based admin console provided by WD. The console is a web application served up from the drive itself. ...
1
vote
1answer
2k views

No java installations was detected, although I have Java

$ java -version java version "1.6.0_65" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609) Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode) $ which java /usr/bin/java ...