Menu
  • HOME
  • TAGS

How do I turn my java program into a command line utility on linux?

java,linux,intellij-idea

Define an alias like (if you want it to be permanent for bash then define it in .bash_aliases in your home directory): alias myapp="java -jar myapp.jar" And then run your command like: myapp arg1 arg2 arg3 ...

Unable to run Application.groovy from IntelliJ IDEA

intellij-idea,grails-3.0

You will want to set your GRAILS_HOME variable to the root of your Grails installation, not the bin folder GRAILS_HOME=D:\grails-3.0.1 ...

Code styling without modifying the binaries

intellij-idea,webstorm,intellij-13,intellij-plugin

Simple answer: No. That's because coding rules exist and besides things like changed binaries you have the problem of version control as well. which style of your code should be versioned? While VCS' are able to deal with different line endings, what you ask for isn't supported anywhere.

ESLint: How to set .eslintrc to recognize 'require'?

javascript,intellij-idea,jslint,lint,eslint

The problem is not with ESLint. If you look closely at your message, it says JSHint. Since you're trying to configure ESLint, simplest solution would be to disable or remove JSHint plugin form your IDE. If you still want to use JSHint along with ESLint, you can do the following:...

Scala: Setting programatically a break-point to be recognized by IntelliJ

scala,debugging,intellij-idea

I am not aware of such a feature, but in any programming environment you can get away with an adhoc solution: just define a method debugBreak, add a breakpoint to it and then use that. By example: def debugBreak() { println("Breakpoint hit!") // Manually set a breakpoint here } //.......

IntelliJ IDEA - Syntax Highlighting of SQL Inside Java Code

java,sql,intellij-idea,syntax-highlighting

You can do this via 1) a setting 2) an annotation, and/or 3) a comment. For any of these, you must have the (bundled) IntelliLang Plugin enabled. Setting You can add a setting to say that a particular method's parameter is of a certain 'language' (SQL for example.) Open Setting...

IntelliJ - use imported modules as dependencies like maven projects in Eclipse

eclipse,scala,maven,intellij-idea,sbt

It should work out of box for dependencies, which are imported to the project as modules, no additional settings needed. At least for Java. Just do not run a Maven goal, that would use dependencies from the repository. ...

Perforce workspaces and multiple branches

intellij-idea,perforce

I'm not sure what your mapping looked like when you tried having it all in one workspace, but it sounds like you want: //depot/foo/trunk/... //my_client/trunk/foo/... //depot/foo1/trunk/... //my_client/trunk/foo1/... //depot/foo1/branch1/... //my_client/branch1/foo1/... which is a perfectly valid one-to-one mapping. This on the other hand would not work: //depot/foo/trunk/... //my_client/trunk/foo/... //depot/foo/trunk/... //my_client/branch1/foo/... //depot/foo1/trunk/... //my_client/trunk/foo1/......

IntelliJ autocomplete to replace the function name

intellij-idea,intellij-idea-14

Press Tab instead of Enter to select the item, and the identifier will be replaced. See also http://jetbrains.dzone.com/articles/top-20-code-completions-in-intellij-idea

mrunit execute test method error HADOOP_HOME or hadoop.home.dir are not set

intellij-idea,hadoop2,mrunit

Finally, mrunit's use for hadoop2 still have a error.mrunit's use for hadoop1 is ok.below is change maven: <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-client</artifactId> <version>2.0.0-mr1-cdh4.4.0</version> <scope>provided</scope> <exclusions> <exclusion> <artifactId>mockito-all</artifactId> <groupId>org.mockito</groupId> </exclusion> </exclusions> </dependency> <dependency>...

Intellij Live Template with Mockito

intellij-idea,mockito

This is what I have: $CLASSNAME$ $VAR$ = Mockito.mock($CLASSNAME$.class);$END$ Expressions - CLASSNAME: - VAR: decapitalize(CLASSNAME) So, I just need to type the name of the class I want to mock once, and all the rest is automatically completed. Hope it helps....

Change version constant before compile

java,intellij-idea,gradle,compilation

