Possible bug in Java Web Start - java

I am using Ubuntu operating system with Java version 1.7.0_15 (Iced Tea). I am unable to access the Java web start application. Every time I start it I get message that Java web start requesting JRE 1.7 and then says that it is unable to install so manually install and then it failed to install the JRE. I do not know what to do.
Here is my java version
Here is few important information
1. I have validated JNLP file using JaNeLa and there is no error.
2. Ubuntu is opening Application with JRE 1.6 perfectly fine.
3. On Windows every version is running perfectly fine.
4. I have tried with deployment tool kit but the always redirect me to the Sun page to download the linux version of JRE and even after installing that it again redirect me to the download page.
Please let me know if I can provide more information.

So finally after working whole day I have found the problem with my system. I am not sure why my question got -3 but it was valid question. The problem was with the Java plugin in the Firefox browser. Although I have installed jdk 7 on my machine but the firefox plugin was still pointing to the jre6 so giving error. So I have to manually create the link for the jre 7 in my machine
ln -s /usr/lib/jvm/<<location of jre 7>>/jre/lib/i386/libnpjp2.so ~/.mozzilla/plugins
Then I restarted the browser and make sure that I have the latest plugin and it started working, So it was not the java installed but it was firefox plugin.
Just FYI, oracle has stopped it support for java plugin for linux due to some licensing so you have to install it manually. Thanks
You can check the installed plug-in by typing 'about:plugins' in your address bar of firefox

IMHO OpenJDK 7 is not a JRE 7.
You may uninstall it before install oracle jre. Otherwise you have to use sudo update-alternatives to define the default java version
See https://askubuntu.com/questions/67909/how-do-i-install-oracle-jdk-6

Related

How to install JDK and JRE

I am attempting to run an application (monitor.exe) for monitoring things going on with my device when running a test program, but I am getting the following error message:
A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Monitor. No Java virtual machine was found after searching the following locations:
C:\Users\Datu1\AppData\Local\ANdroid\Sdk\tools\lib\monitor-x86_64\jre\bin\javaw.exe
javaw.exe in your current PATH
Can I install via Android Studio or should I go to the Oracle website? Is it a single installation package for both the JRE and JDK? Also I have tried running command line commands to see if the JDK is installed as well as searching folders and it is not installed.
As #davedwards has said above, you would need to download and install the JRE from the Oracle website. If you still run into problems once installed or you have already installed the JRE you may need to check your PATH system variable.
The help section on the Oracle website Here
Will take you through this process.

Can't download JDK 8

I'm trying to setup Unity to build for Android. But I can't get the Java Development Kit. Can't download it and can't find it either.
In this answer, the guy says
To ensure JDK is installed, just go through the following :
press Win + R
type 'cmd' in the popup and press button OK.
in the console which has opened, type javac -version and press enter.
You should see as an output :
javac 1.8.0_XX
If so SDK is installed.
I did that and I got "javac 1.8.0_XX", and so I assumed I had the JDK, so I went to Unity > External Tools > JDK and tried linking the following path: "C:\Program Files\Java\jre1.8.0", and got the error message: "The path you specified does not look like a valid JDK installation. Android development requires at least JDK(1.7), having JRE only is not enough. Please make sure you are selecting a suitable JDK home directory or download and install the latest JDK: link"
I clicked the download link for windows x64 and it never loads and eventually says there's no connection. I tried the x86 as well.
In this SO question How do I find where JDK is installed on my windows machine?
Answer: For windows, in the command prompt:
c:\> for %i in (java.exe) do #echo. %~$PATH:i
And so I did that and got the path "C:\ProgramData\Oracle\Java\javapath\java.exe"
When I try linking via Unity > External tools > JDK it doesn't find any files.
I'm a bit clueless now.
#RealAnyOne, you have installed Java with JRE only installation i.e., without out a JDK that’s what you see only one folder and this is why it also showing version in the command line since it won’t check for JDK. JRE is Java Runtime Environment, JDK is Java Development Kit which contains many essential libraries. So Ideally there should be two folders JRE and JDK. This is the reason you are getting this issue with Unity.
To Fix::
Uninstall old Java 8
Download Java 8 from the oracle website
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Install it. Now you should have two folders. Then point your Unity to it.

