Open adamjvr opened 9 years ago
Download those files from Google and put them on the BB. On Sun, Sep 20, 2015 at 5:28 PM Adam Vadala-Roth notifications@github.com wrote:
Just tested compilation of the application on the Beaglebone Green. Here is what happened:
adam@beaglebone:~/vivaplanet-java/src/vivaplanetjava0$ javac DeviceReport.java Sensors.java VivaPlanetJava0.java
VivaPlanetJava0.java:24: error: package com.google.gson does not exist import com.google.gson.*; ^ VivaPlanetJava0.java:25: warning: Base64 is internal proprietary API and may be removed in a future release import com.sun.org.apache.xerces.internal.impl.dv.util.Base64; ^ VivaPlanetJava0.java:216: error: cannot find symbol Gson gson = new Gson(); ^ symbol: class Gson location: class VivaPlanetJava0 VivaPlanetJava0.java:216: error: cannot find symbol Gson gson = new Gson(); ^ symbol: class Gson location: class VivaPlanetJava0 VivaPlanetJava0.java:314: warning: Base64 is internal proprietary API and may be removed in a future release String result = Base64.encode(rawHmac); ^ 3 errors 2 warnings adam@beaglebone:~/vivaplanet-java/src/vivaplanetjava0$
It appears it can't find google's gson java library. Investigating this further. Beaglebone Green Linux Version:
Distributor ID: Debian Description: Debian GNU/Linux 7.9 (wheezy) Release: 7.9 Codename: wheezy
Kernel Version:
Linux beaglebone 3.8.13-bone71.1 #1 SMP Wed May 20 20:13:27 PDT 2015 armv7l GNU/Linux
Java Version:
java version "1.8.0_60" Java(TM) SE Runtime Environment (build 1.8.0_60-b27) Java HotSpot(TM) Client VM (build 25.60-b23, mixed mode)
— Reply to this email directly or view it on GitHub https://github.com/HydroPWNics/vivaplanet-java/issues/1.
I got the files, now its a matter of determining the proper location to install them too to the java compiler knows where the references are.
There are two paths in the Java you need to mod on The BB as well. I'll send you the text file with the sensor data on it tonight On Sun, Sep 20, 2015 at 7:11 PM Adam Vadala-Roth notifications@github.com wrote:
I got the files, now its a matter of determining the proper location to install them too to the java compiler knows where the references are.
— Reply to this email directly or view it on GitHub https://github.com/HydroPWNics/vivaplanet-java/issues/1#issuecomment-141852349 .
I added the following to my bash profile, and refreshed it before attempting another compile:
#########################################################################
# GOOGLE gson-2.3.1
#########################################################################
export PATH=$PATH:/opt/google.gson/gson-2.3.1-javadoc.jar
export CLASSPATH=$CLASSPATH:/opt/google.gson/gson-2.3.1-javadoc.jar
export PATH=$PATH:/opt/google.gson/gson-2.3.1-javadoc.jar
#########################################################################
# GOOGLE gson-2.3.1
#########################################################################
First compile after adding the jar to the PATH resulted in:
adam@beaglebone:~/vivaplanet-java/src/vivaplanetjava0$ javac DeviceReport.java Sensors.java VivaPlanetJava0.java
error: error reading /opt/google.gson/gson-2.3.1-javadoc.jar; /opt/google.gson/gson-2.3.1-javadoc.jar (Permission denied)
1 error
So I tried:
sudo chmod 777 /opt/google.gson -R
Compiled again and got:
adam@beaglebone:~/vivaplanet-java/src/vivaplanetjava0$ javac DeviceReport.java Sensors.java VivaPlanetJava0.java
VivaPlanetJava0.java:24: error: package com.google.gson does not exist
import com.google.gson.*;
^
VivaPlanetJava0.java:25: warning: Base64 is internal proprietary API and may be removed in a future release
import com.sun.org.apache.xerces.internal.impl.dv.util.Base64;
^
VivaPlanetJava0.java:216: error: cannot find symbol
Gson gson = new Gson();
^
symbol: class Gson
location: class VivaPlanetJava0
VivaPlanetJava0.java:216: error: cannot find symbol
Gson gson = new Gson();
^
symbol: class Gson
location: class VivaPlanetJava0
VivaPlanetJava0.java:314: warning: Base64 is internal proprietary API and may be removed in a future release
String result = Base64.encode(rawHmac);
^
3 errors
2 warnings
Just tested compilation of the application on the Beaglebone Green. Here is what happened:
It appears it can't find google's gson java library. Investigating this further. Beaglebone Green Linux Version:
Kernel Version:
Java Version: