Java Help Please!

Users and developers helping users with technical Pale Moon issues. Please direct questions about the Linux version to the appropriate Linux board.

Moderator: Indalecio

Forum rules
This board is for technical/usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in "technical chat"
Please keep off-topic and general discussion out of this board, thank you!

Java Help Please!

Postby Greenboyb1 » Wed Apr 04, 2012 10:02 pm

How do I re-enable Java? The Browse is blocking it and I cannot unblock it.
-Neb
User avatar
Greenboyb1
Moon lover
Moon lover
 
Posts: 52
Joined: Wed Apr 04, 2012 9:47 pm
Location: Maryville, TN U.S.A.

Re: Java Help Please!

Postby satrow » Wed Apr 04, 2012 10:40 pm

The reason that Java is blocked for you is that it's an old, insecure version that is now being targetted for attacks. http://news.techworld.com/security/3349 ... x/?olo=rss Further info from Mozilla about it here.

Doesn't the latest version of Java work with the site(s) you want to use?
User avatar
satrow
Lunatic
Lunatic
 
Posts: 798
Joined: Thu Sep 08, 2011 11:27 am

Re: Java Help Please!

Postby lobocursor » Thu Apr 05, 2012 2:06 am

I have the same issue, I really need to use an old Java version 1.4 for access a vital system in the University. And no they don't want to change it, to the point to distirbute the java 1.4 executable with the access to the system. Any never version of Java just don't work with that system, so my option may be *gasp* to use MISE for use the University website. :O
I don't bite... hard - Psalm 51 ■ Salmos 51
User avatar
lobocursor
Lunar Warrior
Lunar Warrior
 
Posts: 1072
Joined: Tue Sep 13, 2011 11:08 pm
Location: Mexico

Re: Java Help Please!

Postby Moonchild » Thu Apr 05, 2012 10:45 am

It's what is called "soft-blocked". This means you still have the option to enable the plugin if you really need to.
Go to the add-on manager, plugins. You can enable it from there (it will be marked with yellow). A hard-blocked one would be marked with red and can't be enabled at all.
Please do not send me private messages for anything that could also be posted in the public boards.
User avatar
Moonchild
Pale Moon guru
Pale Moon guru
 
Posts: 8421
Joined: Sun Aug 28, 2011 5:27 pm
Location: Sweden

Re: Java Help Please!

Postby Greenboyb1 » Fri Apr 06, 2012 3:48 pm

Moonchild wrote:It's what is called "soft-blocked". This means you still have the option to enable the plugin if you really need to.
Go to the add-on manager, plugins. You can enable it from there (it will be marked with yellow). A hard-blocked one would be marked with red and can't be enabled at all.


