Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

测试报错问题 #4

Closed
ZhangTeng2017 opened this issue Dec 24, 2019 · 10 comments
Closed

测试报错问题 #4

ZhangTeng2017 opened this issue Dec 24, 2019 · 10 comments
Labels
Question 提问

Comments

@ZhangTeng2017
Copy link

为什么我切换到test分支运行代码时有如下的错误,看错误意思是jar的问题?因为第一次使用idea,还请大佬帮忙指导一下。多谢了🙏🙏🙏
截屏2019-12-24下午10 44 06

@kangjianwei
Copy link
Owner

@ZhangTeng2017 报错那个包下应该有个叫hello的jar包,你看下是不是缺那个...我刚切换到test分支,可以运行的...如果你那还不能运行,有没有更具体的信息...

@kangjianwei kangjianwei added the Question 提问 label Jan 2, 2020
@ZhangTeng2017
Copy link
Author

截屏2020-01-04下午9 41 19

这是具体的报错信息,我看这里面的lib中有jar包,导入之后还是报错了

@kangjianwei
Copy link
Owner

@ZhangTeng2017

你看一下依赖里导包了没?

Snipaste_2020-01-05_16-40-37

@ZhangTeng2017
Copy link
Author

这里面有导入
截屏2020-01-05下午8 16 34

@kangjianwei
Copy link
Owner

@ZhangTeng2017

我看你这个包不像导进去的样子,如果导进去了,在lib下会显示它的内容,而不是作为一个整体显示...左边还提示Problems,排查一下...

Snipaste_2020-01-05_21-22-39

@ZhangTeng2017
Copy link
Author

截屏2020-01-05下午9 32 46

那个jar重新导入没有问题了,这个问题是不是要按照那两张图片设置一下Java参数

@kangjianwei
Copy link
Owner

@ZhangTeng2017

不是,这个错误不是那个参数引起的,因为这里没有引用到未导出的模块。

@ZhangTeng2017
Copy link
Author

多谢,最终按照设置了一下Javac的参数,就是编译时要加一个路径。又按照下面的改了一下project lanlanguage leve https://stackoverflow.com/questions/29888592/errorjava-javactask-source-release-8-requires-target-release-1-8。现在可以完美运行了,🙏

@wsuo
Copy link

wsuo commented Apr 15, 2020

image
这怎么回事啊? 我已经导入了 hello 包了.
image

@ZhangTeng2017
Copy link
Author

你好,能不能提供一下报错位置代码的截图

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question 提问
Projects
None yet
Development

No branches or pull requests

3 participants