Shop OBEX P1 Docs P2 Docs Learn Events
Import JBot.*; --> error? — Parallax Forums

Import JBot.*; --> error?

StereoPonyzStereoPonyz Posts: 82
edited 2009-12-13 13:01 in General Discussion
Hi, i have seen some of the threads trying to understand more on Javelin Stamp. I dl-ed the attachments from (http://forums.parallax.com/showthread.php?p=829542) and was testing out the codes, however, i received error as shown in the attachment.

May i know if i am missing this JBot package? where can i install it from?

thank you.
649 x 637 - 82K

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2009-10-01 06:08
    Create a folder JBot at
    <javelin ide installpath>\lib\

    Copy all files from folder JBotCode (after unzipping JBot2.zip) to folder JBot

    Create a folder os_org at
    <javelin ide installpath>\lib\stamp\util\os

    Move all files that are currently in folder os to folder os_org
    Copy all files from folder os (copy ...)·(after unzipping JBot2.zip) to folder os

    regards peter
  • StereoPonyzStereoPonyz Posts: 82
    edited 2009-10-01 08:35
    Thank you Peter! May i know if some of the codes are just a partial of a program, that is, that segment of the program suppose to be inserted into a main program before it can work?

    Cos some of the program after successful compile shows, [noparse][[/noparse]Error LNK-0002]No suitable 'main' method, found when i program into the javelin.
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2009-10-01 08:49
    The JBot files without 'main' method are used by other JBot files that do have a 'main' method.
    You can consider them library files.
    I think the files with 'test' in the filename are the files that have a 'main' and those
    you can program into the javelin.

    regards peter
  • StereoPonyzStereoPonyz Posts: 82
    edited 2009-12-11 15:20
    Hi, i have encountered other compiling error when testing other program codes. Attached is the errors shown after compiling it. However, not all the program have got such prob, for instance the codes on calibratewheels is fine aft compiling.
    793 x 814 - 129K
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2009-12-11 15:34
    That particular program compiles and links fine on my pc.
    The error shows the file Task is missing something so I assume
    you did not quite setup folder os correctly.

    Save all files from folder ...\lib\stamp\util\os
    to a folder os_org
    Then empty folder os
    Unzip the attachement in folder os

    Then it should compile ok.

    regards peter
    zip
    29K
    os.zip 29.3K
  • StereoPonyzStereoPonyz Posts: 82
    edited 2009-12-11 16:11
    There are only 2 files under folder OS, that is, Task and TaskManager. I copied that 2 files and placed into a newly created folder os_org, and empty the os folder

    Then extract the zip file u had. I realised that when i unzipped i was prompted if i want to replace Task and TaskManager, which i chose to replace.

    Now, none of the program works... [noparse]:([/noparse]
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2009-12-11 17:01
    Here is my os folder.
    My install path is c:\javelin, yours may be different

    regards peter
    800 x 600 - 81K
  • StereoPonyzStereoPonyz Posts: 82
    edited 2009-12-12 12:04
    Oh no i have replaced the original Task and TaskManager files after extracting the attachment inside os_org folder too. May i know if it will post any problems? Where can i get back the original files?
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2009-12-12 13:55
    Here are the files located in my org_os folder.

    regards peter
  • StereoPonyzStereoPonyz Posts: 82
    edited 2009-12-12 14:36
    Hi peter, i would like to thank you so much for step to step guidance in helping me to set up the stuffs correctly. However, i am just too noob and am unsure what is it that i have missed out.

    I unzip the os and os_org attachments in the respective folders but compiling AvoidDropOffTaskRangeTest1.java program still show up errors...

    Sorry for troubling again.
    793 x 814 - 100K
    Err.JPG 99.8K
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2009-12-13 13:01
    You get this error because you compiled·Task.java located in os_org folder,
    but the file still specifies package stamp.util.os and not stamp.util.os.os_org
    That also applies to LinkedListItem.

    I just moved them to a separate folder so they no longer conflict with the JBot files.
    Either update the package lines or rename the files itself.

    regards peter
Sign In or Register to comment.