Announcement

Collapse
No announcement yet.

Incorporating jar files in VSCode (not being official extensions)

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Incorporating jar files in VSCode (not being official extensions)

    I want to add usage of https://sourceforge.net/projects/j360controller/ (well, a jar file for it) to our VSCode environment so our students can drive our debug code with an xbox controller, without needing DriveStation or our code being on RoboRio, but I jsut cannot find how to stick an arbitrary jar file into the classpath... any ideas?

  • #2
    External JAR dependencies not managed by our Vendor library system are handled by manually editing the Build.gradle file of your project.

    For libraries not available through Maven like the one listed, you would add something like this to the dependencies section (this example shows 2 libraries):
    externalLibs files('libs/commons-lang.jar', 'libs/log4j.jar')

    In this example, the library files are placed in a subdirectory of the project called "libs".
    FIRST
    FRC Robotics Engineer

    Comment


    • #3
      So thanks Kevin for the reply - we got J360Controller to enable building, but when running the runtime fails to find the dll included in the resources subdir of the jar. (it's obvious the runtime found the jar)

      Comment


      • #4
        Hi seanrekrap. I wrote J360Controller. If you are still trying to get it to work, maybe I can help.

        Comment

        Working...
        X
        😀
        🥰
        🤢
        😎
        😡
        👍
        👎