Keypad

Swami Venkataramani <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
Hi,

I modified the TicTacToe example slightly to test the KeyPad...and I am
using the SBX2 API (LCD.class, CBX2.class, Misc.class, etc...), but it just
won't compile...does anything seem obviously wrong in the followinf Ant
Error message?

Any help is appreciated!

Thanks,

Swami.

---------------------------------
Buildfile: build.xml

prepare:

compile:
    [javac] Compiling 2 source files to C:\Documents and Settings\Swami\My
Documents\Research\TINI\Embedded Keypad\EmbeddedGateway\build
    [javac] C:\Documents and Settings\Swami\My
Documents\Research\TINI\Embedded
Keypad\EmbeddedGateway\src\EmbeddedKeypadTest.java:59: cannot access SBX2
    [javac] bad class file: C:\Documents and Settings\Swami\My
Documents\Research\TINI\Embedded
Keypad\EmbeddedGateway\com\systronix\sbx2\SBX2.class
    [javac] class file contains wrong class: com.systronix.sbx2.SBX2
    [javac] Please remove or make sure it appears in the correct
subdirectory of the classpath.
    [javac]     static SBX2     cSBX;
    [javac]            ^
    [javac] 1 error

BUILD FAILED

C:\Documents and Settings\Swami\My Documents\Research\TINI\Embedded
Keypad\EmbeddedGateway\build.xml:36: Compile failed, messages should have
been provided.

Total time: 1 second

---------------------------------


<project name="EmbeddedGateway" default="main" basedir=".">
  <!-- Bring in the "tini" task. -->
  <taskdef name="tini" classname="net.geeba.ant.Tini"/>

  <!-- Location of the TINI installation. -->
  <property name="tini.dir" value="c:/tini1.10"/>

  <property name="sbx2CLASSPATH" value="C:/Documents and Settings/Swami/My
Documents/Research/TINI/Embedded
Keypad/EmbeddedGateway/com/systronix/sbx2"/>

  <!-- The TINI ROM API database file. -->
  <property name="tini.db" value="${tini.dir}/bin/tini.db"/>

  <!-- The TINI classes. -->
  <property name="tini.classes" value="${tini.dir}/bin/tiniclasses.jar"/>

  <!-- Where tini.jar is. -->
  <property name="tini.jar" value="${tini.dir}/bin/tini.jar"/>

  <!-- Where tinix10.jar is. -->
  <property name="tinix10.jar" value="../x10-src/jar/tinix10.jar"/>

  <!-- Where comm.jar is. -->
  <property name="comm.jar" value="C:/j2sdk1.4.2_01/jre/lib/ext/comm.jar"/>

  <!-- Location of x10_src -->
  <property name="x10_src" value="../x10-src"/>

  <!-- Prepare the build. -->
  <target name="prepare">
    <mkdir dir="build"/>
  </target>

  <!-- Compile the source code. -->
  <target name="compile">
    <javac srcdir="src" destdir="build"
	       classpath="${tinix10.jar};${sbx2CLASSPATH}"/>
  </target>

  <!-- Convert to .tini -->
  <target name="convert">
    <tini outputfile="EmbeddedGateway.tini"
	      database="${tini.db}"
          classpath="${tini.jar}"
		  mainclass="EmbeddedGateway">
      <convert dir="${x10_src}/jar">
          <include name="tinix10.jar"/>
      </convert>
      <convert dir="build"/>
    </tini>


	<tini outputfile="EmbeddedKeypadTest.tini"
		  database="${tini.db}"
          classpath="${tini.jar}:${sbx2CLASSPATH}"
		  mainclass="EmbeddedKeypadTest"
		  dependencyfile="SBX2_dependancies.txt"
		  dependpath="com.systronix.sbx2">

      <convert dir="${x10_src}/jar">
          <include name="tinix10.jar"/>
      </convert>
      <convert dir="build"/>
    </tini>

  </target>

  <!-- Main: prepare it, build it, and convert it. -->
  <target name="main" depends="prepare,compile"/>

  <!-- Clean: remove everything that can be rebuilt. -->
  <target name="clean">
    <delete dir="build"/>
    <delete file="EmbeddedGateway.tini"/>
  </target>

</project>





_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.