Shop OBEX P1 Docs P2 Docs Learn Events
Argh! Can't get java files to compile! — Parallax Forums

Argh! Can't get java files to compile!

dinkmandinkman Posts: 4
edited 2005-08-31 22:42 in General Discussion
Okay, I am a newbie in every sense of the word. I have not programmed java since the freshman year of my bachelors and I am new to·the Javelin Stamp.

I am trying to get some sample code running on this stamp so that I can start dissecting things and figuring some stuff out.·I have downloaded ...

AN014

http://www.parallax.com/javelin/applications.asp#AN014

... I ma trying to get this to compile and it just will not go. The program cannot find the class it depends upon. I tried uncommenting the "import" statement in the AmuletProtocol.java file. Didn't help. I tried moving the files around, adding C:\Program Files\Parallax Inc\Javelin Stamp IDE\Projects\examples\manual_v1_0 to the classpath, nothing is seeming to work for me.

Can anyone get this dern thing to compile?

Any help is much appreciated.



Will

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-08-29 23:56
    Will,

    ·· Did you follow the instructions about making sure the files inside the zip were extracted into the proper folder/directory?· They have to be in the right spot or it won't work.



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • dinkmandinkman Posts: 4
    edited 2005-08-30 00:02
    I believe so.

    AmuletProtocol.java resides in:
    C:\Program Files\Parallax Inc\Javelin Stamp IDE\Projects


    and AmuletPool.java in:
    C:\Program Files\Parallax Inc\Javelin Stamp IDE\Projects\examples\manual_v1_0

    The second, per the download instructions.
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-08-30 06:27
    Both files go into
    ....\Javelin Stamp IDE\Projects\examples\manual_v1_0
    uncomment the import line in file AmuletProtocol.java

    regards peter
    ·
  • dinkmandinkman Posts: 4
    edited 2005-08-30 16:35
    Yeah I tried this. I still get the same error in the console:

    [noparse][[/noparse]Java Error] AmuletProtocol.java[noparse][[/noparse]54]: Error: Type AmuletPool was not found
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-08-30 17:13
    I unzipped the appnote zipfile in the specified folder

    and everything compiles ok. Try downloading and unzipping again.

    If that fails, try downloading the latest IDE (2.0.3).

    It does compile.

    regards peter
  • dinkmandinkman Posts: 4
    edited 2005-08-31 22:42
    I redownloaded and unzipped the files, uncommented the line. Still gave me the same error.

    I updated the IDE to 2.0.3, the same problem persists!

    I think I will try using the command line compiler directly, as I heard about in another post.
Sign In or Register to comment.