ubuntu12.04
解決eclipsemaven 和 svn安裝
http://www.cnblogs.com/icerainsoft/articles/2267958.html
maven安裝配置/etc/profile
#JDK CONFIGURE
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_65
export JRE_HOME=/usr/lib/jvm/jdk1.7.0_65/jre
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$PATH
#MAVEN CONFIURE
export M3_HOME=/home/rt/bin/apache-maven
export M3=$M3_HOME/bin
export MAVEN_OPTS="-Xms256m -Xmx512m"
export PATH=$M3:$PATH
然後:
source /etc/profile
提示沒有權限執行:mvn -version
sudo chmod -R 755 apache-maven
不行的話,儘量加大 bin ,apache-maven源目錄的權限
注:
jdk是 jdk1.7.0_65
maven是 /home/username/bin/apache-maven
apache-maven是我指向apache-maven-3.2的鏈接
sudo ln -s apache-maven-3.2 apache-maven
1 實現單機啓動
在 /usr/share/applications 下新建idea.desktop,粘貼如下代碼
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=IntelliJ IDEA
GenericName=Java IDE
Comment=IntelliJ IDEA is a code-centric IDE focused on developer productivity. The editor deeply understands your code and knows its way around the codebase, makes great suggestions right when you need them, and is always ready to help you shape your code.
Exec=/home/rt/mysoft/idea-IU-135.909/bin/idea.sh
Icon=/home/rt/mysoft/idea-IU-135.909/bin/idea.png
Terminal=false
Type=Application
Categories=Development;IDE
這兩句對應我的安裝目錄
Exec=/home/rt/mysoft/idea-IU-135.909/bin/idea.sh
Icon=/home/rt/mysoft/idea-IU-135.909/bin/idea.png
2首次使用svn不能用
Cannot load supported formats: Cannot run program "svn": CreateProcess error=2, μ
win7: a安裝svn客戶端 b取消file--settings--Version Control--Subversion--取消掉General所有選項ubuntu: sudo apt-get install subversion 即可
3 顯示project和maven的目錄:左下角就是
4 Tools-->test restful...可以進行Post 和get測試
5 intellij的 vcs同步失敗,錯誤提示如下。
GNOME keyring [(null)] 的密碼:
svn: 方法 OPTIONS 失敗於 “http://xxxxxxxx/svn”: 認證失敗: 不能認證到服務器: 被拒絕的 Basic 挑戰
原來ubuntu默認啓用了密碼環,解決辦法有二:
a 刪除$HOME/.gnome2/keyring目錄
b在菜單“系統”-》“首選項“-》”密碼和加密密鑰“中刪除login
6 文件頭的註釋
file--setting--file and code Templates
右邊的including
Navicat
插入數據的時候顯示:
僅當使用了列的列表,並且 IDENTITY_INSERT 爲 ON 時,才能在表 'dali' 中爲標識列指定顯式值
比如第一個數字id是自增的,insert的時候忽略id。insert table values(0x,'doc','tony')
win7
安裝:intellij
jdk:
JAVA_HOME C:\Program Files\Java\jdk1.7.0_65
CLASSPATH .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;
java %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
maven
M2_HOME C:\maven\apache-maven-3.2.2
path %M2_HOME%\bin;