thaliproject / Tor_Onion_Proxy_Library

Provides a JAR and an AAR for embedding the Tor Onion Proxy into a Java or Android Program
Apache License 2.0
175 stars 98 forks source link

Can we do better than the uname trick? #22

Open yaronyg opened 10 years ago

yaronyg commented 10 years ago

We figure out if we are on Linux 32 or 64 bit by execing a process that runs uname -m and looking at the result. It seems to work but it feels kind of cludgy. There has to be a better way in Java of figuring out the bitness of the host platform (NOT the bitness of the JVM).