Shop OBEX P1 Docs P2 Docs Learn Events
Full compile of lib and stamp — Parallax Forums

Full compile of lib and stamp

William GuynesWilliam Guynes Posts: 5
edited 2006-02-05 17:51 in General Discussion
I guess this is more of a jikes question. I'm trying to find an easy way to force a recompile of all stamp and lib classes. I've installed as an administrator, but don't want the IDE users (not admins) to be able to recompile the libs, so I must do it for them.

Is there a quickie way of forcing this? Some example main() to compile? IIRC, java will only recompile what the program actually needs.

Post Edited (William Guynes) : 2/4/2006 4:51:12 AM GMT

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2006-02-04 05:32
    Even a user with·limited rights (win2k,winxp) can compile and download javelin programs.
    The javelin IDE recompiles any source if required.
    The only option is to remove the library sources from their path,
    leaving only the .class files in place.

    regards peter
  • William GuynesWilliam Guynes Posts: 5
    edited 2006-02-05 03:11
    Those files that are in the Projects directory they would, of course, need read/write access. But they don't need to have write access to lib or stamp dirs. In fact, in a default install (by the Administrator) a User does not have such access.

    So build them once, as Administrator, then let the users work in their sandbox for their Projects.

    Allowing them write access to the lib or stamp directory is undesirable in my circumstance.
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2006-02-05 03:45
    I have tried it as a restricted user.
    The javelin IDE does recompile and does require access to the .class files.
    Wether you find it undesirable is not the issue, the Javelin IDE must
    link the classes. Remove the library sources·and leave the class files,
    then the class files are only read by the javelin IDE.

    regards peter
  • William GuynesWilliam Guynes Posts: 5
    edited 2006-02-05 17:30
    The IDE does not come with .class files, only .java files.
    The .class files only get built the first time someone tries to link them in.

    I agree with you. Users running the IDE do require read access to the .class files.
    They do not need write access to the .class files.

    I need to make the .class files, as Administrator, so the User does not have to. Giving them write access to lib and stamp directories is undesirable.

    Again I ask, how can I force a complete compile of all lib and stamp classes?
    Is there a demo program that uses everything? (IIRC, java only links in what it needs for a given program.)
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2006-02-05 17:51
    You can try to use a batch file. I think Jikes runs from·a commandline.

    How do you support users that need to extend existing classes and so
    must access the same package (and thus folders)? With your setup
    the administrator must recompile such a class for any little change that
    a user adds to such a class.
    Also, many sources have explanations in them, and so it would be
    best if users have read access to the sources. I recall that all
    supplied sources (.java) are readonly upon installation and so
    cannot be altered unless the user changes the file properties and
    only the administrator has those rights.

    regards peter
Sign In or Register to comment.