简体   繁体   English

如何在jGRASP中添加第三方JAR来编译时间类路径?

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

What do I need to do to successfully the import ij package? 要成功导入ij软件包,我需要做些什么? I get an error: 我收到一个错误:

ITCN_.java:1: package ij does not exist

The imports are: 进口是:

import ij.*; 
import ij.io.*;
import ij.gui.*; 
import ij.process.*; 
import ij.measure.*; 
import ij.plugin.*; 
import ij.plugin.frame.*; 
import ij.plugin.filter.PlugInFilter;

import java.io.*; 
import java.awt.*; 
import java.awt.event.*;
import java.util.*; 
import java.lang.*; 
import java.text.*;

I also used Jgrasp back in the day. 那天我也使用了Jgrasp。

I highly recommend moving to eclipse although jGrasp is very simple and works. 我强烈建议您使用eclipse,尽管jGrasp非常简单且有效。

To Add to the Build Path you go to Settings -> PATH/CLASSPATH -> Workspace 要添加到构建路径,请转到设置-> PATH / CLASSPATH->工作区

Click on the "Path" tab, and then the "CLASSPATHS" subtab. 单击“路径”选项卡,然后单击“ CLASSPATHS”子选项卡。

Then Click "New" and where it says Path or Jar file, enter in the path to the ij jar file. 然后单击“新建”,并在显示路径或Jar文件的位置输入ij jar文件的路径。 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 然后单击“应用”,您应该可以使用import ij。*和后续功能

It's the ImageJ API . 这是ImageJ API The API docs are available here . API文档可在此处获得 You can download it here . 您可以在这里下载。 Once downloaded, just add the JAR(s) to the compiletime and runtime classpath. 下载后,只需将JAR添加到编译时和运行时类路径中即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM