摘要: 添加jna.jar包//jna的类import com.sun.jna.Library;import com.sun.jna.Native;import com.sun.jna.Platform;public class testJNA {public interface CLibrary extends Library {//如果需要动态传DLL的名称,可以将下面实例化的语句放到主程序当中 CLibrary INSTANCE = (CLibrary)Native.loadLibrary((Platform.isWindows() ? "msvcrt" : "c& 阅读全文
posted @ 2012-09-17 15:51 旦旦哥 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 添加上面的JAR包//JMSimport org.apache.activemq.ActiveMQConnectionFactory;import javax.jms.Connection;import javax.jms.DeliveryMode;import javax.jms.Destination;import javax.jms.ExceptionListener;import javax.jms.JMSException;import javax.jms.Message;import javax.jms.MessageConsumer;import javax.jms.Messag 阅读全文
posted @ 2012-09-17 14:30 旦旦哥 阅读(348) 评论(0) 推荐(0) 编辑