Home » Newcomers » Newcomers » Error, Need Help
|
Re: Error, Need Help [message #1044166 is a reply to message #1044061] |
Thu, 18 April 2013 15:06 |
|
On 4/18/2013 8:47 AM, Morabit Souleyman wrote:
> Hi guys, i'm currently working on Eclipse and i'm facing many errores
> like this one
>
>
> [snip]
> Caused by: java.lang.ClassNotFoundException: gnu.io.SerialPortEventListener
> [snip]
(You're using Eclipse, right?)
This only means that you've not added the JAR that furnishes Java class
gnu.io.SerialPortEventListener to your project via Java Build Path.
You must find this JAR, copy it into your project (many ways to do
this), right-click your project root in the Package or Project Explorer
view, choose Build Path and then click on Add JARs... in the dialog, etc.
Come back here and ask a more specific question if you get stuck.
Hope this helps.
|
|
|
Re: Error, Need Help [message #1044167 is a reply to message #1044166] |
Thu, 18 April 2013 15:09 |
|
On 4/18/2013 9:06 AM, Russell Bateman wrote:
> On 4/18/2013 8:47 AM, Morabit Souleyman wrote:
>> Hi guys, i'm currently working on Eclipse and i'm facing many errores
>> like this one
>>
>>
>> [snip]
>> Caused by: java.lang.ClassNotFoundException:
>> gnu.io.SerialPortEventListener
>> [snip]
>
> (You're using Eclipse, right?)
>
> This only means that you've not added the JAR that furnishes Java class
> gnu.io.SerialPortEventListener to your project via Java Build Path.
>
> You must find this JAR, copy it into your project (many ways to do
> this), right-click your project root in the Package or Project Explorer
> view, choose Build Path and then click on Add JARs... in the dialog, etc.
>
> Come back here and ask a more specific question if you get stuck.
>
> Hope this helps.
>
By the way, I typed "gnu.io.SerialPortEventListener" into Google and
found this link:
http://forum.processing.org/topic/classnotfoundexception-gnu-io-serialporteventlistener
|
|
| |
Re: Error, Need Help [message #1044749 is a reply to message #1044167] |
Fri, 19 April 2013 09:35 |
Rawz . Messages: 3 Registered: April 2013 |
Junior Member |
|
|
Russell Bateman wrote on Thu, 18 April 2013 11:09On 4/18/2013 9:06 AM, Russell Bateman wrote:
By the way, I typed "gnu.io.SerialPortEventListener" into Google and
found this link
Yeah I found it too, but it didn't work so i thought i would come here
Russell Bateman wrote on Thu, 18 April 2013 11:06
(You're using Eclipse, right?)
You must find this JAR, copy it into your project (many ways to do
this), right-click your project root in the Package or Project Explorer
view, choose Build Path and then click on Add JARs... in the dialog, etc.
Hope this helps.
It helped a lot indeed, thanks to you guys, it did solve this problem but now i have a new one, and yeah i'm using Eclipse
java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Java\jre6\bin\rxtxSerial.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform thrown while loading gnu.io.RXTXCommDriver
java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Java\jre6\bin\rxtxSerial.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
at processing.serial.Serial.list(Serial.java:632)
at Chauffe.setup(Chauffe.java:44)
at processing.core.PApplet.handleDraw(PApplet.java:2241)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
at processing.core.PApplet.run(PApplet.java:2140)
at java.lang.Thread.run(Unknown Source)
Exception in thread "Animation Thread" java.lang.RuntimeException: Error inside Serial.ports()
at processing.serial.Serial.errorMessage(Serial.java:666)
at processing.serial.Serial.list(Serial.java:647)
at Chauffe.setup(Chauffe.java:44)
at processing.core.PApplet.handleDraw(PApplet.java:2241)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
at processing.core.PApplet.run(PApplet.java:2140)
at java.lang.Thread.run(Unknown Source)
I really think that it's a bout the version of Eclipse and my windows but the eclipse 64 bit doesn't works so i'm kind of stuck.
David Wegener wrote on Thu, 18 April 2013 11:10
Your question really belongs in a general Java programming forum and not in the Eclipse forums.
I'm not familiar with the gni.io package, so can't provide much more information other then to suggest you study about how the Java classpath works and how to specify the classpath.
Anyway thanks for replying, and i've studied thos yesterday during 4 hours nothing really helped
|
|
|
Re: Error, Need Help [message #1044889 is a reply to message #1044749] |
Fri, 19 April 2013 13:12 |
|
On 4/19/2013 3:35 AM, Rawz . wrote:
> [snip]
> It helped a lot indeed, thanks to you guys, it did solve this problem
> but now i have a new one, and yeah i'm using Eclipse :)
>
>
> java.lang.UnsatisfiedLinkError: C:\Program Files
> (x86)\Java\jre6\bin\rxtxSerial.dll: Can't load IA 32-bit .dll on a AMD
> 64-bit platform thrown while loading gnu.io.RXTXCommDriver
> java.lang.UnsatisfiedLinkError: C:\Program Files
> (x86)\Java\jre6\bin\rxtxSerial.dll: Can't load IA 32-bit .dll on a AMD
> 64-bit platform
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> [snip]
You're mixing 32-bit and 64-bit, aren't you? This is a no-no. All one or
all the other, but no mixing.
|
|
| |
Goto Forum:
Current Time: Sat Sep 21 03:27:46 GMT 2024
Powered by FUDForum. Page generated in 0.08923 seconds
|