idea 生成sdk,如何在IntelliJ IDEA中设置SDK?

这篇博客解决了在Ubuntu 16.04 LTS中无法为IntelliJ IDEA设置SDK的问题。通过运行'$ whereis java'命令找到Java的安装路径,通常位于'/usr/bin/java'。然后,在IntelliJ的Project Structure中配置SDK,选择Platform Settings -> SDKs,点击 '+' 添加JDK的家目录。
摘要由CSDN通过智能技术生成

I am not finding any way to setup the SDK in IntelliJ IDEA.

Not finding any path to setup the SDK in ubuntu 16.04 LTS for IntelliJ IDEA.

bf06b850f7c71e1e5563457bc4c0aea2.png

I am working in this IDE for working on mongodb. But can't proceed because of this problem.

解决方案

To find the path where java is installed on ubuntu, you can run the following command from terminal:

$ whereis java

You may get something like this:

java: /usr/bin/java /etc/java /usr/share/java

That mean that java resides in /usr/bin/java

So, that directory should designate in IntelliJ. You can configure in the Project Structure, press Ctrl + Alt + Shift + S, choose Platform Settings -> SDKs, click on green button (+), select the home directory for JDK.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值