English 中文(简体)
深层“主要” j的例外情况。 错误:未经解决的汇编
原标题:Exception in thread "main" java.lang.Error: Unresolved compilation

The declared package "" does not match the expected package "src" I am trying to compile this program and I get the above error. I imported the project from the downloads folder and copied it to my workspace. Do i need to create a new package ? screenshot

什么是错的?

问题回答

我不肯定你所做的工作。 但我们认为,你有意将它输入工作空间是正确的。

如果这是你下载的项目,那么就使用进口和进口;现有项目进入工作空间。

a)

缺省一揽子计划

如果你将课堂安排在册子里,那将课以罚款。 另一种解决办法是人工创建项目,并单独增加一个类别和复制一个并非如此令人愉快的过去。

我相信,你将不得不把项目的来源地混为一谈。 下面的图像中写明了以下内容。 Click on “Add Folder” and the place of the source rafter

“entergraph

It is happened because your class is not in correct package, you should put your class under defaults package then your issue will be fine; otherwise you should write in top of your class ,your package name for example " mohsen package;"

• 确保贵系统为首都。

You would have removed the package name in any of the class by mistake. Inspect all the classes for correct package name.





相关问题
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 ...

热门标签