Advertisement
Guest User

Untitled

a guest
Mar 7th, 2011
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. //License
  2. /***
  3. * Java Modbus Library (jamod)
  4. * Copyright (c) 2002-2004, jamod development team
  5. * All rights reserved.
  6. *
  7. * Redistribution and use in source and binary forms, with or without
  8. * modification, are permitted provided that the following conditions are
  9. * met:
  10. *
  11. * Redistributions of source code must retain the above copyright notice,
  12. * this list of conditions and the following disclaimer.
  13. *
  14. * Redistributions in binary form must reproduce the above copyright notice,
  15. * this list of conditions and the following disclaimer in the documentation
  16. * and/or other materials provided with the distribution.
  17. *
  18. * Neither the name of the author nor the names of its contributors
  19. * may be used to endorse or promote products derived from this software
  20. * without specific prior written permission.
  21. *
  22. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS
  23. * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  24. * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  25. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
  26. * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  27. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  28. * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  29. * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  30. * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  31. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  32. * POSSIBILITY OF SUCH DAMAGE.
  33. ***/
  34. package net.wimpi.modbus.net;
  35.  
  36. import net.wimpi.modbus.Modbus;
  37. import net.wimpi.modbus.io.*;
  38. import net.wimpi.modbus.util.SerialParameters;
  39.  
  40. import javax.comm.*;
  41.  
  42. import java.io.IOException;
  43. import java.io.InputStream;
  44. import java.util.TooManyListenersException;
  45.  
  46. /**
  47. * Class that implements a serial connection which
  48. * can be used for master and slave implementations.
  49. *
  50. * @author Dieter Wimberger
  51. * @author John Charlton
  52. * @version 1.2rc1 (09/11/2004)
  53. */
  54. public class SerialConnection
  55. implements SerialPortEventListener {
  56.  
  57.  
  58.  
  59. //ERROR:
  60.  
  61. Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener
  62. at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
  63. at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
  64. at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
  65. ....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement