So I installed the beta of JDK 8 a while ago to look at some of the examples. I thought for sure by now, it’s easy to change between versions. Doing some Play development with IntelliJ. For some reason, IntelliJ is compiling with 8 even though: I have the compiler set in Preferences to use 1.6 Supposedly it’s using SBT
Tag: intellij-idea
How do I change the IntelliJ IDEA default JDK?
I use IntelliJ IDEA as my development environment, and Maven for dependency management. I frequently build my project structure (directories, poms, etc) outside of IDEA and then import the project into IDEA using Import project from external model. This works great, except that in my poms I specify that the maven-compiler-plugin should use JDK 1.6, and when I import, IDEA
java class method stubs with /* compiled code */
I just received a third party authentication library to use in my clients application. I didn’t receive any documentation with it and am trying to dig through the source and see how it works. I’m very to new Java when i click Go To -> Declaration on methods in IntelliJ it sends me to a .class file and i see
Maven package works but Intellij’s build fails
I have a JDK 1.7 project with a maven dependency to a local jar in my maven repo. I’m unable to build the project using Intellij, with the errors that a symbol cannot be found (the symbol is a class importing packages from the local jar) But I can successfully build the project using ‘mvn package’. I’ve spent so much
Where to add compiler options like -ea in IntelliJ IDEA?
I want to add the -ea option. I set it in Project Settings –> Compiler –> Java Compiler : Additional command line parameters. But it caused a make error: invalid flag: -ea. P.S.: the above error message may not be the same as yours, because IntelliJ showed error in my native language, not English. I translated it into English. Answer
Lombok added but getters and setters not recognized in Intellij IDEA
I am using IntelliJ IDEA on ubuntu. I added lombok.jar into my project and installed the Lombok plugin for IDEA. I have access to the annotations but the getters and setters aren’t generated. I get the same errors I would get if I tried accessing a getter or setter method that doesn’t exist. What could I be missing? Answer I
In Intellij, how do I toggle between camel case and underscore spaced?
At my company we have two different style guides for java vs sql. In java I have a field named historyOfPresentIllness and when i write the sql, I want to name it history_of_present_illness. Is there a keyboard shortcut to switch from one to the other when I have the phrase highlighted? Or perhaps a plugin that can do this? While
Unable to resolve reverse routing methods in IntelliJ
I’m following one of the play framework tutorials, but I’m getting compile errors whenever I try to use reverse routing. Firstly, where the error shown in intelliJ is ‘cannot resolve method javascriptRouter(java.lang.String, ?, ?, ?, ?)’ But also in the a unit test: where it cannot resolve the index method. Is this a problem with intelliJ, or am I missing
JSONObject ClassNotFoundException
I am working in IntelliJ and using Maven. I have a class that uses JSONObject: Maven dependency in the pom.xml file: I can do a mvn clean package and builds successfully. But when I try to run it, I get: Error: java.lang.ClassNotFoundException: org.json.JSONObject Is there anything else I’m missing here? Thanks! Answer Add json jar to your classpath or use
How Can I View Glassfish Logs on Intellij Idea
I am working on making the switch from Netbeans to Intellij Idea. One thing I miss from Netbeans is the ability to view the Glassfish server logs in real-time in the IDE. It seems like with Idea I need to go out to the file system and tail them. Is there another way that I am missing? Answer Additional server