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
 Hi

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 ?

Thanks

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. possible to track movement without GPS

Hi

Is it possible to track movement without GPS?  The GPS signal is too
weak on my phone to work indoors.  I want to be able to track where
I've been within a building.  Possible?

Tks

-- 

2. Handler still runs after thread it's attached to is destroyed

I'm trying to understand a curiosity that I've recently come across.

I have an IntentService which handles a message.  Occasionally, as
part of that processing, I created a Handler to have some code run in
the future.  Of course, the onHandleIntent() returns and I then see
onDestroy() called.  However, at the proper time, I still see the
Handler run.  This is what I originally wanted, but I'm wondering how
it's still running, since the handler is tied to its originating
thread, which is supposed to have already died.

Another thing I noticed in the de{*filter*} is that these IntentService
threads never go away even though onDestroy() was called.  e.g. if I
fire 10 messages for the service to handle at various times, I see 10
service threads in the de{*filter*}.  I'm not sure if they just haven't
been GC'd or if I'm doing something wrong and they're{*filter*} around.

Can anyone shed some light on these questions?

Thanks,
- Rick

-- 

3. ListView of CheckedTextView + SQLite, display checked rows ?

4. Map key: Overlays shown but not Map when using Generated key

5. Careful, Dell Streak 7 ignores manifest setting for Orientation

6. Ask the urgent problem of the project: call number for do not know why not?

7. Facebook events stream