Java stopped working in Firefox. Works in IE

Some Java applications recently stopped working in Firefox. I believe there was a recent upgrade to Firefox (it is now on 38.0.1), and this may have brought about the issue. My Java version and settings did not change, so I think that it must have been a silent upgrade. Also, the same applications still work in Internet Explorer, so I know that Java itself is still working.
Now, even if I go to the "Verify Java Version" page on java.com through Firefox, I only get a grey box after I click Agree and Continue.
When this issue first came up, I had both Java 6R27 and Java 7R11. I've tried upgrading Java to the latest version 8, but even with that as the only installed Java version, I am not able to run the Verify Java or my other application.
When I launch my main application that needs Java, I get "ClassNotFoundException" for "PasswordDialog.class." How can I troubleshoot why this does not work in Firefox while it does work in Internet Explorer?
Download the jxpiinstall installation not the JDK one.
The best way to install Java and run FireFox is to get the JRE running not the JDK, I found out that installing each on separate folders did the trick for me.
So I have my JDK in : C:\jdk1.8.0_60
And my JRE in C:\Program Files (x86)\Java\jre1.8.0_60
First, you need to remove java from your pc, uninstall FF and reinstall FF then Java

Installing multiple java versions on Unix

Does installing JDK 1.7 remove JDK 1.5? Because when I tried to restart Tomcat which was using Java 1.5 I have got the below error:
/opt/tomcat/bin/catalina.sh: line 332: /usr/java/jdk1.5.0_22/bin/java: No such file or directory
Verified that this directory is gone. Tomcat services running fine until shutting down and attempting to restart last night. When trying to install Java 1.5 J have got the below error message:
Preparing... ########################################### [100%]
package jdk-2000:1.7.0_17-fcs.x86_64 (which is newer than jdk -2000:1.5.0_22-fcs.x86_64) is already installed"
Will installing JDK 1.7 remove JDK 1.5?
How do I install JDK 1.5?
It depends on how you installed (which package manager or if you used the self-extracting sh or unzip). Normally, no, they don't install over, they install alongside and simply replace symbolic links.
If you follow your symbolic links for java (which java | ls -l)... you'll find the install dir of the jdk1.7, and probably find 1.5 nearby.
You can download the JDK from the Oracle Java archive page and you can extract it to the required location to fix your problem.
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase5-419410.html

failing to install JDK 7

I don't know if it is the right place to ask, if not tell me I will migrate my question elsewhere.
I am using OSX (Maverick) and I am trying to install the JDK 7 in order to use javaFX. So I downloaded the .dmg package from oracle and when I double click on the package, I get the error message can't found mountable file systems. In the documentation I found this alert:
If you download Java 7, you will not be able to run Java content in Chrome on Mac OS X and will need to use a 64-bit browser (such as Safari or Firefox) to run Java content within a browser. Additionally, installing Java 7 will disable the ability to use Apple Java 6 on your system.
So how can I properly install the JDK 7? and Is it dangerous to install it? Could it mess up all my settings, knowing that I only want to use the JDK 7 to run some java project ?
I believe the error message you are getting just indicated a corrupt dmg file.
Try downloading and installing it again and it should work fine.
So how can I properly install the JDK 7?
You can only install the 64bit version of Java 7, the only real downside is that it will not work with things like the crome browser, you can install it the same way as you first tried, download and install it from here: JDK Download
Is it dangerous to install it? Could it mess up all my settings
No, installing the JDK should not make any noticeable change, even if you run apps on it instead of your previous JDK/jar, they should still work. If you have older JDK's installed you can still use/select them in an IDE. If you do use crome then it should continue to work as normal using the existing/old JRE/JDK that you have installed.
knowing that I only want to use the JDK 7 to run some java project ?
The Java 7 JDK is backwards compatible, meaning it should run all existing java apps.
If you were worried about swapping between Java 6&7 then this thread may help: https://superuser.com/questions/490425/how-do-i-switch-between-java-7-and-java-6-on-os-x-10-8-2
You can download on another system. And unzip the contents to a folder. Then you can copy that onto your Mac and try. I guess that is what he meant by the folder.

Categories

Resources