title: jython LookupError or ImportError
body: <p>Installed Jython 2.7.1, but looks like I cannot import some modules. I got following errors:</p>
  
  <pre><code>import json
  File "json/__init__.py", line 108, in &lt;module&gt;
  File "/home/ec2-user/temp/jython271/Lib/json/decoder.py", line 24, in &lt;module&gt;
  File "/home/ec2-user/temp/jython271/Lib/json/decoder.py", line 18, in _floatconstants
  LookupError: no codec search functions registered: can't find encoding 'hex'
  
  import urllib2
  Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "urllib2.py", line 94, in &lt;module&gt;
  File "httplib.py", line 72, in &lt;module&gt;
  File "/home/ec2-user/temp/jython271/Lib/socket.py", line 3, in &lt;module&gt;
  from _socket import (
  File "_socket.py", line 2, in &lt;module&gt;
  ImportError: No module named encodings
  </code></pre>
  
  <p>Any ideas? I have python2.7 on linux, if I include python2.7 lib in the CLASSPATH, it seems can resolve first error, and can not get away from the second.</p>