LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Enable Java in Tor Browser (https://www.linuxquestions.org/questions/linux-newbie-8/enable-java-in-tor-browser-4175516431/)

zetrotrack000 08-26-2014 10:33 AM

Enable Java in Tor Browser
 
Hi
There are certain websites blocked in my area and I use Tor to access them. Some of these websites require Java and these websites give error that either java is not installed or disabled. How can I enable Java for Tor Browser?
Regards

TB0ne 08-26-2014 12:48 PM

Quote:

Originally Posted by zetrotrack000 (Post 5227585)
Hi
There are certain websites blocked in my area and I use Tor to access them. Some of these websites require Java and these websites give error that either java is not installed or disabled. How can I enable Java for Tor Browser?
Regards

You can type in "about:config" in Tor browser, then search for Java, and double-click it to enable it. This is fairly well documented.

That said, if you're going to enable Java, then why bother using Tor at all??? Java is one of the PRIME causes of security problems, and SHOULD be disabled...if you enable it, you may as well not use Tor at all.

John VV 08-26-2014 01:42 PM

DO NOT !!! enable java and java-script in the tor-bundle

if you must
then install tor and manually run torify on the normal firefox

but java will GIVE YOU AWAY!!!!

szboardstretcher 08-26-2014 01:45 PM

Looks like he is using TOR to access legal sites,.. using TOR as a proxy. No harm in allowing JAVA since he would have otherwise allowed it if he were able to get to the sites normally.

zetrotrack000 08-26-2014 04:16 PM

For instance, YouTube is banned here and sometimes I use keepvid to download Youtube videos. in tor keepvid gives java error.

zetrotrack000 08-26-2014 04:30 PM

Quote:

Originally Posted by TB0ne (Post 5227649)
You can type in "about:config" in Tor browser, then search for Java, and double-click it to enable it. This is fairly well documented.

That said, if you're going to enable Java, then why bother using Tor at all??? Java is one of the PRIME causes of security problems, and SHOULD be disabled...if you enable it, you may as well not use Tor at all.

All I can find in about:config is javascript which is already enabled.

TB0ne 08-26-2014 04:33 PM

Quote:

Originally Posted by zetrotrack000 (Post 5227742)
All I can find in about:config is javascript which is already enabled.

Given this:
Quote:

Originally Posted by zerotrack000
For instance, YouTube is banned here and sometimes I use keepvid to download Youtube videos. in tor keepvid gives java error.

...we can't help you. The LQ Rules are VERY clear about circumventing access restrictions, whether on a company or state-run network. There's nothing we can help you with, regardless of our feelings on censorship.

astrogeek 08-26-2014 05:39 PM

Quote:

Originally Posted by TB0ne (Post 5227744)
Given this:

...we can't help you. The LQ Rules are VERY clear about circumventing access restrictions, whether on a company or state-run network. There's nothing we can help you with, regardless of our feelings on censorship.

While I am conscious of LQ's rules and need to steer clear of genuinely dangerous and illegal activities, I also think that a kind of knee-jerk reaction to self-censor almost any and all perceived "might maybe possibly breaks someone's rule" questions is developing - and is far more dangerous than all combined state censorships!

In this case TBOne's response presumes the OP's "restriction" is some how a "legal" one, either a corporate or state-run network restirction, which is not known or really even implied. For all we know it might be a boarding house rule, or his uncle Fred's rules at his vacation home on the lake.

If we cannot tell someone how to enable java in a browser without the automatic presumption that it breaks someone's law, and taking on ourselves the responsibility for enforcing that presumed rule just in case... all is truly lost. I despair...

This is not intended to criticize TBOne's response in particular, it is just a trend I see here and in modern society in general. It is alarming. We should reconsider this one...

John VV 08-26-2014 05:59 PM

there can be a fine line between normal everyday "hacking" and "cracking"
one is fine but can be "gray" the other is not allowed here

as to getting java to work
what version ?
1.6 ?
or the newer 1.7 and 1.8

1.7 and newer is a VERY different java than 1.6 is
also is it Oracle java or OpenJDK
and what is the operating system and is openjdk the default ?

and none of the above deal with tor-bundle
( do not enable java in the bundle !!!)

use torify for that and the normal firefox ( with all the plugins )

the "bundle" has all the plugins DISABLED
No java
no flash
no video player

keep HTTPS everywhere enabled
keep No-script enabled
and flush the cache and all cookies on close

zetrotrack000 08-27-2014 03:30 AM

Code:

java version "1.7.0_65"
OpenJDK Runtime Environment (IcedTea 2.5.1)

torify is working well with firefox and I can visit all blocked webiste but still here java is not working, for checking I visit keepvid.com and give address of a youtube video, it gave me following error:
Code:

Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory
Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory
java version "1.7.0_65"
OpenJDK Runtime Environment (IcedTea 2.5.1) (Arch Linux build 7.u65_2.5.1-8-x86_64)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
java.net.MalformedURLException: unknown protocol: data
        at java.net.URL.<init>(URL.java:592)
        at java.net.URL.<init>(URL.java:482)
        at java.net.URL.<init>(URL.java:431)
        at net.sourceforge.jnlp.browser.BrowserAwareProxySelector.initFromBrowserConfig(BrowserAwareProxySelector.java:126)
        at net.sourceforge.jnlp.browser.BrowserAwareProxySelector.initialize(BrowserAwareProxySelector.java:101)
        at net.sourceforge.jnlp.runtime.JNLPRuntime.initialize(JNLPRuntime.java:291)
        at sun.applet.PluginAppletSecurityContext.<init>(PluginAppletSecurityContext.java:266)
        at sun.applet.PluginAppletSecurityContext.<init>(PluginAppletSecurityContext.java:284)
        at sun.applet.PluginMain.main(PluginMain.java:150)

13:25:01 libtorsocks(2169): connect: Connection is IPv6: rejecting.
13:25:01 libtorsocks(2169): connect: Connection is IPv6: rejecting.
13:25:01 libtorsocks(2169): connect: Connection is IPv6: rejecting.
13:25:01 libtorsocks(2169): connect: Connection is IPv6: rejecting.
Attempted to download http://keepvid.com/kv.76.jar, but failed to connect!
JAR http://keepvid.com/kv.76.jar not found. Continuing.
JAR http://keepvid.com/kv.76.jar not found. Continuing.
JAR http://keepvid.com/kv.76.jar not found. Continuing.
JAR http://keepvid.com/kv.76.jar not found. Continuing.
13:25:01 libtorsocks(2169): connect: Connection is IPv6: rejecting.
java.lang.ClassNotFoundException: Could not find class KeepVidDownloader
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2483)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.findClass(JNLPClassLoader.java:1653)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClass(JNLPClassLoader.java:2496)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:678)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:277)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:351)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:418)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:394)
        at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:705)
        at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:669)
        at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:902)
Caused by: java.security.PrivilegedActionException: java.lang.ClassNotFoundException: KeepVidDownloader
        at java.security.AccessController.doPrivileged(Native Method)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2473)
        ... 10 more
Caused by: java.lang.ClassNotFoundException: KeepVidDownloader
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.access$2001(JNLPClassLoader.java:2445)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2476)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2474)
        ... 12 more

netx: Initialization Error: Could not initialize applet. (Fatal: Initialization Error: Unknown Main-Class. Could not determine the main class for this application. (Could not find class KeepVidDownloader ( (KeepVidDownloader))))
netx: Initialization Error: Could not initialize applet. (Fatal: Initialization Error: Unknown Main-Class. Could not determine the main class for this application. (Could not find class KeepVidDownloader ( (KeepVidDownloader))))
net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize applet. For more information click "more information button".
        at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:740)
        at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:669)
        at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:902)
Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Unknown Main-Class. Could not determine the main class for this application.
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:681)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:277)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:351)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:418)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:394)
        at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:705)
        ... 2 more
Caused by: java.lang.ClassNotFoundException: Could not find class KeepVidDownloader
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2483)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.findClass(JNLPClassLoader.java:1653)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClass(JNLPClassLoader.java:2496)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:678)
        ... 7 more
Caused by: java.security.PrivilegedActionException: java.lang.ClassNotFoundException: KeepVidDownloader
        at java.security.AccessController.doPrivileged(Native Method)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2473)
        ... 10 more
Caused by: java.lang.ClassNotFoundException: KeepVidDownloader
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.access$2001(JNLPClassLoader.java:2445)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2476)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2474)
        ... 12 more

net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize applet. For more information click "more information button".
        at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:740)
        at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:669)
        at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:902)
Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Unknown Main-Class. Could not determine the main class for this application.
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:681)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:277)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.java:351)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:418)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.java:394)
        at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:705)
        ... 2 more
Caused by: java.lang.ClassNotFoundException: Could not find class KeepVidDownloader
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2483)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.findClass(JNLPClassLoader.java:1653)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClass(JNLPClassLoader.java:2496)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader.initializeResources(JNLPClassLoader.java:678)
        ... 7 more
Caused by: java.security.PrivilegedActionException: java.lang.ClassNotFoundException: KeepVidDownloader
        at java.security.AccessController.doPrivileged(Native Method)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.findClassNonRecursive(JNLPClassLoader.java:2473)
        ... 10 more
Caused by: java.lang.ClassNotFoundException: KeepVidDownloader
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader.access$2001(JNLPClassLoader.java:2445)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2476)
        at net.sourceforge.jnlp.runtime.JNLPClassLoader$CodeBaseClassLoader$1.run(JNLPClassLoader.java:2474)
        ... 12 more

Error on Java side:
Error: Unable to fetch applet instance id from Java side.
Error on Java side:
Error: Unable to fetch applet instance id from Java side.


TB0ne 08-27-2014 09:27 AM

Quote:

Originally Posted by astrogeek (Post 5227773)
While I am conscious of LQ's rules and need to steer clear of genuinely dangerous and illegal activities, I also think that a kind of knee-jerk reaction to self-censor almost any and all perceived "might maybe possibly breaks someone's rule" questions is developing - and is far more dangerous than all combined state censorships!

