This page (revision-61) was last changed on 24-Sep-2019 16:53 by Albrecht Striffler

This page was created on 29-Jan-2014 10:44 by Albrecht Striffler

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
61 24-Sep-2019 16:53 11 KB Albrecht Striffler to previous

Page References

Incoming links Outgoing links
IntelliJ FAQ ...nobody

Version management

Difference between version and

At line 5 added 6 lines
!!IntelliJ does not start with OSX Yosemite (no Java 1.6 installed)
With version Yosemite, OSX no longer bundles Java 1.6. Because of that, we have to tell IntelliJ to use the Java 1.8 (or newer) runtime instead. The best way to do this is to put a file "idea.properties" into the directory {{~/Library/Preferences/IntelliJXX/}}, specifying the correct runtime. You can also specify other properties like console buffer size and so forth. Your properties file could look like this: [idea.properties]. It's also ok to just use this file.
At line 10 changed one line
* (select no archetype if asked)
* select no archetype when asked
At line 22 added one line
At line 18 changed one line
Download the attached [code_styles.jar] and import them with File -> Import settings.
Download the attached [code_styles.jar] and import them with File -> Import settings.\\
\\
Also, under Settings, go to "File and Code Templates" (use search bar in Settings) and in the tab "Includes" adapt your File Header. Instead of the "Created by ... on... " use the following:
At line 29 added 8 lines
%%prettify
{{{/**
* @author Your Name (optionally your company)
* @created ${DATE}
*/}}}
At line 21 removed one line
Download the attached [copyright.txt] and add it the following way:
At line 39 added 2 lines
Download the attached [copyright.txt] and copy its content to a newly created profile (in Copyright Profiles) and assign it as default copyright:
At line 45 added one line
!! IntelliJ Inspections
At line 47 added 3 lines
Check out the following How-To page: [How-To IntelliJ Inspections]
At line 54 added one line
At line 69 added one line
At line 71 added one line
At line 78 added one line
At line 80 added one line
At line 91 added one line
At line 93 added one line
At line 95 added 2 lines
At line 98 added one line
At line 116 added one line
At line 118 added one line
At line 129 added one line
At line 144 added 6 lines
At line 160 added one line
At line 166 added one line
At line 168 added one line
At line 181 added one line
%%warning There currently seems to be a problem with the eclipse compiler option using Java 8. If you are getting an error like "Error:java: source level should be comprised in between '1.3' and '1.7' (or '5', '5.0', ..., '7' or '7.0'): 8", switch back to Javac again.
At line 184 added one line
!!Java dock entries on OSX
At line 186 added one line
To remove the dock entries that IntelliJ spawns when compiling or running Tomcat, append {{-Dapple.awt.UIElement=true}} to your Java VM options.
At line 189 added one line
!!Migrating to Java 8 and JSPWiki 2.10
At line 191 added one line
Since the end of July, we migrated KnowWE to now use JSPWiki 2.10, Java 8 and Tomcat 8. Follow this section to migrate your own workspace/project in IntelliJ:
At line 193 added 3 lines
# Install JDK 8 and add and set it as the default in your JDK. In IntelliJ, go to File -> Project Structure... -> SDKs and add the JDK 8. Under Project also in Project Structure..., set it as the default.
# Download the current Tomcat 8 as the zip version. Unzip it analogous to your Tomcat 6 and set it your Tomcat configurations in IntelliJ.
#jspwiki.properties is now jspwiki-custom.properties. Instead of in local/WEB-INF/ it is now in local/WEB-INF/classes/. It has basically the same content as before, but you should nevertheless start again from the .default file and just migrate your individual settings like var.basedir to the new file.
At line 198 added one line
!!Java 8 and JSPWiki 2.10 issues
At line 201 added one line
!Java source level error
At line 203 added one line
If you get an error like:
At line 205 added 3 lines
{{{
"Error:java: source level should be comprised in between '1.3' and '1.7' (or '5', '5.0', ..., '7' or '7.0'): 8"
}}}
At line 209 added one line
you have to switch back to Javac as the compiler again. More info at [IntelliJ FAQ#View all compile errors of the project/workspace]
At line 211 added 19 lines
!SecurityManager/jspwiki.policy issues
If you have an error with content like
{{{
"Failed to start managers: File /IntelliJ%20Workspaces/denkbares/KnowWE-App/target/KnowWE-App-0.2-SNAPSHOT/WEB-INF/jspwiki.policy does not exist, or the SecurityManager prohibited access to it."
}}}
your problem is very likely a whitespace in the path to the jspwiki.policy file. The SecurityManager of JSPWiki 2.10 does not like that.
If the whitespace is in your workspace folder name, you can close IntelliJ, rename the folder, open IntelliJ again and then choose the new folder in the welcome splash screen after clicking "Open Project".
!Error with com.ecyrd.jspwiki....
If you get (class loading) exceptions involving the old pre 2.9. JSPWiki package naming while starting ab KnowWE, you most likely are dealing with one of the following issues:
# You are trying to start KnowWE with an old pre 2.9 JSPWiki plugin like the TablePlugin. Update or remove these plugins in your dependencies.
# There are leftover files in your workspace containing the old JSPWiki code with the wrong package names. Do a "Find in path" with "ecyrd" to quickly find them. Most likely you can delete or update them. In case the files are in one of the "Overlay" folders in KnowWE-Resources or KnowWE-App, you can delete them. Do a maven build afterwards.