open socket failed: Permission denied when application to run a native C function.

by Terence » Thu, 14 May 2009 01:25:03 GMT

Sponsored Links

I port a tool in native C and builed a executable file or a library,
and the executable can work successfully in console (Alt + F1).

Then I creat a SimpleJNI to run the executable or library,
when I click the SimpleJNI icon, it will occure a error message:
:socket err=Permission denied

Is the user not a root such that can not open socket in native C
(Permission denied),
Is there any way to solve this problem ?



Other Threads

1. New guy with a question

So I have developed a couple apps so far (nothing of significance,
just getting the hang of it) and I bought a used G1 that's already
been RC30'd. I have searched and from what I understand I cannot turn
on the wifi and register my google account that way correct? I need a
data plan? I am very eager to test my apps on my device but my data
plan doesn't start until the 8th. Someone please tell me you found a
way to turn on wifi with RC30.

2. Tutorial on searching in MapView

Hey Guys,

Does anyone know of a tutorial or code example that shows how to use
the search functionality that works so well on the google maps but I
want to do something similar in my android app.  I saw a new cool app
called dinefinder where the app launches with a mapview that has the
pins laid out pointing to different restaurants that the user can
click and get additional information.  I wonder if anyone has code
samples on how to get the restaurant data from the map search?? Also,
I see that the Maps on the G1 has a Search and Directions menu options
and I wanted to see how to add something like that in my google app.
Does anyone know or any code samples for this??


3. About files

4. How to initial SharedPreferences from an XML file in SD card

5. suggestion. replace onActivityResult(), Request Code and Result Codes with flexible callbacks

6. Mobile Developers Research Project asking for Android's opinion, by Carnegie mellon University

7. layout directories