I have a executable .jar file which I want to execute. It needs internet access, but it seems like it is the only program wich is not able to access the internet. I use the standard configuration for the JRE which comes preinstalled on tails (openjdk-7-jre). I suppose this is a problem with the JRE configuration but I was not able to find a way to change it in a way that would make it work. Do you have any idea what I can do?
1 Answer
First of all, try Oracle JDK/JRE - OpenJDK causes such a weird problems sometimes even nowdays. Second - try to use Tor as a proxy, set these properties:
- java.net.useSystemProxies=true
- http.proxyHost=proxy-ip
- http.proxyPort=proxy-port
-
-
-
it says "unrecognised option: java.net.useSystemProxies=true". Same with the other 2 properties Commented Jan 12, 2017 at 21:42
-
you have to use -Dproperty=value , see the official docs for details, it's here– Alexey Vesnin ♦Commented Jan 12, 2017 at 21:43
-
ok the properties are set now, thanks. Still it doesnt work. I am probably using the wrong ip and port. I'll try it again tomorrow Commented Jan 12, 2017 at 22:04
torsocks
? It can cause problems with some applications but it may serve your purposes.