Go to Post No! I will not be an enabler for this madness. Go outside. See a movie. Read a book. LIVE!!!! - Herodotus [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 24-12-2016, 11:48
mkmeral mkmeral is offline
Registered User
FRC #4191
 
Join Date: Feb 2016
Location: Turkey
Posts: 6
mkmeral is an unknown quantity at this point
Roborio Connecting to Raspberry Pi

I am right now trying to get message from raspberry pi using roborio(java). I have configured Raspberry as web server, and i access to a file from it. In my computer (not wpilib) it works, I can get the data as I should normally do. However, when, try to upload the code below to the roborio i get the error below. Any suggestions? public void networking(){ // TODO Auto-generated method stub

try{
String wholetext = "";
URL oracle = new URL("http://10.41.91.109/a");
URLConnection yc = oracle.openConnection();
BufferedReader in;
in = new BufferedReader(new InputStreamReader(
yc.getInputStream()));

String inputLine;
while ((inputLine = in.readLine()) != null)
wholetext += inputLine;
in.close();
SmartDashboard.putString("Deger", wholetext);
}catch(Exception e){
SmartDashboard.putString("NETWORK:", e.getMessage());
}

}

BUILD FAILED C:\Users___\wpilib\java\current\ant\build.xml:71: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "C:\Program Files\Java\jre1.8.0_111"
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:37.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi