The java library I need (jpcap) only works on Java 6, it won't work with Java 7. Is it still possible to install Java 6 on Ubuntu? According to the Ubuntu Help:
Oracle (Sun) Java 6 is no longer available to be distributed by Ubuntu, because of license issues
I've tried to use the instructions on the same site but they don't seem to work...
./jre-6u34-linux-i586.bin doesn't seem to do anything!
Check out these instructions on how to install Sun JDK 6. In older versions of the repositories the desired package is included.
If you're not obliged to, try using jNetPcap instead. It's another wrapper around pcap, it just works on more recent JVMs and is not restricted to 32 bit architecture.
I would try the OpenJDK 6 which AFAIK is fine on Ubuntu and check you have the right version 32-bit vs 64-bit for your machine. i586 is 32-bit and won't work with a 64-bit build of jpcap.
Related
Apologies in advance. I know this is a basic question.
I am new to server administration. I am administering a server where the users do Java development.
They have a Java-based application and do development in Eclipse. Eclipse is 32-bit. The OS is 64-bit.
I recently updated the JDK and JRE on the server. I have both the 64-bit and 32-bit of each installed.
Eclipse ran into an error where it couldn't start after I had updated to the new JRE and JDK. So I took some advice online and updated the -vm path in the Eclipse .INI file to point to the new 32-bit JRE path. It now works.
I have two main questions:
Will updating the JRE and JDK EVER cause an issue with development, or as long as they can open up Eclipse and use at least one version of the JRE or JDK, they will be fine? I guess my fear is that they are going to develop in a certain version and the next version will cause issues down the line.
They develop in 32-bit Eclipse (not sure why they chose 32-bit) but their application runs with 64-bit Java (that is where the path points to for that installation). If something is developed in 32-bit Eclipse can it run with 64-bit Java? Side question: is there a certain advantage with developing with 32-bit Eclipse on a 64-bit system or is it personal choice?
Thanks a lot and cheers!
I guess my fear is that they are going to develop in a certain version and the next version will cause issues down the line.
Java 6 and 7 are end of life; Java 8 code should still be run when Java 9+ rolls out. I've not been aware of any backwards compatibility issues in recent years, it's only forward compatibility that doesn't work (running Java 8 compiled libraries with JRE 7).
They develop in 32-bit Eclipse (not sure why they chose 32-bit) but their application runs with 64-bit Java
The IDE and code run in separate processes. There's no harm in using the 64bit JDK with 32bit editor.
Eclipse 32 bits running on 64 bits JVM
Should I use Eclipse 32bits or 64bits on my new machine?
Will updating the JRE and JDK EVER cause an issue with development...
I believe it technically could render what you developed "obsolete" if you're initially using one JDK with some specs and change for another one with specs that are not "compatible" with what you built so far. By specs, I mean the libraries, tools, etc that the JDK contains. But I would say it would be unlikely that such problems occur. It personally never happened to me. I'd like to have someone with more knowledge give more details though and validate what I'm saying or correct me if I'm wrong.
If something is developed in 32-bit Eclipse can it run with 64-bit
Java?
To my knowledge, there are not related things. In my mind, Eclipse is just your IDE and it allows you to build/compile code using specific JDK (32 or 64 bits). As a matter of fact, you don't even need eclipse to build code but you definitely need a JDK: it's the JDK that give you the tools to compile code that "targets" a specific JRE/JVM and Eclipse is using the tools your JDK provide.
So yes, you can use eclipse 32 bits to build code for a 64 bits JRE.
If I install SoyLatte on MAC 10.5.8, On command line I can see the version as 1.6.0
However the Safari Browser extension still shows the old java version.
In Java Preference also I am not able to see Java 6 version.
How do I update browsers to run under java 6.
Any help will be appreciable.
SoyLatte is not a full replacement for Java on OS X - just a proof of concept - and the real port of OpenJDK is targetting OS X 10.6 and up.
For OS X 10.5 you are best off with the official Apple offerings which according to http://support.apple.com/kb/HT4739?viewlocale=da_DK includes Java 6.
OSX 10.5 originally only included Java 1.4 and 5 OSX Java 1.5 release notes to get later versions you need to install the updates the latest provide 1.6.0_26 and 1.5.0_30,albeit 1.6 is for Intel 64 bit machines only.
Sun's website is confusing.
I am looking for Java 1.6 Enterprise Edition SDK for WINDOWS 7 64-bit.
I found the 64-bit Standard Edition, and the 32-bit Enterprise edition.
Can anyone help?
Thanks
The 32bit vs 64bit refers to the JVM itself, as well as some core libraries. So the 64bit JavaSE download is the JavaSE runtime on top of a 64 bit JVM.
On top of that, the majority of the JavaSE APIs and libraries are not specific to 32bit or 64bit. JavaEE runs on top of JavaSE, and so it's not 32bit-64bit specific.
So, pick the JavaSE appropriate to your environment, and don't worry about it for JavaEE.
I'm going to answer my own question, how about that:
https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=java_ee_sdk-6u1-wjdk-oth-JPR#CDS-CDS_SMI
I had Java SE 64-bit installed and I tried to install Java EE. I had the following error (well something like that):
Missing Java installation...
If Java is installed on your computer you can try : Java_EE.exe -j (Java(TM) Directory Installation)
I tried the -j command with JDK, JDK\bin, JRE, JRE\bin
I tried to reinstall java 64-bit
I tried re-setting JAVA_HOME, PATH and CLASSPATH variable just for
the sake of it...
Nothing worked
I installed Java SE 32-bit, double click Java_EE.exe and everything work...
EDIT : And now to complement the strangeness when I go through the Java_EE.exe installer, the installer spot my Java SE 64-bit edition (maybe because I set the environments variables)
Currently, I am running Mint Linux (Release 9). I need to downgrade Java from version 1.6 to 1.5, and have been trying to figure out how to go about this. So far, I've had no luck. The package manager doesn't seem to have it.
Does anyone have any suggestions?
Thanks,
- Chris
As you explained in your comments, you need JDK 5 because you are working on the source code of Android itself and the instructions say:
Ubuntu Linux (64-bit x86)
... JDK 5.0, update 12 or higher.Java 6 is not supported, because of incompatibilities with #Override.
You can do this:
Uninstall any Java that you got via the package system of your Linux distro
Download JDK 5 Update 22 for Linux
Run the JDK installer with sudo, install it wherever you like (for example in /opt or /usr/local)
Set your PATH environment variable to include the bin directory of the JDK
There should be no need to downgrade your Java installation to develop for Java 1.5. If you are using a tool such as Eclipse, you can set the project attributes so that it tests for Java 1.5 compatibility, and gives errors if you use a Java 6 feature. If you absolutely insist on having a Java 1.5 JDK then just install it alongside the default installation and use it in place of Java 1.6.
This should be a question for SuperUser.com, but my recommendation is to download the 1.5 JDK, and change Java path to where you downloaded it.
Or you could use the info on Ubuntu Help, it should work for you since Mint is based on Ubuntu. That link explains how to select the version of Java.
Is it possible to install the latest JDK on Mac OS 10.5? What are the best options, considering that the Apple-supplied version is 1.5?
Update: I am trying to install JDeveloper 11, which requires JDK 6.
If you have an Intel Mac with a Core 2 Duo, go to Applications/Java and run Java Preferences.app
You'll be able to select "Java SE 6" as your default java version (version 5 is still the shipping default on the OS for compatibility, I guess).
Depending on your hardware the latest version Apple supplies actually is Java 6, but it is not activated as the default version to use. Apple supplies Java 6 only for 64-bit Intel Macs (i.e. not for original Core Duo Macs). For older Macs, you could try the OpenJDK port of Java 6 for Mac (SoyLatte).
Apple provides Java 6 (1.6) for Leopard (OS X 10.5) as an update, however only the 64-bit version. So, if your Mac is not a 64-bit Intel, then you won't have Java 6 on Leopard.
If you do have a 64-bit Intel, then ensure that you install the latest OS updates, especially the Java ones to make sure you get Java 1.6. Also, you still need to set Java 6 as the default VM in your Java Preferences, as it defaults to Java 1.5.
Currently, the easiest solution if you have a 32-bit Intel processor is to upgrade to Snow Leopard, which includes 32-bit and 64-bit versions of Java 6.
OS X does have Java 6 after Update 1. The version number you are referring to is the version of Java 6. Do you receive any errors while installing JDeveloper 11?
It's just a software update. Here's a blog post that describes it.
JDeveloper like netbeans and eclipse provide a configuration file(usually a .conf) where you can update a jdkhome attribute addresing the path of your jdk6 installation, as mentioned before you can get it from OpenJDK port of Java 6 for Mac.
You also need to be aware that:
if you have an alias "CurrentJDK" and if that alias is "broken" then you must delete it to install a new JDK.
Deleting that "alias" will solver troubles.
It is. Check here: Apple support