• Post Reply Bookmark Topic Watch Topic
  • New Topic

I get errors when building my com.embeddedunveiled serial port project  RSS feed

 
Alexandros Stefanidis
Greenhorn
Posts: 24
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! I have this code


apparently it cannot find the scm-1.0.3.jar file
when I copied the project from my external drive to local documents/netbeans projects folder and opened it in netbeans the scm-1.0.3.jar file existed
but when i did a build the jar file was gone.
I have to say that I haven't working on this project for 6 months and now that i want to make a gui i have forgotten how to load the files and run it in netbeans. http://www.embeddedunveiled.com/

here is the list of errors

ant -f C:\\Users\\HP\\Documents\\NetBeansProjects\\SerialPortFTDI -Dnb.internal.action.name=rebuild clean jar
init:
deps-clean:
Updating property file: C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\build\built-clean.properties
Deleting directory C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\build
clean:
init:
deps-jar:
Created dir: C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\build
Updating property file: C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\build\built-jar.properties
Created dir: C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\build\classes
Created dir: C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\build\empty
Created dir: C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\build\generated-sources\ap-source-output
Compiling 1 source file to C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\build\classes
C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\src\serialportftdi\SerialPortFTDI.java:8: error: package com.embeddedunveiled.serial does not exist
import com.embeddedunveiled.serial.SerialComManager;
C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\src\serialportftdi\SerialPortFTDI.java:9: error: package com.embeddedunveiled.serial.SerialComManager does not exist
import com.embeddedunveiled.serial.SerialComManager.BAUDRATE;
C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\src\serialportftdi\SerialPortFTDI.java:10: error: package com.embeddedunveiled.serial.SerialComManager does not exist
import com.embeddedunveiled.serial.SerialComManager.DATABITS;
C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\src\serialportftdi\SerialPortFTDI.java:11: error: package com.embeddedunveiled.serial.SerialComManager does not exist
import com.embeddedunveiled.serial.SerialComManager.FLOWCONTROL;
C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\src\serialportftdi\SerialPortFTDI.java:12: error: package com.embeddedunveiled.serial.SerialComManager does not exist
import com.embeddedunveiled.serial.SerialComManager.PARITY;
C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\src\serialportftdi\SerialPortFTDI.java:13: error: package com.embeddedunveiled.serial.SerialComManager does not exist
import com.embeddedunveiled.serial.SerialComManager.STOPBITS;
C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\src\serialportftdi\SerialPortFTDI.java:27: error: cannot find symbol
SerialComManager scm = new SerialComManager();
^
  symbol:   class SerialComManager
  location: class SerialPortFTDI
C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\src\serialportftdi\SerialPortFTDI.java:27: error: cannot find symbol
SerialComManager scm = new SerialComManager();
                           ^
  symbol:   class SerialComManager
  location: class SerialPortFTDI
C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\src\serialportftdi\SerialPortFTDI.java:29: error: cannot find symbol
scm.configureComPortData(handle, DATABITS.DB_8, STOPBITS.SB_1, PARITY.P_NONE, BAUDRATE.B115200, 0);
                                 ^
  symbol:   variable DATABITS
  location: class SerialPortFTDI
C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\src\serialportftdi\SerialPortFTDI.java:29: error: cannot find symbol
scm.configureComPortData(handle, DATABITS.DB_8, STOPBITS.SB_1, PARITY.P_NONE, BAUDRATE.B115200, 0);
                                                ^
  symbol:   variable STOPBITS
  location: class SerialPortFTDI
C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\src\serialportftdi\SerialPortFTDI.java:29: error: cannot find symbol
scm.configureComPortData(handle, DATABITS.DB_8, STOPBITS.SB_1, PARITY.P_NONE, BAUDRATE.B115200, 0);
                                                               ^
  symbol:   variable PARITY
  location: class SerialPortFTDI
C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\src\serialportftdi\SerialPortFTDI.java:29: error: cannot find symbol
scm.configureComPortData(handle, DATABITS.DB_8, STOPBITS.SB_1, PARITY.P_NONE, BAUDRATE.B115200, 0);
                                                                              ^
  symbol:   variable BAUDRATE
  location: class SerialPortFTDI
C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\src\serialportftdi\SerialPortFTDI.java:30: error: cannot find symbol
scm.configureComPortControl(handle, FLOWCONTROL.NONE, 'x', 'x', false, false);
                                    ^
  symbol:   variable FLOWCONTROL
  location: class SerialPortFTDI
13 errors
C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\nbproject\build-impl.xml:929: The following error occurred while executing this line:
C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI\nbproject\build-impl.xml:269: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 0 seconds)


Here
 
Campbell Ritchie
Marshal
Posts: 56584
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please start by showing us the location of the embeddedunveiled .jar and your CLASSPATH. Are you using the same CLASSPATH in Eclipse as on the command line/terminal?
 
Alexandros Stefanidis
Greenhorn
Posts: 24
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
The location of the .jar files sp-core, sp-tty, sp-usb   is C:\Users\HP\Documents\NetBeansProjects\SerialPortFTDI.  I am using NetBeans.
CLASSPATH where do I find this?


 
Campbell Ritchie
Marshal
Posts: 56584
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You set the CLASSPATH when you compile or run an application. You have to set it as a Project Option in Eclipse. Don't believe the books when they tell you to set a system CLASSPATH; that has not been necessary for over ten years, and causes more harm than good.
If you don't set a CLASSPATH, the javac tool (or another compiler) will be unable to work out where the classes inside that .jar are. Go through the Java™ Tutorials and you shou‍ld find an explanation there.
 
Alexandros Stefanidis
Greenhorn
Posts: 24
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here I have entered the 2 .jar files


Jar-files-entry.jpg
[Thumbnail for Jar-files-entry.jpg]
 
Knute Snortum
Sheriff
Posts: 4287
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know Netbeans well, but it look like there is a broken reference to one of the jar files.  That would mean it's not where Netbeans thinks it should be.  I would either move that jar file or tell Netbeans where it can find the jar file.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!