If you really need to change your sources due to project limitation this might work for you: assuming your version info is kept in a class named VersionInfo.java, the following snippet copies the original VersionInfo source from the default folder into a generated folder and processed the file with updating...

How to disable Code Completion in Android Studio?

android,intellij-idea,android-studio

Go to File-> Setting-> Editor unchecked all check box Then Go to File-> Setting-> Keymap-> Main Menu->Code->Completion remove all hot keys and apply. ...

Binding form elements to persistent storage in IntelliJ plugin

java,swing,intellij-idea,intellij-plugin

Taking yole's answer into account, I came up with a solution that automatically saves data automatically in an "ok enough" way for light plugins. new Timer(2000, new ActionListener() { // Create 2 Second Timer @Override public void actionPerformed(ActionEvent event) { if (isModified()) // Any Changes? getData(); // Save Data }...

IntelliJ command line compiler

java,command-line,intellij-idea,compiler-warnings,headless

Taken from Working with IntelliJ IDEA Features from Command Line: To launch a code inspection from the command line, specify the following command line arguments: Path to the launcher: specify the full path to one of the following launchers (which reside under the bin directory of your IntelliJ IDEA installation):...

Where to edit grails startup command line in IntelliJ IDEA?

grails,intellij-idea

If you open the run configuration you should see fields like Module, Command Line, VM options and more. So add this to the Command Line field -noreloading -Ddisable.auto.recompile=true run-app That should stop Grails from reloading your application....

How to run mvn jetty server with reset endpoints from within IntelliJ for debugging?

maven,intellij-idea

You need to define new Maven 'Run Configuration' Run -> Edit Configuration -> '+' -> Maven and specify Working Directory - directory where you execute mvnDebug, Command Line - the command itself, i.e. 'clean jetty:run' Other relevant fields such as Name After you've done this, you will see just created...

Possible to change the colour of the indentation guide lines per indentation level?

intellij-idea,android-studio

Nope! It is not possible to customise indent guide color. The current version of Android Studio only allows to turn on or off. And you can adjust default number of white space per indent. Don't you think it will create more confusing colourful interface while you code? I think this...

Is it legal to use IntelliJ's EAP versions for commercial use? [closed]

intellij-idea

Yes. If you look at the IDEA*.txt licenses in the <ideaInstallDir>/license directory of an EAP version, you will see that they are exactly the same as those in the released version. Basically EAP's are considered evaluation licenses (see comment by JetBrains here). If you (or your lawyers) want to be...

Intellij web application on tomcat server shows http://localhost:8080/index.jsp instead of http://localhost:8080/myapp/index.jsp

java,jsp,tomcat,servlets,intellij-idea

You can enter your application URL in the 'Edit Connfiguration' of your tomcat server. Click on Edit Configuration Enter you application URL in the start up page Note:- Most probably above solution will work, if it doesn't then you might need to change the application context to '\myApp' in deployment...

Is it possible to highlight ObjC code in Intellij IDEA?

objective-c,intellij-idea,syntax-highlighting

I found this, but it is only syntax highlighting, not auto-complete. For that I'am afraid you will have to use AppCode or Xcode. https://github.com/jkaving/intellij-colors-solarized...

How can I change the javadoc class comment template in IntelliJ?

intellij-idea

Go to Preferences -> Editor -> File and Code Templates and here you can edit your templates for new files. You can read more here. In IntelliJ IDEA 14.1.2 it works for me....

Breakpoint “concurrency” in Intellij

java,debugging,intellij-idea,concurrency,ide

is the code that spwaned the threads your's ? if so you could set unique names on the threads and use those names to distinguish your threads when using breakpoint conditions. e.g. //spwaning the thread Thread threadA=... threadA.setName("thread-A"); // IntelliJ Condition : Thread.currentThread().getName().equals("thread-A") ...

IntelliJ IDEA: Where is “reformat on commit” stored?

intellij-idea

It is in .idea/workspace.xml: <component name="VcsManagerConfiguration"> <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" /> </component> ...

IntelliJ: Paste content of a file to hastebin.com

