English 中文(简体)
我如何确定在Eclipse中提及一揽子计划?
原标题:How do I determine where a package is being referenced from in Eclipse?
  • 时间:2011-11-20 19:40:11
  •  标签:
  • java
  • eclipse

我有两个不同的公开来源项目副本,一个是建构的,另一个是开标的。 build是说:

Description Resource    Path    Location    Type
The project was not built since its build path is incomplete. Cannot find the class file for javax.crypto.SecretKey. Fix the build path then try building this project  Server      Unknown Java Problem
The type javax.crypto.SecretKey cannot be resolved. It is indirectly referenced from required .class files  DefaultConfigurationController.java /Server/src/com/mirth/connect/server/controllers    line 1  Java Problem

and these two classes have been highlighted by eclipse

import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;

在建设项目中,我如何决定从哪里解决这些提法?

问题回答

Press F3 on the category of interest and press Link with Editor in Package Explorr/code> view.

On the other hand if you would like to see all the references of a given class, field or method press Ctrl + Shift + G.

Probably the quickest/easiest way is to right-click on the project and go to:

1. 建立“开拓之路”外部档案......

我认为,你是在“jce.jar”之后,见诸于您的JDK的“校准”——该双手的浏览器,并添加了jar。

A slightly more elegant way is to use the following:

Build Path | Add Libraries.. | User Library

希望会有所帮助。

This is very silly error, i solved this by following way...

右面点击推进剂;properties->Java Building Path。

Now select Libraries tab and press Add Library then select JRE System Library->next->Finish.

现在所有错误都会发生。

Ctrl+click the class name either from the import or a usage.

The used file should show up in a new editor window (with or without source)

<<>Right Click/strong>,编辑窗口,Show in -> Project Exploration

It ll select the file from the jar/lib it s in in the explorer, you can scroll up in the window if needed to see what lib / jar it came from.





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...