Solved Include local jar in project as dependency

Discussion in 'Plugin Development' started by Symphonic, Feb 1, 2020.

Thread Status:
Not open for further replies.
  1. Offline

    Symphonic

  2. Offline

    Sploon

    If you use intellij, you can add it in the artifacts menu (File -> Project Structure -> Artifacts) -- in the Output Layout section, there is a plus (with a little arrow below), click it, select library files, then select your library and press all the OKs and recompile.
    If you are using another IDE, there should be a similar way of doing so.
     
  3. Offline

    Symphonic

    I'm using eclipse
     
  4. Offline

    Sploon

  5. Offline

    Xp10d3

    Right click the Java Project, hover over build path, click add external archives, scroll till you see py4j.jar, then double click/click open.
    @Sploon IntelliJ may be smoother, but it is heck a hard to use. I wanted to use it but it always exports my projects in Java 55.0 or whatever which is too high quality for servers to agree upon and just stops running my plugin. I much prefer Eclipse since its much easier or beginners or general Java development. Unless you are SUPER comfortable with Java and have been coding for years, I would think Eclipse is better at the start ;) But you're right; IntelliJ is a lot faster and in the long run much much better then Eclipse. Just my opinion xD
     
  6. Offline

    Sploon

    Go to File->Project Structure-> and change Project SDK from 11 to 8 (or 7, if you hate lambdas).
    Intellij is great because it catches a lot of beginner mistakes (ex 'expression is always true/false').
     
  7. Offline

    Xp10d3

    Lol that's why IntelliJ is better then Eclipse, but it's still harder to understand 0-0
     
  8. Offline

    Symphonic

    I did what you guys said first and I still get a NoClassDefFoundError
     
  9. Online

    timtower Moderator Moderator

  10. Offline

    Xp10d3

    Are you doing this in Eclipse itself or do you get the error when testing?
     
Thread Status:
Not open for further replies.

Share This Page