intellij-idea,xubuntu

Hi we used the following solution provided here: https://github.com/seejohnrun/haste-client By using a simple Bash Script and External Tools in Intellij. Bash Script: #!/bin/bash hastepost() { a=$(cat); curl -X POST -s -d "$a" hastebin.com/documents | awk -F '"' '{print "hastebin.com/"$4}'; } url=$(cat $1 | hastepost) echo $url xdg-open $url If you...

Unexpected top level exception: bad class file magic, in Android

java,android,intellij-idea,ant

Check the version of Java you are using to compile your classes. You need to be using Java 6 or 7 for Android development. Java 7 support was added more recently and its functionality is limited, so use 6 for maximum compatibility....

IntelliJ Sync Eclipse files - Where is this setting saved?

java,eclipse,intellij-idea,ide

IntelliJ provides out of the box interoperability with eclipse projects. When you select "linking IntelliJ-files with Eclipse-files" intelliJ stores dependencies in eclipse format (.classpath) so any changes you made in the project can also be seen by eclipse. On project not imported with this option you can try File ->...

Package management in Android Studio / IntelliJ IDEA

java,android,intellij-idea,android-studio,packages

IntelliJ flattens the packages by default if the package does not contain anything except other packages. You can disable this behavior by clicking on the settings icon in Project view and unchecking Compact Empty Middle Packages. ...

How do I collapse all folders in IntelliJ IDEA?

intellij-idea

The action is called Collapse All and the default shortcut is Ctrl + NumPad - (the project view has to be focused).

IntelliJ Plugin written in Scala - doesn't work

java,scala,intellij-idea,sbt,intellij-plugin

Okay, it seems that this question has been answered here: https://devnet.jetbrains.com/message/5546566#5546566...

Add project on outer level as dependency to module

android,intellij-idea,gradle

Add dependencies in the 'build.gradle' of your MainProject, like this: compile project(':proj1') compile project(':proj2') EDIT: And in the 'settings.gradle' this: include ':proj1' project(':proj1').projectDir = new File('../proj1') include ':proj2' project(':proj2').projectDir = new File('../proj2') ...

How to put notes for packages in IntelliJ?

intellij-idea

The bold [some-notes] that you are seeing is "Name" of the module according to IntelliJ. If the "Name" and the artifactId of the modules are the same then the bold addition will not appear. I do not believe this is meant for notes, but if you would like to have...

Why main generation template is named psvm in IntelliJ?

intellij-idea,code-templates

It's an acronym: public static void main But 'main' works fine too....

Red squiggly line in Maven dependency list in IntelliJ - where do I start debugging?

android,intellij-idea

Execute mvn install from command line, or from IntelliJ directly, to see details. Or you could try hovering over the module... ...

Insert Getter / Setter at end of file with IntelliJ IDEA (Java) [duplicate]

java,intellij-idea,code-generation,getter-setter

Someone asked that before. That's not possible. See: Intellij IDEA - Generate (Alt + Insert) Old question/answer, but I couldn't find it in IDEA 14 (Community) either....

Visualizing gradle dependencies in Intellij

intellij-idea,gradle,intellij-14

I did a small search in IDEA and Google and looks like there is not way to see Gradle dependency but I have found the plugin "Gradle View" which does what you need http://plugins.jetbrains.com/plugin/7150 You can open a ticket and maybe they will add a better Gradle support in IDEA...

Exclude folder from Analyze > Run Inspection by Name

intellij-idea,code-analysis,intellij-idea-14,code-inspection

You could create a Custom Scope.

IntelliJ CTRL+H shortkey equivalent in MyEclipse

java,intellij-idea,myeclipse

The shortcut for class hierarchy in eclipse is F4. In eclipse it is called type hierarchy. With Ctrl+Shift+L you can also browse through your currently defined shortcuts....

Auto complete HTML attribute from CSS Intellij

html,css,intellij-idea

I found webstrom but it is paid version :,(

Intellij IDEA long processing for grails app with warning “too much output to process”

grails,intellij-idea,jvm

I think this is the problem of using a wrong JDK for your project. And it mainly arises incompatible version like the latest versions namely 1.8.45 etc. Can you please try with some older JDK like 1.8.25 and let us know if it works? I earlier had such an issue...

How can I debug scala.js unit tests?

debugging,intellij-idea,scala.js,utest

Currently, the only way to (step-by-step) debug Scala.js code I know of, is inside a browser. The Scala.js sbt plugin does currently not easily allow you to export a JS file you can load in the browser and run. However, if you really need to, you can do so manually:...

Android Studio Migrate Project

android,git,intellij-idea

The *.gradle files are required in order to build the app project successfully. In other words, these files should be included in the VCS. build.gradle contains part of manifest and list of library dependencies. settings.gradle contains depended projects. Some projects provide entire source code. The simplest choice is to include...

How to generate comments as well when automatically generating getters and setters in Android Studio

java,android,intellij-idea,android-studio

The ability to create custom setter & getter templates was added in IntelliJ IDEA v14.1 (specifically build 141.177) via the feature request IDEA-28206 Allow customization of generated getter/setter. I do not know if that change has been merged into the Android Studio branch yet. With the (new) feature, when you...

Intellij isn't catching non-exhaustive matches that use functions as guards

scala,intellij-idea

This has nothing to do with IntelliJ, but is simply a limitation of the Scala compiler. The warning does not appear whenever a nontrivial if clause is present. You can even try this in the REPL: Option(1) match { case Some(x) => ??? } //warning Option(1) match { case Some(x)...

NullPointerException URLImageSource.getConnection(URLImageSource

java,image,intellij-idea,nullpointerexception

Check if there are any hardcoded path names (with file separators)

Don't show class members in alphabetical order in intellij

intellij-idea

You can find the settings icon on right top of the project window, there you can find the option as below, to get the natural order. sort by type ...

Annotations to detect method calls with wrong order of String parameters

java,intellij-idea,annotations,code-inspection

While you should go with ControlAltDel's comment as an ultimate solution, Intelij does have an inspection "Suspicious variable/parameter name combination" that might help. You can enter common parameter names and it will warn you if it thinks the local variables do not match. ...

IntelliJ freezes for about 30 seconds before debugging

java,debugging,intellij-idea

The support from IntelliJ told me to try the IDE with bundled java. http://download.jetbrains.com/idea/ideaIC-14.1.3-custom-jdk-bundled.dmg And it works! Edit: IntelliJ support feedback: The problem was that there was a hang within java.net.Inet4AddressImpl.getLocalHostName(Native Method) JDK method call, which gets your system hostname. This is either JDK problem or local configuration issue... The...

Create a hyperlink to a project file in console output

java,intellij-idea,hyperlink,console,log4j

IDEA will create a link in the console for any text that matches following pattern: (${FileName}.${FileExtention}:${lineNum}) or as a Regex: \([\w \.\-]+\.[\w]*:[\d]+\) For example: (ErrorNotes.txt:10) Note that you need to include the parenthesis. For an actual class, you could use the following in log4j pattern: (%F:%L) For example: To reference...

Idea 14 - Maven 3 - pass parameters

java,maven,tomcat,intellij-idea

You can define profile specific properties directly in pom.xml like so: <profile> <id>localhost</id> <properties> <augage_env>local</augage_env> </properti‌​es> </profile> More information can be found in Maven documentation for build profiles....

Generate return type signature in Scala with Intellij Idea

scala,intellij-idea

If you are on a method name then you can hit ALT + ENTER to get the Intention Actions where the first is usually the Add type annotation to function definition Illustration: In this case it would add Int to the return type of the exampleFunction. Might I add this...

How to get suggestions for compilation errors in Intellij

eclipse,intellij-idea

Place your cursor on the underlined part of code which shows an error, hit ALT+Enter and pop-up menu with available quick-fixes will be shown as illustrated in the screenshot below. This also works for other types of inspections, such as warnings, not just compilation errors....

Generate getter/setter, hashcode/equals, toString in one template in Intellij

intellij-idea,ide

No, it's not possible. Each of the generators has a distinct UI where you need to specify the details of the methods you need, so it wouldn't save any significant effort if the generators were combined.

Where has “Show Type Info on Mouse Motion” gone in Intellij 14

scala,intellij-idea

Yes, Scala settings have changed and most documentation is outdated. I think the setting you are looking for is located here: File ⇒ Settings ⇒ Languages & Frameworks ⇒ Scala ⇒ Editor Tab ⇒ Show type info on mouse hover after, ms...

In IntelliJ, how do I pass command line variables when building with Maven (TestNG run configuration)?

maven,intellij-idea,intellij-idea-14

Use a Maven configuration instead of a TestNG configuration. You can still run your TestNG tests from the Maven configuration: ...

spring boot switching from in-memory database to persistent database

intellij-idea,spring-boot,spring-data

You can change the application properties for the datasource according to the link Gabor Bakos already provided. That depends on the type of the database you want to use. HSQLDB and H2 allow you to specify a file path for the database file, however the database instance itself is...

How do you insert the current year into InteliJ IDEA Copyright template?

intellij-idea,velocity

This page of the documentation explains the built-in Velocity variables for Settings → Copyright → Copyright Profiles: Name Type Comment $today DateInfo The current date and time. ... DateInfo has the following properties: year int The current year. So in my case, I needed this in my template: Copyright (c) 2015-${today.year}, My Name ...

Android studio Gradle is not building the new Jar file

java,android,intellij-idea,android-studio

You have the dependency declared properly. Check the SDK Manager to make sure you've downloaded the Support Library

What is the difference between “app” and “app$” in Intellij?

scala,intellij-idea

For jvm HelloWorld$ is the class of singleton HelloWorld. Scala generates ObjectName$ class for every object ObjectName. It also creates static methods in this class that looks like this: public static void main(String[] args) { MODULE$.main(args); } From javayou could either get an instance of object ObjectName using ObjectName$.MODULE$ static...

Best to use Android Studio or Intellij Idea wth plugins?

android,intellij-idea,android-studio

First, a disclaimer... I have only played with Android Studio a little. But I am an avid user of IntelliJ IDEA for the past 12 years. As Android Studio seems mainly to be a modified version of Intellij my question is are there totally specific features Android Studio has that...

Unresolved property variable when returned from method

javascript,angularjs,variables,intellij-idea,webstorm

I can suggest using JSDoc to document such objects received by ajax calls. See How to fight a lots of unresolved variables warning in Webstorm, for example

IntelliJ IDEA: Open test result tab only on failure

java,intellij-idea,ide

No, there is no such setting as of IntelliJ IDEA 14.1.

Intellij JAVA_HOME variable

java,intellij-idea

The problem is your "Project SDK" is none! Add a "Project SDK" by clicking "New ..." and choose the path of JDK. And then it should be OK.

Getting an OOM issue on the setContentView call in a java gradle android project

java,android,intellij-idea,out-of-memory,android-gradle

You can add this line to application class declaration into manifest file to request a larger heap size. android:largeHeap="true" Make change into manifest file code. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.thenewjonathan.gloryblades" > <uses-permission android:name="android.permission.internet"/> <uses-permission android:name="android.permission.access_network_state"/> <uses-permission...

Cucumber.js debugging in IntelliJ

debugging,intellij-idea,bdd,cucumberjs

Instead of using the cucumber.js plugin, I used the run/debug configuration of node.js. I just set the run config of the node.js plugin like that -> JavaScript file: node_modules/.bin/cucumber.js (any path to the cucumber.js file)...

How can IntelliJ refactor class constants to an external class?

java,intellij-idea,android-studio

Click the menu "Refactor", and choose "Move...". Then select the constants you want to move and enter the class where you want to move them.

Is there anyway to let RubyMine choose first completion choice like Intellij Idea?

ruby-on-rails,ruby,intellij-idea,rubymine

Autocompletion's behaviour in RubyMine has been changed since there were a lot of complains against it in previous versions (because it was choosing not always the desirable one option). If you want to restore the old behaviour, type "Registry" in Search everywhere and look for ide.completion.lookup.element.preselect.depends.on.context and unselect it....

Why .iml files should be added to gitignore? What should be placed in gitignore in common case?

git,intellij-idea

why should I add IDEAs *.iml files to gitignore? These files get changed all the time when it has nothing to do with the code. If you are not careful you will always be merging this file with every check in with other developers. If then I get repo...

Intellij14 and “Please Provide Missing Values dialog box”

sql,database,postgresql,intellij-idea,intellij-14

IntelliJ lets you define what counts as a parameter and what does not. Go to "Settings" -> "Tools" -> "Database" and have a look at the "Custom SQL parameters". You probably want to remove \:\w+, as it's probably triggered by your type cast. Have a look at the documentation for...

How to create a JavaFX Maven project in IntelliJ IDEA?

java,maven,intellij-idea,javafx

I recommend to not use IDEs like IntelliJ IDEA to do everything for the user. If you really want to create a project from scatch then please to so. Don't expect the IDE to do it for you. Create a pom.xml and fill it up without an IDE. (I recommend...

IntelliJ/Webstorm not finding import reference

javascript,intellij-idea,phpstorm,webstorm,ecmascript-6

I would very much suggest against using this style of import in JavaScript code. While potentially workable, relative paths are the defacto standard in all NodeJS code, and that has spread to essentially all JS code that uses module systems. In current systems, any path starting with . is relative,...

Why IDEA shows java files as invalid in my Android project?

java,android,intellij-idea

You need to specify the source dir. Right click on com's parent folder, then Mark directory as and sources root....

Install Ultimate edition IntelliJ plugins in Android Studio

android,intellij-idea,android-studio

As you stated, some plugins are only available in IntelliJ Ultimate, hence you cannot use them in IntelliJ Community, which Android Studio is based on. This is noted in the plugin.xml of the Database plugin: <depends>com.intellij.modules.ultimate</depends> That's why simply moving the plugin lib files won't help. A solution would be...

PlayFramework 2.4 and IntelliJ 14

java,scala,intellij-idea,playframework-2.4

The solution was to delete all .sbt, .ivy, .m2 folders in user home folder. Also I've removed SBT_HOME system variable. After that, IntelliJ was able to create valid project.

Removing warning messages on IntelliJ IDEA while building Java project

java,intellij-idea

Check java version in your pom.xml(here you can find how to do it). Also check java version in Project Structure. And the last what you can do - check compiler version e.g. ...

Why Intellij deletes obsolete files when trying to run DevMode?

java,gwt,intellij-idea

After sending a request to Intellij support team, they gave me the following answer: Adding the following two lines to the IDEA_HOME/bin/idea.properties file: idea.gwt.clear.unit.cache.before.run=false idea.gwt.clean.files.created.by.dev.mode=false Which makes sense, because the only thing I need is to prevent Intellij from deleting my local cached files. Problem solved....

JavaFX: Artifact displays empty window only

java,eclipse,intellij-idea,javafx

You didn't provide enough information to solve your problem, so here's an example that does work: Create a package application and put this class into it: application/Main.java package application; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.stage.Stage; public class Main extends Application { @Override public void start(Stage primaryStage)...

IntelliJ idea support for React.js

intellij-idea,intellij-13

React.js support is available in Idea 14. Do you have react.js available in your project? The normal way to get completion for API methods is providing the corresponding .js file to Idea - see http://blog.jetbrains.com/webstorm/2014/07/how-webstorm-works-completion-for-javascript-libraries/. Note also that you need to set JavaScript Language Version to 'JSX Harmony' in Settings/Languages&Frameworks/JavaScript...

Javac not compiling, caching old file, maybe?

java,intellij-idea,compilation

Assuming what you tell us is correct, it is running a FrequencyCounter class from somewhere else. The most likely thing is that your classpath is set to a directory or jar that already has a FrequencyCounter class in it, and it's running that.

IntelliJ plugin invoke rename refactoring

java,intellij-idea,intellij-plugin

Try this: RefactoringFactory.getInstance(project).createRename() ...

How to disable plugin suggestions in Intellij IDEA?

intellij-idea

Go to Settings > Appearance & Behavior and select No popup from a dropdown menu in the Plugins Suggestions group on the list.

How to check java compilation error in intellij

java,intellij-idea

To see a list of all files with compilation errors, click Project on the title bar of the Project tool window and, under Scopes, select Problems. The other alternative is to use the Problems tool window (View | Tool Windows | Problems). From 'IntelliJ IDEA Q&A for Eclipse Users':...

How to create .jar library from class in Intellij IDEA

java,intellij-idea,module,packages

I managed to get it--I had to go into Project Structure and set it to create a jar file containing my compiled .class file upon build. Then I could add the jar file as an external library in my other projects. Thanks guys for the replies.

Intellij remote tomcat print to console

intellij-idea,console,tomcat7

I found 2 solutions for my problem: 1) Use the intellij local run configuration 2) Instead of System.out.println() use log() to write to the catalina log file.

IntelliJ correctly using Libraries

java,intellij-idea,jar

Go to Project Structure (Ctrl + Shift + Alt + S) > Artifacts > + > Jar > From Modules with dependencies Select your module and the main class. Select Extract to the target JAR if you want to bundle all your libraries into one file. Close the dialog and...

Spring Data neo4j JUnit4 setup

intellij-idea,gradle,neo4j,junit4,spring-data-neo4j-4

You can use an InProcessServer which is an in-memory database: @Bean public Neo4jServer neo4jServer() { return new InProcessServer(); } Omit the session scope as your test isn't running in a web container. An example: https://github.com/neo4j-examples/sdn4-cineasts/blob/4.0-RC1/src/test/java/org/neo4j/cineasts/PersistenceContext.java This will require dependencies as described in this question: Spring Data Neo4j 4.0.0.M1 Test Configuration...

How to keep IntelliJ IDEA from rearranging javadoc tags?

intellij-idea,javadoc,intellij-idea-14

You can uncheck Enable JavaDoc formatting in Settings/Code Style/Java/JavaDoc, which should fix the problem. However this means that no other formatting will be performed (wrapping, alignining, etc). I haven't found a way to disable just the rearranging of tags....

Simple JavaEE HTML GET/POST application

java,java-ee,intellij-idea,glassfish,jax-rs

You need to configure Jersey (the JAX-RS implementation in Glassfish) in your web.xml. You currently only have JSF configuration <servlet> <servlet-name>jersey-serlvet</servlet-name> <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> <init-param> <param-name>jersey.config.server.provider.packages</param-name> <param-value>the.package.where.your.resources.are</param-value> </init-param>...

Play Framework 2.4 @routes.WebJarAssets.at Compilation Error in IntelliJ IDEA 14.1.3

scala,intellij-idea,playframework,intellij-idea-14,playframework-2.4

As far as I can see IDEA 14.1.3 Scala/Play plug-in doesn't support the InjectedRoutesGenerator that is the default routesGenerator starting with Play 2.4. webjars-play's 2.4.0-1 WebJarAssets controller implements this injection mechanism. See a similar bug report at JetBrains that probably has the same cause. You could use the regular Assets...

Java - duplicate case label

java,intellij-idea,switch-statement

Thanks to Makoto's comment, I set the default encoding of this particular file (not just the IDE and Project Encoding) to UTF-8 and this fixed the problem.

Unable to run Java code with Intellij IDEA

java,intellij-idea

Move your code inside of the src folder. Once it's there, it'll be compiled on-the-fly every time it's saved. IntelliJ only recognizes files in specific locations as part of the project - namely, anything inside of a blue folder is specifically considered to be source code. Also - while I...

IntelliJ: Is there an Intention Action to convert old style Log4J calls to new style SLF4J calls?

java,intellij-idea,slf4j,intellij-idea-14

Have you tried the Java | Logging issues | Non-constant string concatenation as argument to logging call inspection? It has a quickfix to automatically convert a string concatenation to a parameterized log message.