You can use IntelliJ with dual SDK configuration. In my case I tested with using Java and Python in one project
Adding python to java project
- Go to Project Structure CTRL+ALT+SHIFT+S
- Select SDKs - from Platform Settings
- Go to the green plus
- Python SDK
- add local
- Select your SDK
IntelliJ Cannot resolve methods and other errors
If you get errors like Cannot resolve println(java.lang.String) and string concatenation and many other errors than you need to remove your SDK from IntelliJ and add it again.
- Go to Project Structure CTRL+ALT+SHIFT+S
- Select SDKs - from Platform Settings
- Select your Java SDK
- Delete it with the red minus
- Add it by green plus
- Go to File
- Ivalidate cache/ Restart
Running script errors
If you have problem running the scripts then you can edit your script configuration by:
- Select Run from Main Menu
- Edit configurations...
- Select your script
- For python
- select python interpreter
- For Java
- select JDK
Note: I usually work with JDK as project SDK by default. With this configuration I'm able to run python and java code in one project.
If you have any questions / comments please ask then in the comment section below. And I'll be happy to answer them.