This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sixstringsg@jarvis:~/Raspberry-ROV/Controller_Code$ jar vcf rover_controller.jar Manifest.txt *.class socket/*.class | |
added manifest | |
adding: Manifest.txt(in = 49) (out= 48)(deflated 2%) | |
adding: rover_controller$1.class(in = 430) (out= 302)(deflated 29%) | |
adding: rover_controller$2.class(in = 405) (out= 289)(deflated 28%) | |
adding: rover_controller.class(in = 4883) (out= 2568)(deflated 47%) | |
adding: socket/Client.class(in = 7981) (out= 3721)(deflated 53%) | |
adding: socket/java_client_test.class(in = 1886) (out= 1139)(deflated 39%) | |
adding: socket/java_server_test.class(in = 1678) (out= 1027)(deflated 38%) | |
adding: socket/Server.class(in = 9649) (out= 4433)(deflated 54%) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sixstringsg@jarvis:~/Raspberry-ROV/Controller_Code$ jar cf rover_controller.jar Manifest.txt *.class socket/*.class | |
sixstringsg@jarvis:~/Raspberry-ROV/Controller_Code$ java -jar rover_controller.jar | |
no main manifest attribute, in rover_controller.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sixstringsg@jarvis:~/Raspberry-ROV/Controller_Code$ java -classpath .;../Libraries/socket/ rover_controller | |
Usage: java [-options] class [args...] | |
(to execute a class) | |
or java [-options] -jar jarfile [args...] | |
(to execute a jar file) | |
where options include: | |
-d32 use a 32-bit data model if available | |
-d64 use a 64-bit data model if available | |
-server to select the "server" VM | |
The default VM is server, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sixstringsg@jarvis:~/Raspberry-ROV/Controller_Code$ java rover_controller | |
Exception in thread "main" java.lang.NoClassDefFoundError: Client | |
at rover_controller.main(rover_controller.java:41) | |
Caused by: java.lang.ClassNotFoundException: Client | |
at java.net.URLClassLoader$1.run(URLClassLoader.java:366) | |
at java.net.URLClassLoader$1.run(URLClassLoader.java:355) | |
at java.security.AccessController.doPrivileged(Native Method) | |
at java.net.URLClassLoader.findClass(URLClassLoader.java:354) | |
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) | |
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sixstringsg@jarvis:~/Raspberry-ROV/Controller_Code$ javac rover_controller.java | |
rover_controller.java:25: error: cannot find symbol | |
static Client myClient; | |
^ | |
symbol: class Client | |
location: class rover_controller | |
rover_controller.java:41: error: cannot find symbol | |
myClient = new Client(port, dataport, host, rev); | |
^ | |
symbol: class Client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@mark1 ~/Raspberry-ROV/Rover_Code $ g++ -I../Libraries/socket/ -lwiringPi ../Libraries/socket/Server.o main.cpp | |
g++: error: ../Libraries/socket/Server.o: No such file or directory | |
pi@mark1 ~/Raspberry-ROV/Rover_Code $ cd ../Libraries/socket/ | |
pi@mark1 ~/Raspberry-ROV/Libraries/socket $ ls | |
Client.cpp client_test.cpp java_client_test.java readme.txt server.h server_test.cpp | |
Client.h client_test.vcproj java_server_test.java readme.txt~ Server.h server_test.vcproj | |
Client.java cl.java Makefile Server.cpp Server.java socket.sln | |
pi@mark1 ~/Raspberry-ROV/Libraries/socket $ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@mark1 ~/Raspberry-ROV/Rover_Code $ g++ -I../Libraries/socket -lwiringPi main.cpp | |
/tmp/ccqxNQWZ.o: In function `main': | |
main.cpp:(.text+0x134): undefined reference to `Server::Server(int, int, bool*)' | |
main.cpp:(.text+0x160): undefined reference to `Server::~Server()' | |
main.cpp:(.text+0x18c): undefined reference to `Server::Connect()' | |
main.cpp:(.text+0x1b0): undefined reference to `Server::RecvBytes(char*, int)' | |
main.cpp:(.text+0x4fc): undefined reference to `Server::~Server()' | |
collect2: ld returned 1 exit status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@mark1 ~/Raspberry-ROV/Rover_Code $ nano main.cpp | |
*** deleted leftReverse code and other added line | |
pi@mark1 ~/Raspberry-ROV/Rover_Code $ g++ -L../Libraries/socket -lwiringPi main.cpp | |
/tmp/ccNapoNw.o: In function `main': | |
main.cpp:(.text+0x134): undefined reference to `Server::Server(int, int, bool*)' | |
main.cpp:(.text+0x160): undefined reference to `Server::~Server()' | |
main.cpp:(.text+0x18c): undefined reference to `Server::Connect()' | |
main.cpp:(.text+0x1b0): undefined reference to `Server::RecvBytes(char*, int)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@mark1 ~/Raspberry-ROV/Rover_Code $ g++ -L../Libraries/socket -lwiringPi main.cpp | |
/tmp/ccdQy4kK.o: In function `main': | |
main.cpp:(.text+0x134): undefined reference to `Server::Server(int, int, bool*)' | |
main.cpp:(.text+0x160): undefined reference to `Server::~Server()' | |
main.cpp:(.text+0x18c): undefined reference to `Server::Connect()' | |
main.cpp:(.text+0x1b0): undefined reference to `Server::RecvBytes(char*, int)' | |
main.cpp:(.text+0x508): undefined reference to `Server::~Server()' | |
main.cpp:(.text+0x530): undefined reference to `leftReverse' | |
collect2: ld returned 1 exit status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@mark1 ~/RaspberryRover/socket $ g++ -lwiringPi main.cpp | |
/tmp/ccscNnbo.o: In function `main': | |
main.cpp:(.text+0x134): undefined reference to `Server::Server(int, int, bool*)' | |
main.cpp:(.text+0x160): undefined reference to `Server::~Server()' | |
main.cpp:(.text+0x18c): undefined reference to `Server::Connect()' | |
main.cpp:(.text+0x1b0): undefined reference to `Server::RecvBytes(char*, int)' | |
main.cpp:(.text+0x4fc): undefined reference to `Server::~Server()' | |
collect2: ld returned 1 exit status |