WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Install javax.comm API  (Read 5218 times)

Offline diegorandal

  • Newbie
  • *
  • Posts: 3
Install javax.comm API
« on: June 15, 2013, 11:17:32 AM »
Need to use the Serial Port from Java. Java works ok.
I have followed all the tutorials but I could not make it work.
If someone has managed to install this Java library for the use, please tell me what steps to take.

I have the files of the api: libLinuxSerialParallel.so; comm.jar and javax.comm.properties
Also I have the RXTX files ... but with them does not work.

Java is installed in: / usr/local/openjdk-7/jre

If I consult the CLASSPATH get: "/apps/xfe/lib::/usr/java/packages/lib/i386:/lib:/usr/lib"

Thank you. Sorry for the English, use a translator.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11576
Re: Install javax.comm API
« Reply #1 on: June 15, 2013, 12:12:22 PM »
Hi diegorandal
Besides it not working, do you receive any error messages?

Offline diegorandal

  • Newbie
  • *
  • Posts: 3
Re: Install javax.comm API
« Reply #2 on: June 15, 2013, 12:47:57 PM »
2013-06-15 13:40:57 [SEVERE] Could not load 'plugins/mchelloplugin.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: javax/comm/PortInUseException
   at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184)
   at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
   at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
   at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugins(CraftServer.java:239)
   at org.bukkit.craftbukkit.v1_5_R3.CraftServer.reload(CraftServer.java:603)
   at org.bukkit.Bukkit.reload(Bukkit.java:185)
   at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23)
   at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189)
   at org.bukkit.craftbukkit.v1_5_R3.CraftServer.dispatchCommand(CraftServer.java:523)
   at org.bukkit.craftbukkit.v1_5_R3.CraftServer.dispatchServerCommand(CraftServer.java:512)
   at net.minecraft.server.v1_5_R3.DedicatedServer.an(DedicatedServer.java:262)
   at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:227)
   at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477)
   at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410)
   at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
Caused by: java.lang.NoClassDefFoundError: javax/comm/PortInUseException
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:264)
   at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
   ... 14 more
Caused by: java.lang.ClassNotFoundException: javax.comm.PortInUseException
   at java.net.URLClassLoader$1.run(URLClassLoader.java:299)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:288)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:287)
   at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80)
   at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:422)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:355)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Install javax.comm API
« Reply #3 on: June 15, 2013, 02:36:58 PM »
2013-06-15 13:40:57 [SEVERE] Could not load 'plugins/mchelloplugin.jar' in folder 'plugins'

Well, did you check for above?

Seems to be quite complex...

http://publib.boulder.ibm.com/infocenter/javasdk/v1r4m2/index.jsp?topic=/com.ibm.java.doc.user.lnx64.142/html/javacommguide.lnx64amd.htm
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline diegorandal

  • Newbie
  • *
  • Posts: 3
Re: Install javax.comm API
« Reply #4 on: June 16, 2013, 12:06:00 PM »
If I do not include the library javax.comm the plugin works fine.