Posts Tagged ‘Intellij IDEA’

15 10 2011

MAC OS 苹果上 PhpStorm/Intellij IDEA不能输入中文的解决

bigCat Posted in NoteBook - 0 Comment


Mac OS X 上PhpStorm 不能输入中文的解决\r\n\r\n看到Netbeans上类似问题的解决办法:\r\n\r\n修改文件\r\n\r\n/Applications/netbeans/NetBeans 6.7.1/Content/Resource/netbeans/etc/netbeans.conf\r\n\r\nnetbeans_default_options 里加入\r\n\r\\r\n\r\n受到启发,找到PhpStorm的启动文件:/Applications/PhpStorm\r\n\r\n在 REQUIRED_JVM_ARGS 参数里同样加上\r\n\r\n可以输入中文了!
30 04 2011

Install Sun Java Runtime (JRE) in Ubuntu 11.04 via PPA

bigCat Posted in Linux - 3 Comments\r\n\r\nUbuntu Maverick Image\r\n\r\nThis simple tutorial shows you how to install Sun Java Runtime Environment (JRE) in Ubuntu 11.04 Natty Narwhal via PPA. If you have upgraded to Ubuntu 11.04 and Java is not installed, follow this tutorial to install it. Java is normally installed via Ubuntu Partner repository, but at the time of this writing, Ubuntu Partner repository wasn’t available in Natty. This is a work-around and should get you the latest version of Java in Ubuntu.\r\n\r\n \r\n\r\nGetting started:\r\n\r\n \r\n\r\nTo get started, click on ‘Power –> System Settings’\r\n\r\n \r\n\r\nnatty_java_5\r\n\r\n \r\n\r\nNext, select ‘System –> Ubuntu Software Center’\r\n\r\n \r\n\r\nnatty_java_1_3\r\n\r\n \r\n\r\nThen select ‘Edit –> Software Sources’\r\n\r\n \r\n\r\nnatty_java_2_3\r\n\r\n \r\n\r\nNext, select ‘Other Software’ and click ‘Add’. Then type type line below into the box and click ‘Add Source’\r\n


\r\n\r\nnatty_java_3_3\r\n\r\n \r\n\r\nBack into Software Center search for and install ‘sun-java6-jre’\r\n


\r\n\r\nnatty_java_4_3\r\n\r\n \r\n\r\nEnjoy!

17 04 2011

How to put IntelliJ IDEA on Ubuntu

bigCat Posted in Linux - 0 Comment\r\n\r\n \r\n\r\nI’ve been a user of the excellent IntelliJ Java IDE for 4 years on Windows. Even though the official Linux support by JetBrains is only for RedHat, you can also install IntelliJ fairly easily on Ubuntu. I’ve tested this with Xubunto 7.10 (Gutsy), Java 6, and IntelliJ 7. Here’s how to do it in four basic steps:\r\n\r\n1) Get Java \r\n\r\nInstall the Java 6 JDK, which IDEA itself needs to run. (You can have other JDKs for your projects, but you’ll need this one to run IntelliJ itself.) For example, type this in a terminal:\r\n

sudo apt-get install sun-java6-jdk

\r\nFollow the prompts for root password, download confirmation, and eventually the Sun EULA to install Java itself. If it installed successfully, you should be able to type this at a prompt:\r\n

java -version

\r\n… to get several lines telling you the version of Java you have installed. If this doesn’t work, refer to Sun’s documentation on troubleshooting installations.\r\n\r\n2) Get IntelliJ IDEA \r\n\r\nDownload the latest version of IntelliJ IDEA for Linux:\r\n\r\n\r\n\r\nOnce the download is finished, extract the archive using the correct filename according to your download. For example, to install IntelliJ in /usr/lib, do the following:\r\n

tar xfz idea-7.0.1.tar.gz ./usr/lib/

\r\nThe IntelliJ installation will now be in a subdirectory indicating the build number, in the format “idea-xxxx”. In the case of IDEA 7.0.1, the app directory is “idea-7364“. (Once the extraction is done, you can delete the downloaded archive to conserve disk space if needed.)\r\n\r\n3) Get Environmental \r\n\r\nThere are a couple of environment variables to be taken care of. First, you need to set a new environment variable that tells IntelliJ where your install of Java is. For example:\r\n

export JDK_HOME="/usr/lib/jvm/java-6-sun/"

\r\nUse the “env” command, or just “echo $JDK_HOME“, to verify the variable is set.\r\n\r\nNext, you’ll need to edit /etc/environment with superuser rights in the editor of your choice, adding the idea-xxxx/bin directory to your PATH variable. For example, you can edit the environment with the GUI mousepad editor like so:\r\n

sudo mousepad /etc/environment

\r\nThe various directories in the environment PATH variable are delineated by colons (:). Append the current value (inside the quotes) with a new colon and then add the idea-xxxx/bin location. It should look something like this:\r\n


\r\nSave and close the environment file. You’ll need to “source” it for your system to pick up the new directory in the PATH. You can verify your changes by echoing the variable as well:\r\n

source /etc/environment


echo $PATH

\r\nIf you see the path to IntelliJ returned in the output, you’re all set.\r\n\r\nLastly, you may want to change the VM settings of IntelliJ. This depends entirely on your project size and other factors, so you’ll need to base these settings on your own need. The settings are in idea-xxx/bin/idea.vmoptions.\r\n\r\n4) Get Started!\r\n\r\nThat’s it. Now you can run “” from a terminal in any directory, and IntelliJ should launch…\r\n

\r\nIf you run into problems, be sure to double-check the readme files in the installation directory.\r\n\r\nGive Back\r\n\r\nIf this article proved useful to you, please drop us a comment and let us know. Or, if you find problems/alternate solutions along the way, please share them for the benefit of others. Thanks and happy coding!

27 06 2010

ubuntu 10.04 安装 Sun Java jdk

bigCat Posted in Linux - 0 Comment

ubuntu 10.04 去掉了sun-jdk 并推荐用openjdk\r\n\r\n但是 Intellij IDEA 不推荐openjdk,所以偶还是要用sun-jdk\r\n\r\n\r\nsudo add-apt-repository "deb lucid partner"\r\nsudo apt-get update\r\n\r\n\r\nSynaptic Package Manager里就能搜到jdk了\r\nsudo gedit /etc/environment\r\n\r\n在 environment中修改如下信息:\r\nPATH="/home/damao/Programs/idea/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-6-sun/bin"\r\nJAVA_HOME="/usr/lib/jvm/java-6-sun"\r\nCLASSPATH=".:/usr/lib/jvm/java-6-sun/lib"\r\nJDK_HOME="/usr/lib/jvm/java-6-sun"\r\n\r\nJDK_HOME这个是Intellij IDEA要用的,和JAVA无关\r\n\r\n由 于ubuntu中有默认jdk还需要执行如下工作\r\n执行\r\n代码:\r\nsudo update-alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_20/bin/java 300\r\nsudo update-alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_20/bin/javac 300\r\n\r\n将我们安装的JDK加入java选单\r\n\r\nsudo update-alternatives --config java\r\n\r\n设置系统默认的JDK\r\n\r\njava -version

Host: (miao) | Word: Press | Code: HTML5