It is not "soft-blocked" because it is colored RED. In other words there is no way to use an old version of Java. :(
-Neb
User avatar
Greenboyb1
Moon lover
Moon lover
 
Posts: 52
Joined: Wed Apr 04, 2012 9:47 pm
Location: Maryville, TN U.S.A.

Re: Java Help Please!

Postby satrow » Fri Apr 06, 2012 6:08 pm

Let's begin again, shall we?

Older, insecure versions of Java are now blocked in many browsers. Even previously 'secure' operating systems, such as Mac OSX, have rushed out patched versions of Java in the last few days - there is a very serious risk using older versions - not theoretical - real, live exploits are out there and almost any site you visit could be loaded with one of them, there's no foolproof way of checking a site before a visit.

Have you tried updating your Java to the latest version and tested it on the site(s) you need Java for?

I think you'll find that your old and insecure version of Java was blocked because you allowed it to be; there should have been a window/popup asking you, or allowing you to disallow the block. I can't personally vouch for or check this though, as I no longer have any Java on my PC.

If you really need to leave your computer open to attack, here's the details from Mozilla (easy to find from my earlier links) to work around the block in Firefox:
Working around the blocklist

If you are unable to update Java and it's critical for you to continue using it, you can re-enable the blocked version.
Warning: This leaves you vulnerable to attacks. Simply browsing to a compromised website could result in your computer being exploited.
Enabling Java

At the top of the Firefox window, click on the Firefox button (Tools menu in Windows XP), and then click Add-ons. The Add-ons Manager tab will open.
In the Add-ons Manager tab, select the Plugins panel.
Find the Java Platform or Java Runtime item and click Enable.

If there isn't an Enable option, you can fix it by doing the following:

Open your profile folder:
At the top of the Firefox window, click on the Firefox button, go over to the Help menu (on Windows XP, click on the Help menu) and select Troubleshooting Information. The Troubleshooting Information tab will open.
Under the Application Basics section, click on Open Containing Folder. A window with your profile files will open.
Note: If you are unable to open or use Fire​fox, follow the instructions in Finding your profile without opening Firefox.

At the top of the Firefox window, click on the Firefox button (File menu in Windows XP) and then click Exit.
In the profile folder that you opened earlier, find blocklist.xml (this may be listed as a "XML document" called blocklist) and pluginreg.dat (this may be listed as a "DAT document" called pluginreg). Delete both these files.
Start Firefox
You will be presented with the Add-ons may be causing problems window with Java listed. Uncheck the Disable box and click Restart Later.

You should now be able to use the older, insecure version of Java.
To find your Pale Moon profile folder, enter about:support into the URL bar then click on the 'Open contaning folder' button.

I would normally suggest that you only allow Java when you need to, disabling it within Add-ons manager when you don't. I really don't know if that's still an easy option with a blocked plugin.
User avatar
satrow
Lunatic
Lunatic
 
Posts: 798
Joined: Thu Sep 08, 2011 11:27 am

Re: Java Help Please!

Postby Moonchild » Fri Apr 06, 2012 8:12 pm

greenboyb1 wrote:It is not "soft-blocked" because it is colored RED. In other words there is no way to use an old version of Java. :(

It should be soft-blocked because the severity in the blocklist is set to "1", which is lower than the default extensions.blocklist.level in Pale Moon (which is 2)

The entry in the blocklist is:
Code: Select all
      <pluginItem  blockID="p80">
            <match name="description" exp="[^\d\._](0(\.\d+(\.\d+([_\.]\d+)?)?)?)|(1\.(([0-5](\.\d+([_\.]\d+)?)?)|(6(\.0[_\.](0?\d|1\d|2\d|30))?)|(7(\.0([_\.][0-2])?)?)))([^\d\._]|$)" />     
<match name="filename" exp="(npjp2\.dll)|(IcedTeaPlugin\.so)|(libnpjp2\.so)" />
<versionRange  severity="1"></versionRange>
          </pluginItem>


The way severity in the blocklist works:
In Firefox 3.1 and higher a severity for the block may be specified on the versionRange element. This should be a value 0 to 3. If the value is equal or higher than a threshold set in the client (2 in Firefox 3.1) then the item will be blocked as normal. If the value is lower then the user will only be warned about the item and may choose to continue to use it. If no severity value exists then the maximum severity is used (3)

So, unless you have set extensions.blocklist.level to a non-standard value, it should only be at "warn" level and you should be able to unblock it.

If you continue having issues, follow Cymroly's workaround deleting the downloaded blocklist.xml and pluginreg.dat as outlined.

If somehow you still can't get it to work, there is a second workaround: find the blocklist.xml file in your Pale Moon profile folder, and remove the <pluginitem> entry indicated above.
ALSO, to prevent it from being updated after that, undoing your edit, you have to set extensions.blocklist.url to an empty string in about:config
Note that not updating the blocklist may cause security issues of its own down the road, so this is all at your own risk.
Please do not send me private messages for anything that could also be posted in the public boards.
User avatar
Moonchild
Pale Moon guru
Pale Moon guru
 
Posts: 8421
Joined: Sun Aug 28, 2011 5:27 pm
Location: Sweden

Re: Java Help Please!

Postby Moonchild » Fri Apr 06, 2012 8:34 pm

OK, to be sure I verified this with JRE 6 U 30 (a vulnerable version) in a sandbox VM running XP and Pale Moon 11.0.1.

It detected the plugin being blocked, presenting the following screen:
javablock1.png
Blocking popup when the blocklist is refreshed and read.

Unchecking the "disable" checkbox leaves the plugin enabled, and you can continue using it.

For the sake of testing, I let it restart and disable the plugin.

After disabling as suggested and restarting Pale Moon, the Add-on manager shows the entry in YELLOW, and allows enabling of the plugin:
javablock2.png
Add-on manager with Java (soft!-) blocked.


The functionality in Pale Moon works as expected (on a new profile), so Cymroly's workaround, in effect resetting the recorded entries in the blocklist for Pale Moon, should certainly work. I gather this may pop up if you use a particularly old, and possibly Firefox-migrated, profile.
Please do not send me private messages for anything that could also be posted in the public boards.
User avatar
Moonchild
Pale Moon guru
Pale Moon guru
 
Posts: 8421
Joined: Sun Aug 28, 2011 5:27 pm
Location: Sweden

Re: Java Help Please!

Postby Greenboyb1 » Fri Apr 06, 2012 11:13 pm

Ok Thank You everybody. First when Cym said
cymroly wrote:Have you tried updating your Java to the latest version and tested it on the site(s) you need Java for? ... If you really need to leave your computer open to attack, here's the details from Mozilla (easy to find from my earlier links) to work around the block in Firefox:

I thank you for the links, however I am on a computer where I don't have an admin account (even though it is my PC) so I cannot update Java or access mozilla.com. And when Moonchild said
Moonchild wrote:So, unless you have set extensions.blocklist.level to a non-standard value, it should only be at "warn" level and you should be able to unblock it.
He was kinda right. I have not edited the blocklist however, even though I run 9.0.1 palemoon and v6.0.300.12 of java, the severity level was set to "2". Go figure. So I am back up and running. :D Thanks again for all the time you all spent on me. :clap:
BTW I have enough understanding of code that I could have changed the blocklist level and/or blocklist once I knew where it was.
No offense, just putting here for future reference.

P.S. I would like to see a new tab page made (like opera's), with the option to turn it off.
-Neb
User avatar
Greenboyb1
Moon lover
Moon lover
 
Posts: 52
Joined: Wed Apr 04, 2012 9:47 pm
Location: Maryville, TN U.S.A.

Re: Java Help Please!

Postby lobocursor » Sat Apr 07, 2012 2:58 am

I'm sorry for bother you guys. Well, Pale Moon don't see java. Firefox says it see JAVA Deployment Toolkit versions 6.0.150.3 (??). Windows have Java 1.4.2_19. Really is a mess in my windows somewhere nothing bad with Pale Moon.
I don't bite... hard - Psalm 51 ■ Salmos 51
User avatar
lobocursor
Lunar Warrior
Lunar Warrior
 
Posts: 1072
Joined: Tue Sep 13, 2011 11:08 pm
Location: Mexico

Next

Return to Community support

Who is online

Users browsing this forum: No registered users and 6 guests