How to add 3rd party JAR's to compile time classpath in jGRASP?

后端 未结 2 415
我在风中等你
我在风中等你 2021-01-07 00:21

What do I need to do to successfully the import ij package? I get an error:

ITCN_.java:1: package ij does not exist

The import

相关标签:
2条回答
  • 2021-01-07 00:51

    It's the ImageJ API. The API docs are available here. You can download it here. Once downloaded, just add the JAR(s) to the compiletime and runtime classpath.

    0 讨论(0)
  • 2021-01-07 01:08

    I also used Jgrasp back in the day.

    I highly recommend moving to eclipse although jGrasp is very simple and works.

    To Add to the Build Path you go to Settings -> PATH/CLASSPATH -> Workspace

    Click on the "Path" tab, and then the "CLASSPATHS" subtab.

    Then Click "New" and where it says Path or Jar file, enter in the path to the ij jar file. Do this for each file if there are more than one.

    And then click "apply" and you should be able to use import ij.* and the subsequent functions

    0 讨论(0)
提交回复
热议问题