title: Javassist hot swapper not finding class
body: <p>I am trying to use Javassist for the first time, and I am stuck.  I have a class called standard in the default package.  I am trying to reload it using HotSwapper.  I have tried this but it doesnt work.</p>
  
  <pre><code>public static void main(String[] args) throws Exception
  {
      ClassPool pool = ClassPool.getDefault();
      CtClass clazz = pool.get("Standard");
      HotSwapper swap = new HotSwapper(8000);
      swap.reload("Standard", clazz.toBytecode());
  }
  </code></pre>
  
  <p>This is the error I get</p>
  
  <pre><code>Exception in thread "main" java.lang.RuntimeException: no such class: Standard
  at javassist.util.HotSwapper.toRefType(HotSwapper.java:189)
  at javassist.util.HotSwapper.reload(HotSwapper.java:157)
  at JavaHacks.main(JavaHacks.java:15)
  </code></pre>
  
  <p>I am launching jvm with these args</p>
  
  <pre><code>agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
  </code></pre>
  
  <p>The weird part is it loads the class just fine.</p>