顯示具有 Netbeans 標籤的文章。 顯示所有文章
顯示具有 Netbeans 標籤的文章。 顯示所有文章

2014年9月26日

開發GAE(Google App Engine)專安在Netbeans上

1.下載Google App Engine SDK

https://cloud.google.com/appengine/downloads?hl=zh-Tw

2.參考Google App Engine on Netbeans 8這篇文章
  1. Download the zipped file for Netbeans 7.4 from the Gaelyk download page.
  2. Extract the zip file into some directory.
  3. In Netbeans 8.0, follow to menu “Tools”, “Plugins”. And within the dialog, to “Downloaded” tab. Click “Add Plugin” and browse to the folder.
  4. Select all .nbm files and confirm.
  5. Watch out, don’t close the dialog! Instead, click on the small “Install” button at the left bottom corner.
  6. Go through the Wizard, confirm license, confirm “plugins not signed” warning and go on.
  7. Now you may close the dialog.
  8. Restart Netbeans.
Now, its time to configure the Google App Engine server.

  1. Open the “Services” window.
  2. Right click the “Servers” entry, select “Add server”.
  3. Go through the Wizard, select “Google App Engine”, browser to the directory where you previously unzipped it,  confirm ports and DataNucleus.


DONE!


可能遇到的問題:
1.找不到javac.exe,無法run 本機Google App Engine伺服器
2.找不到class
3.無法上傳到Google App Engine
4.email密碼驗證不過

1, 2. 的解決方式,是將環境變數中的PATH與CLASSPATH明確指定到jdk的 bin與lib下

3.的原因有幾種,若是path的問題可用上面的方式解決,但另外可能是JRE的衝突(  JRE會鎖定JAVA_HOME的路徑,導致專案無法編譯上傳,所以若設定Path後仍無法解決, 可以採取移除JRE的方式就可以解決)
若不想移除JRE,是打開Google App Engine Jave SDK套件裡的appcfg.cmd檔 (位在 appengine-java-sdk-1.3.0\bin )
原始appcfg.cmd開頭內容為
@java -cp "%~dp0\..\lib\appengine-tools-api.jar" com.google.appengine.tools.admin.AppCfg %*

請修改為直接指定你的java.exe檔,若安裝位址在C:\Program Files\Java\jdk1.6.0_12\bin,
則可改寫如下:
@"C:\Program Files\Java\jdk1.6.0_12\bin\java" -cp "%~dp0\..\lib\appengine-tools-api.jar" com.google.appengine.tools.admin.AppCfg %*

4.啟用安全性較低的應用程式存取權限 https://www.google.com/settings/security/lesssecureapps

2014年6月17日

用netbeans xsd→xml

  1. Click New File on the tool bar or File > New File from the menu
  2. Choose XML > XML Document
  3. Name your file, click next
  4. Choose XML Schema-Constrained Document, click next
  5. Click the Browse button and use By File to navigate to the .xsd
  6. Click the Import check box beside the file name, click next
  7. Review the options available and click Finish to generate


http://stackoverflow.com/questions/7811715/use-netbeans-to-create-sample-xml-from-xsd

2014年6月4日

netbeans+Subversion

org.apache.subversion.javahl.ClientException: E155021: This client is too old to work with the working copy at
'[project]' (format '31').
We strongly recommend to either install a newer Subversion client or downgrade your working copy.
Any local changes might corrupt your working copy and some file operations as copying, renaming and deleting will not work correctly.

↑↑==

解法:

1.下載Slik Subversion Client

2.open Netbeans and go to Tools > Options > Misc > Versioning > Subversion. At the top of the dialog window change the Preferred client from SvnKit to CLI.


3. click the Browse... button and select the Slik Subversion Client svn.exe file.



done


2014年6月3日

[IDE] NetBeans 字太小 (不是程式碼 是選單)調大字型

在捷徑後面加上【 --fontsize 字size】 有空格!
ex:
"C:\Program Files\NetBeans 7.3\bin\netbeans64.exe" --fontsize 16