In this case TBOne's response presumes the OP's "restriction" is some how a "legal" one, either a corporate or state-run network restirction, which is not known or really even implied. For all we know it might be a boarding house rule, or his uncle Fred's rules at his vacation home on the lake.

First, I agree with your sentiment; censorship in ANY form makes me sick, period. There's no gray area...it's wrong.

HOWEVER, what you posted here makes the point for me. Whether or not someone LIKES the rules is immaterial...if they're using someone elses network (Uncle Fred's, a boarding house, hotel, corporation, or a state-run one), they agree to those rules...right, wrong, or indifferent. By assisting someone in breaking/circumventing those rules, LQ then becomes liable. The OP has one solution; use a different network without those rules. There is PLENTY of information elsewhere to assist in doing such things. Again, I do NOT condone such restrictions, but those are the conditions the OP is under.

Do you honestly think that you can do whatever you'd like on a machine in a corporate environment WITHOUT any sort of repercussions? You don't own that machine, the network, pay for the electricity that it uses, etc. They let you use their hardware for one purpose..to do your JOB. By extension, you're saying that the guys down at your local auto-mechanic can decide to paint your car, take out your radio, and put on different wheels, right? After all..you're letting them use YOUR hardware to do THEIR jobs...so they should be allowed to do whatever they want with it, right???
Quote:

If we cannot tell someone how to enable java in a browser without the automatic presumption that it breaks someone's law, and taking on ourselves the responsibility for enforcing that presumed rule just in case... all is truly lost. I despair...

This is not intended to criticize TBOne's response in particular, it is just a trend I see here and in modern society in general. It is alarming. We should reconsider this one...
(bold emphasis added by me for above). The OP clearly said..."There are certain websites blocked in my area", and "YouTube is banned here"...there is nothing to presume. The OP has clearly stated they are NOT ALLOWED to view such sites, whether by their Uncle Fred or their government. That takes it from a technical issue to a breaking-the-law issue.

If you want to 'despair', that's fine...personally, I'd join the EFF, and pester lawmakers to change things, and take it upon MYSELF to either CHANGE the rules, or figure out how to break them. No one is stopping you from sending the OP a private message, and helping them. No one is stopping the OP from looking up PLENTY of information on how to get around such restrictions.

szboardstretcher 08-27-2014 09:42 AM

Best bet is to go to StackExchange and ask this question. Or hit up the TOR forums. Or hit up TOR on IRC. Read the rules at the forum(channel) first. Some forums censor questions to protect themselves from lawyers and the American government, so make sure you aren't on one of those boards BEFORE you ask.

"Inhale Freedom, Exhale Patriotism." - 'Murica.

TB0ne 08-27-2014 09:58 AM

Quote:

Originally Posted by szboardstretcher (Post 5228109)
Best bet is to go to StackExchange and ask this question. Or hit up the TOR forums. Or hit up TOR on IRC. Read the rules at the forum(channel) first. Some forums censor questions to protect themselves from lawyers and the American government, so make sure you aren't on one of those boards BEFORE you ask.

Not JUST the American government, either. From what I've seen/heard, Australia and Canada aren't too far behind in some respects, and lead in others. I pretty much use TOR exclusively, for just such reasons. And as much as I don't LIKE it, or what the OP may be having to do, the fact is that others can be held liable. We can't change the laws wherever the OP lives...that's up the OP and his countrymen. Would I help? Of course...but not on LQ, because I don't want to have ANYONE liable for my actions but MYSELF.

szboardstretcher 08-27-2014 10:06 AM

I agree.

Quote:

the fact is that others can be held liable
That's what I explained. LQ is liable to America, and censors itself to protect itself against lawyers and the American government,.. so please go somewhere else to ask about it. etc. etc.

Of course, the satirical remark about 'freedom' was ALL me, to underline the hypocrisy of calling us the 'land of the free' when we are, in fact, currently rated #43 in the world (http://www.nydailynews.com/news/poli...icle-1.1611299).

So this thread is pretty much over, unless someone wants to break the LQ rules and explain how to circumvent the rules blocking him.

Edit: I've heard Australia is going flat out insane with the censorship..

TB0ne 08-27-2014 10:35 AM

Quote:

Originally Posted by szboardstretcher (Post 5228123)
I agree.

That's what I explained. LQ is liable to America, and censors itself to protect itself against lawyers and the American government,.. so please go somewhere else to ask about it. etc. etc.

Of course, the satirical remark about 'freedom' was ALL me, to underline the hypocrisy of calling us the 'land of the free' when we are, in fact, currently rated #43 in the world (http://www.nydailynews.com/news/poli...icle-1.1611299).

So this thread is pretty much over, unless someone wants to break the LQ rules and explain how to circumvent the rules blocking him.
Edit: I've heard Australia is going flat out insane with the censorship..

You've heard correctly. I have a cousin who moved there recently, and she's AMAZED at things.


All times are GMT -5. The time now is 11:15 PM.