Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help executing a .jar file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
MeatHead
n00b
n00b


Joined: 07 Mar 2003
Posts: 31

PostPosted: Fri Mar 07, 2003 4:16 am    Post subject: Help executing a .jar file Reply with quote

I have a .jar file that I can execute as root but when I'm logged into my normal user account I get this;

~# java -jar my.jar
~# java.net.BindException: Permission denied


Evidently I need to set permissions somewhere, but where and how?
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Fri Mar 07, 2003 4:29 am    Post subject: Reply with quote

What is the jar file? My guess is that it is a server trying to bind to a port <1024. You have to be root to do that. AFIK that is normal unix security and shouldn't be bypassed. I don't even know if you can bypass that.
Back to top
View user's profile Send private message
MeatHead
n00b
n00b


Joined: 07 Mar 2003
Posts: 31

PostPosted: Fri Mar 07, 2003 4:55 am    Post subject: Reply with quote

You're right. Its a server that listens on port 80. It will only accept connections from localhost though. 127.0.0.1
I'm using it in conjunction with /etc/hosts. The sole purpose of the server is to accept the connection from my browser whenever /etc/hosts tells it to and serve a small .gif image to the browser. This keeps the browser from hanging until it times out waiting on a connection that doesn't exist. The purpose then is to speed up web browsing.
I'm using the hosts file to block advertising servers and such while web browsing.
The .jar is a program called eDexter that you can check out here;
http://www.accs-net.com/hosts/eDexter.html
If you're interested in using hosts to block ad servers you can check out;
http://www.smartin-designs.com/

Anyway... looks like I'll have to run this as root then if I'm going to use it huh?
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Fri Mar 07, 2003 5:22 am    Post subject: Reply with quote

That's interesting, I have not seen that approach before. I guess you're probably familliar with the proxy server approach to ad blocking but if not might want to check out privoxy. It can do a lot more than just block images based on the server. I tried it out for a little while and it works pretty well. But I'm satisfied with blocking pop-ups for now, and mozilla does that on its own.
Back to top
View user's profile Send private message
MeatHead
n00b
n00b


Joined: 07 Mar 2003
Posts: 31

PostPosted: Fri Mar 07, 2003 5:58 am    Post subject: Reply with quote

Yep.
I'm using privoxy right now. :D
I haven't really taken the time to dig into learning all the configuration stuff just yet though. I'm new to linux and there is so much to learn...
Do you know of any web sites where people share their privoxy configs, tips, tricks, etc.? There was plenty of that sort of thing for my old favorite windows proxy, proxomitron.
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Fri Mar 07, 2003 6:13 am    Post subject: Reply with quote

Sorry, I only used it breifly. I havent found many user tips but, I found the documentetion pretty helpfull. Probably could get some help from others in these forums.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum