Java RXTX und Eclipse

OP #1467838
Lesenswert?

Hi,

ich versuche verzeiweifelt RXTX für Java zu installieren. Ich benutzte 
Eclipse unter Windows.
Leider habe ich bei euch nur ein Beispielscript gefunden. 
http://www.mikrocontroller.net/articles/Serielle_Schnittstelle_unter_Java

Aber nicht wirklich wie man das insterlliert. Kann mir jemand sagen wie 
ich das richtig installieren.

Bisher habe ich immer alles in den JRE und JDK Ordner wie gewünschet, 
also die dll und jar Datein in die gewünschen Unterordner gepackt.

Aber ich bekomme immer diese Fehlermeldung:
1
Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
2
  Access restriction: The type CommPortIdentifier is not accessible due to restriction on required library C:\Java\jre6\lib\ext\RXTXcomm.jar
3
  Access restriction: The type CommPortIdentifier is not accessible due to restriction on required library C:\Java\jre6\lib\ext\RXTXcomm.jar
4
  Access restriction: The method getPortIdentifiers() from the type CommPortIdentifier is not accessible due to restriction on required library C:\Java\jre6\lib\ext\RXTXcomm.jar
5
  Access restriction: The type CommPortIdentifier is not accessible due to restriction on required library C:\Java\jre6\lib\ext\RXTXcomm.jar
6
  Access restriction: The method getPortType() from the type CommPortIdentifier is not accessible due to restriction on required library C:\Java\jre6\lib\ext\RXTXcomm.jar
7
  Access restriction: The type CommPortIdentifier is not accessible due to restriction on required library C:\Java\jre6\lib\ext\RXTXcomm.jar
8
  Access restriction: The field PORT_SERIAL from the type CommPortIdentifier is not accessible due to restriction on required library C:\Java\jre6\lib\ext\RXTXcomm.jar
9
  Access restriction: The method getName() from the type CommPortIdentifier is not accessible due to restriction on required library C:\Java\jre6\lib\ext\RXTXcomm.jar
10

11
  at org.TaiSoft.RS232test.ErsteSchritte.main(ErsteSchritte.java:19)


bitte hilft mir! Ich bin schon seit gestern morgen dabei das 
hinzubekommen!

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren