Author: nextgens
Date: 2006-08-04 10:09:25 +0000 (Fri, 04 Aug 2006)
New Revision: 9878

Modified:
   trunk/freenet/src/net/i2p/util/NativeBigInteger.java
Log:
NOEXEC is a *nix specific thingy, don't bother windows users with unappropriate 
logging messages and workarounds

Modified: trunk/freenet/src/net/i2p/util/NativeBigInteger.java
===================================================================
--- trunk/freenet/src/net/i2p/util/NativeBigInteger.java        2006-08-04 
06:25:19 UTC (rev 9877)
+++ trunk/freenet/src/net/i2p/util/NativeBigInteger.java        2006-08-04 
10:09:25 UTC (rev 9878)
@@ -517,7 +517,9 @@
             System.load(outFile.getAbsolutePath()); //System.load requires an 
absolute path to the lib
             return true;
         } catch (UnsatisfiedLinkError ule) {
-               try{
+               try{    
+                       if((File.separatorChar == '\\') || 
(System.getProperty("os.name").toLowerCase().startsWith("win")))
+                               throw new Exception("not possible on windows!");
                        System.err.println("We have detected a NOEXEC on your 
temporary directory, trying in current one insteed.");
                        InputStream libStream = resource.openStream();
                        outFile = new File("jbigi-lib.tmp");


Reply via email to