How can I run Java on my browsers? - java

I have installed Java 8 (SDK) but when this is installed also is installed the JRE too. I want to execute an applet into chrome or firefox browser, but always when I executed appears a message that I need to install the plugin to execute this.
Is there a way to specify to the browser, where was installed my jdk or jre and execute this?

From Firefox, go to plugins, and make sure it doesn't say "never activate" next to the plugin in question.
I do not have chrome on this computer, but I would imagine it is a similar procedure.

Related

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

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.

Install JRE without browser launch

I'm installing JRE using this command line in my NSIS script:
jre-7u45-windows-x64.exe /passive REBOOT=Suppress JAVAUPDATE=0 WEBSTARTICON=0 /L
this is no silent installation, as I want the user to see the install progress etc.
it works fine, but there is a huge annoyance.
When the JRE installer finishes it launches the web browser with this web page:
http://java.com/en/download/installed.jsp
Is there any way to prevent the JRE browser launch?
See this for Offline installation options: http://www.oracle.com/technetwork/java/javase/install-windows-141940.html
Then adjust command line for executing jre/jdk installer from NSIS script.
Good luck. Report back your progress, if you may. Thanks.
As I understand, you already have a JRE installer and you want to change its behaviour from the one you're developing. This is not possible since you don't have control over the installation script that created the JRE installer. The only workaround is to roll your own JRE installer - but you'd have to know exactly what else it does besides copying files.
One very strange possibility is to use /s option and provide your own visual feedback: either static, or dynamic by looking for expected files that are created in expected locations.

Possible bug in Java Web Start

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

How do I determine if I'm going to get an inline or redirecting java install?

I'm using the following Java Deployment Toolkit:
http://java.sun.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html#deplToolkit
Now, I've searched the docs, and I cannot find when the inline java installer is possible. If the user has absolutely no java installed, they will be redirected to the get java page. If java has been installed on a machine at one point, the inline installer seems to trigger, even after I've supposedly uninstalled the JRE and java plugins for both FF and IE.
What gives? Is there an easy way to check whether or not a redirect is coming? Thanks.
If the user has Java 1.4.2+, the install will be an upgrade install.

Categories

Resources