Install IntelliJ on Ubuntu

Refer: https://www.jetbrains.com/help/idea/installation-guide.html#

Install the Toolbox App or use Snap instead

Download the tarball .tar.gz from the Toolbox App web page.

Refer: https://www.jetbrains.com/toolbox/app/

Extract the tarball to a directory that supports file execution.

For example, to extract it to the recommended /opt directory, run the following command:

$ sudo tar -xzf jetbrains-toolbox-1.13.4801.tar.gz -C /opt

Execute the jetbrains-toolbox binary from the extracted directory to run the Toolbox App and select which product and version you want to install. After you run the Toolbox App for the first time, it will automatically add the Toolbox App icon to the main menu.

$ sudo snap install intellij-idea-ultimate --classic
$ sudo snap install intellij-idea-community --classic

Refer: https://www.jetbrains.com/help/idea/uninstall.html#

$ sudo snap remove intellij-idea-ultimate
$ sudo snap remove intellij-idea-community

IntelliJ Optimize Imports

Update: in IDEA 13 "Use single class import" does not prevent wildcard imports. The solution is to go to Preferences ( + , on macOS / Ctrl + Alt + S on Windows and Linux) > Editor > Code Style > Java > Imports tab set Class count to use import with '*' and Names count to use static import with '*' to a higher value. Any value over 99 seems to work fine.

Struts2Action with Tomcat and Eclipse

Tomcat

You will need to add the following XML entry in order to use Tomcat Manager
/conf/tomcat-users.xml
<tomcat-users>
<role rolename="manager"/>
<user username="tomcat" password="tomcat" roles="manager"/>

You can use the XAMPP MySQL engine by making the following changes.
/WEB-INF/applicationContext.xml
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="org.gjt.mm.mysql.Driver" />
<property name="url" value="jdbc:mysql://127.0.0.1:3306/manning" />
<property name="username" value="root" />
<property name="password" value="root" />
</bean>

Point to a JDK of your choice and use the JAVA_OPTS variable to allow debugging in Eclipse.
/bin/startup.bat
SET JAVA_HOME=C:\java\jdk1.6.0_17
SET JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

Eclipse

Add jar files for build from the following:

  • C:\tomcat\lib
  • C:\tomcat\webapps\Struts2InAction\WEB-INF\lib

Installing NetBeans without JDK 1.5+

Get the current JDK flavor you want, and you will need to start the program the following way:
C:
CD "C:\Java\NetBeans 6.7\NetBeans 6.7\bin"
netbeans.exe --jdkhome "C:\Java\jdk1.6.0_14"

The --jdkhome switch is the "special sauce" that makes it work.