View Single Post
  #6   Spotlight this post!  
Unread 19-01-2016, 23:58
Ltwolf20 Ltwolf20 is offline
Registered User
FRC #4796
 
Join Date: Jan 2016
Location: Massachusetts
Posts: 9
Ltwolf20 is an unknown quantity at this point
Re: Java "bad class file" issue

Quote:
Originally Posted by codedr View Post
Open this file in an editor,
/Users/ProgrammingWolf/wpilib/java/current/ant/build.xml
and look for the javac stanza, and see if there is specifications for either source= or target= or both. For wpilib.jar you are going to need a value for 1.8 for both.
Not sure if I actually went to the right place but here is what I get.


<?xml version="1.0" encoding="UTF-8"?>

<project name="FRC Deployment" default="deploy">

<!--
The following properties can be defined to override system level
settings. These should not be touched unless you know what you're
doing. The primary use is to override the wpilib version when
working with older robots that can't compile with the latest
libraries.
-->

<!-- By default the system version of WPI is used -->
<!-- <property name="version" value=""/> -->

<!-- By default the system team number is used -->
<!-- <property name="team-number" value=""/> -->

<!-- By default the target is set to 10.TE.AM.2 -->
<!-- <property name="target" value=""/> -->

<!-- Any other property in build.properties can also be overridden. -->

<property file="${user.home}/wpilib/wpilib.properties"/>
<property file="build.properties"/>
<property file="${user.home}/wpilib/java/${version}/ant/build.properties"/>

<import file="${wpilib.ant.dir}/build.xml"/>

</project>
Reply With Quote