Because you are choosing jre dir. and not JDK dir. JDK dir. is for instance (depending on update and whether it’s 64 bit or 32 bit): C:\Program Files (x86)\Java\jdk1.7.0_45 In my case it’s 32 bit JDK 1.7 update 45
You can find all the details here: IDEA-170117 “objc: Class JavaLaunchHelper is implemented in both …” warning in Run consoles It’s the old bug in Java on Mac that got triggered by the Java Agent being used by the IDE when starting the app. This message is harmless and is safe to ignore. Oracle developer’s …
I created an application Context.xml at the WEB-INF/classes directory. and I have added the <!DOCTYPE> in the xml. I am getting the below error: URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs) You can see the snapshot below: The xml is below:
You can change the project name, which is the name that is shown in the recent projects list, like so: Go to Project Structure (Ctrl+Alt+Shift+S) → Project Settings / Project → Project name: Please note that this is not to be confused with name of the root module, or folder on the file system, which may or may not …
You can set up a default way to shorten the command line and use it as a template for further configurations by changing the default JUnit Run/Debug Configuration template. Then all new Run/Debug configuration you create in project will use the same option. Here is the related blog post about configurable command line shortener option.
In IntelliJ IDEA: In File Menu → Project Structure → Project, change Project Language Level to 8.0 – Lambdas, type annotations etc. For Android 3.0+ Go File → Project Structure → Module → app and In Properties Tab set Source Compatibility and Target Compatibility to 1.8 (Java 8) Screenshot:
You are calling str.substring(i, j-i) which means substring(beginIndex, endIndex), not substring(beginIndex, lengthOfNewString). One of assumption of this method is that endIndex is greater or equal beginIndex, if not length of new index will be negative and its value will be thrown in StringIndexOutOfBoundsException. Maybe you should change your method do something like str.substring(i, j)? Also if size is length of your str then should probably be
Select the project, then File > ProjectStructure > ProjectSettings > Modules -> sources You probably have the Language Level set at 9: Just change it to 8 (or whatever you need) and you’re set to go. Also, check the same Language Level settings mentioned above, under Project Settings > Project
If you didn’t set up the IDE project via “Import Project” and then pointing to a Gradle project, you
You just have to go to your Module settings > Project and specify a “Project compiler output” and make your modules inherit from project. (For that go to Modules > Paths > Inherit project. This did the trick for me.