---
title: "IM gateway plugin Kraken build with openfire（转）"
author: "beautyOfProgram"
date: "2010-11-17T17:24:25Z"
tags: []
categories: ["编程语言"]
slug: "im-gateway-plugin-kraken-build-with-openfire"
draft: false
lastmod: "2010-11-17T17:24:25Z"
id: 814212
url: "https://beautyofprogram.iteye.com/blog/814212"
---

IM gateway plugin Kraken build with openfire

http://www.blogjava.net/fingki/archive/2009/03/05/258043.html

 

Kraken plugin as IM gateway is developed separately from openfire.  
It is built alongside openfire.  
Kraken build Detail:http://kraken.blathersource.org/node/9  
But I still encountered this problem when I did that.  
When I run the step:ant release,I found the following error,although BUILD SUCCESS,  
Error:  
  \[jasper2] 409  DEBUG No Java compiler available  
  \[jasper2] java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/env/INameEnvironment

NoClassDefFound,obviously,there is no class named 'INameEnvironment',  
I run 'find ./ -name jdt\*' ,there is nothing really.  
I know that it need a jar named 'jdt-compiler' via google,so I download it.  
If you can find it to download you can come the following site:  
http://fisheye1.atlassian.com/viewrep/springframework/spring/lib/jdt     or  
http://softwarelivre.sapo.pt/projects/ptpos/browser/openbravopos/trunk/build/zip/lib/jdt-compiler-3.1.1.jar?rev=35  
I get jdt-compiler-3.1.1.jar from the site mentioned above,and put it into the java lib directory;  
then,add a line :&lt;pathelement location="${java.home}/../lib/jdt-compiler-3.1.1.jar"/&gt; in classpath of taskdef named 'jasper2' in the build.xml of Openfire  
So far so good ,I have fixed it.

 

 

在编译of插件时候，突然也遇到了这个问题，具体原因不知道，用上面这么方法可以解决该问题。