my java isn't working anymore, since upgrading to MacOS X El Capitan.
If i type "java -version" in the Terminal i will receive a popup telling me, that i have to install java from the Website.
After downloading and installing the jre8_60 the problem still persists.
Anyone have a clue to solve this problem?
So according to: https://oliverdowling.com.au/2015/10/09/oracles-jre-8-on-mac-os-x-el-capitan/
the .dmg for mac is not working.
But with the guide on this site it is possible to install the JRE8_60 with the .tar.gz version of the java download.
It's best to install the JDK (Java Development Kit) rather than the JRE (Java Runtime Environment) when programming in Java.
The difference?
JRE: Java Runtime Environment. It is basically the Java Virtual Machine where your Java programs run on. It also includes browser plugins for Applet execution.
JDK: Java Development Kit. It's the full featured Software Development Kit for Java, including JRE, and the compilers and tools (like JavaDoc, and Java Debugger) to create and compile programs.
Related
This question already has an answer here:
Why cant I run apt install on mac?
(1 answer)
Closed 5 months ago.
I'm trying to do the command sudo apt install git nodejs npm curl but I keep getting an error message that I don't have java installed, even though I do. I've even installed the latest jdk on their website but still get this issue. For reference, I'm using a mac.
sh-3.2$ java -version
java version "1.8.0_341"
Java(TM) SE Runtime Environment (build 1.8.0_341-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.341-b10, mixed mode)
It looks like you're trying to use the APT tool to install software. This is the standard software package management tool for several Linux distributions, but is not commonly used on macOS.
The apt command that ships with macOS is a stub for the deprecated Annotation Processing Tool that used to be part of the Java SE Development Kit (JDK). macOS ships with binaries corresponding to the ones provided with JDK distributions. These built-in command attempt to dispatch to the corresponding tool in the currently installed JDK, or prints an error if this can't be done. In this case, the apt tool was removed from JDK 8 (aka 1.8) and later. It can only be found by installing JDK 7 or earlier.
However, solving this won't solve your overall problem, because this is a completely different tool that happens to share the same command name, but has nothing to do with installing software packages.
If you're following instructions for installing software, be sure you're referring to ones written for macOS and not Linux. While there are some similarities between these operating systems, there are also many differences, particularly in the standard command line tools.
If you don't have existing instructions to follow, consider trying Homebrew to install these packages on macOS. It's popular, well-supported and capable of installing all of these packages.
On the other hand, if you really are intending to use the APT package manager on macOS (for example, via the Fink project), you'll need to ensure that you've correctly set up the PATH environment variable so that the installed apt command is found before the /usr/bin/apt command that ships with macOS.
I'm trying to install eclipse on my Mac so I can work on a homework assignment for school. It's a new laptop so I needed to reinstall java on it which I did. Oracle's website said it was going to be the latest version of Java. However when I try and install eclipse I'm getting an error saying:
"Version 1.6.0_65 of the JVM is not suitable for this product. Version 7.0 or higher is required."
When I go into terminal and check the version sure enough I get
$ java -version
java version "1.6.0_65"
When I go to the Java Control Panel to try and update it there it tells me that I'm up to date saying I have Java 8 Update 101 but I'm still unable to install eclipse. I have no idea what is wrong and could use some help.
Thanks!
Make sure you download both:
Java Development Kit (JDK) 8 - http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Java Runtime Environment (JRE) 8 - http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
link : https://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html and scroll down to mac install instructions for more help
Do the big Linux distributions support java when freshly installed?
If i have a Java Swing application, will it work in a freshly installed Linux with no internet connection?
I understand that there are no guarantees, but how likely is it for a Linux machine NOT to have any java/Swing support?
if you can check the o/p of command java -version in a terminal, it'll show if you have java installed or not.
So if Java or JRE is installed you can surely use your Swing application.
But if you are planning to develop a swing app you need to have JDK installed in your system.
you can if the command javac -version is working then you have JDK installed in your system.
But I suspect if any Linux distribution comes pre-installed with a JDK. For once you can find installed JRE by default but it is difficult to get pre-installed JDK in any Linux OS.
Could anyone please tell how jre directory help in the running java programs? I'm calling java interpretor by using java command, and that is in JDK directory, then how could jre directory help in running java programs and jdk for compiling?
When you install the JDK (development kit, compiler and so on), you get the JRE (runtime environment) as part of that (under my install, there's actually a jre subdirectory in the jdk folder) - this is because you will probably want to run code that you develop if only to test it a little bit before inflicting it on the rest of the planet :-).
But it's by no means necessary to install the JDK to run Java programs. All you need is the JRE and that is, by far, the normal situation for most people out there.
The JRE is just the interpreter (java.exe or whatever) - it's a smaller install that is typically used by people who just need to run Java applications and aren't Java developers. The JRE handles the conversion and execution of java bytecode for the target platform.
The JDK is meant for developers. Along with the runtime it provides the compiler and all the Java libraries that are used to build Java programs. The compiler is responsible for converting Java source code to bytecode.
So - when you are delivering your Java application to customers, all they need to install is the JRE.
The Java Runtime Environment (JRE) interprets byte code to platform specific machine code. JRE is minimal set of programmes which executes the java class files.
The JDK (Java Developmental Toolkit) comes along with java libraries and JRE embedded in it. Apart from these it comes along with the utility tools for byte code compilation "javac".
Hi I have created a swing application using java 1.5 and i created a distributable jar of that file. I can run the jar in windows OS and linux OS but when i run in Mac it gives me error. I checked I am using java 1.5 version.
I think the program asks for java 1.6 version.
How to resolve the problem.
Thanks
Sunil Kumar sahoo
Some of the swing components eg= JOptionPane is in java1.5 in linux and Windows but its in java 1.6 in Mac. So u have to install java 1.6. Java launches different features in different platform as a new release. So install java 1.6. It will solve ur problem.