当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 5 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 求助 关于Eclipse3.2.2的配置
帖子发表于 : 2009-09-30 18:11 

注册: 2009-09-30 18:03
帖子: 1
送出感谢: 0 次
接收感谢: 0 次
大家好,小弟刚刚开始转向linux开发
在新立得软件包里装了Eclipse

打开Eclipse后,不能新建任何文件
Source Folder那里也不可以编辑
请问新装Eclipse后,要如何配置?
谢谢大家了


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 求助 关于Eclipse3.2.2的配置
帖子发表于 : 2009-10-10 16:46 

注册: 2008-09-06 6:54
帖子: 6
地址: 唐山
送出感谢: 0 次
接收感谢: 0 次
库里的eclipse版本底了些,可以去eclipse官网去载最新的版本试试
http://www.eclipse.org/downloads/


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 求助 关于Eclipse3.2.2的配置
帖子发表于 : 2009-11-01 10:24 

注册: 2009-09-15 21:51
帖子: 17
送出感谢: 0 次
接收感谢: 0 次
1.安装java
可以通过新立得安装最新版本java-6-sun版本
装完后,可以用java -version测试一下
2、下载linux的eclipse
目前最新版本是3.5,个人当初为了与Myeclipse7.1匹配,下载了3.4 32位的版本,具体下载地址如下:
linux32的下载地址:
http://www.eclipse.org/downloads/downlo ... gtk.tar.gz
linux64位下载地址:
http://www.eclipse.org/downloads/downlo ... _64.tar.gz
解压下载的文件到任意目录。
3、安装J2ME插件有两种方法:
1、打开eclipse,help->Software Updates->Add Site
输入http://eclipseme.org/updates,于是左边栏就会添加一项http://eclipseme.org /updates,选中左面的复选框,待全部展开后,将子项也选上,单击右面的Install,接受许可协议,ok,重启eclipse,重启 eclipse。测试一下安装好了没,PackageExplorer视图中,右键,New->Other->J2ME,是不是出现两个选项,J2ME Midlet和J2ME Midlet Suite,表明eclipseme已经装好了
2、下载一个site包:
1).http://downloads.sourceforge.net/eclips ... g_mirror=0
网上下载下来更新包,放在任意位置,打开eclipse,help->Software Update->Add Site->Archive,找到下载下来的eclipseme.feature_1.7.9_site.zip,打开,默认安装就行了
2)。解压缩site包,把plugins和features下的文件拷到eclipse下相应的目录中,重启eclipse即可。

4、接下来下载sun的WTK(wireless tookit)
https://cds.sun.com/is-bin/INTERSHOP.en ... _Developer

终端命令:
1).进入bin所在目录
2).执行命令:sudo chmod +x /usr/local/sun_java_wireless_toolkit-2_5_2-ml-linux.bin
(给当前用户增加对.bin文件运行的权限)

3).执行命令:sudo ./sun_java_wireless_toolkit-2_5_2-ml-linux.bin (进行安装)
sudo rm sun_java_wireless_toolkit-2_5_2-ml-linux.bin (删除安装文件)

还要注意的是:如果发现在安装后,运行WTK出现假死的问题。则需要重装来指定一下jdk的路径。
也就所在安装信息的如下选项中:

A suitable Java interpreter was detected
0) Use /usr/X11R6/bin/
1) Specify a path to a Java interpreter directory.
2) Cancel this installation.
Select a choice [0-2]: 0

Please enter a directory into which you would like to install the Sun Java(TM) Wireless Toolkit, 2.5.2 for CLDC.
[ default is /usr/local/WTK2.5.2 ]: /usr/lib/jvm/java-6-sun/bin/(具体路径,请按照自身的实际情况设置)

当然,如果不想重装,可以采用临时的解决方案:修改ktoolbar 和emulator
在终端中输入:
cd /usr/local/WTK2.5.2/bin
sudo gedit ktoolbar
把javapathtowtk项修改为:
javapathtowtk=/usr/lib/jvm/java-6-sun/bin/
同理:
sudo gedit emulator
把javapathtowtk项修改为:
javapathtowtk=/usr/lib/jvm/java-6-sun/bin/
6、将eclipseme关联WTK
打开eclipse,接下来左面的 J2ME->Device Management,右面的import,Browse,找到安装WTK的根目录(我的是/usr/shared/lib/jvm/java-6- sun/bin/bin),ok,Refresh,等待检测找到支持的所有硬件,选中以后,finish,Apply,ok

7、常见错误
应用WTK及其模拟器采用了Java中的 UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); 语句来使用系统自身的lookandfeel,而Ubuntu系统中没有安装对应的主题导致的错误
首先找到你的WTK的安装目录,在bin中找到ktoolbar和emulator这两个文件,这两个是启动WTK和Emulator的两个启动文件,使用vi或者gedit来对这两个文件进行编辑,在两个文件中的相关位置添加如下一行即可:
Java代码

1. -Dswing.systemlaf="javax.swing.plaf.metal.MetalLookAndFeel" \

-Dswing.systemlaf="javax.swing.plaf.metal.MetalLookAndFeel" \


添加后的ktoolbar如下:
Javal代码 <embed height="15" width="14" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowscriptaccess="always" quality="high" flashvars="clipboard=%23!%2Fbin%2Fsh%0A%0Ajavapathtowtk%3D%2Fusr%2Fjava%2Fjdk1.6.0_05%2Fbin%2F%0A%0APRG%3D%240%0A%0A%23%20Resolve%20soft%20links%0Awhile%20%5B%20-h%20%22%24PRG%22%20%5D%3B%20do%0A%20%20%20%20ls%3D%60%2Fbin%2Fls%20-ld%20%22%24PRG%22%60%0A%20%20%20%20link%3D%60%2Fusr%2Fbin%2Fexpr%20%22%24ls%22%20%3A%20'.*-%3E%20(.*)%24'%60%0A%20%20%20%20if%20%2Fusr%2Fbin%2Fexpr%20%22%24link%22%20%3A%20'%5E%2F'%20%3E%20%2Fdev%2Fnull%202%3E%261%3B%20then%0A%20%20%20%20%20%20%20%20PRG%3D%22%24link%22%0A%20%20%20%20else%0A%20%20%20%20%20%20%20%20PRG%3D%22%60%2Fusr%2Fbin%2Fdirname%20%24PRG%60%2F%24link%22%0A%20%20%20%20fi%0Adone%0A%0AKVEM_BIN%3D%60dirname%20%24PRG%60%0AKVEM_HOME%3D%60cd%20%24...%7BKVEM_BIN%7D%2F..%20%3B%20pwd%60%0AKVEM_LIB%3D%22%24%7BKVEM_HOME%7D%2Fwtklib%22%0AKVEM_API%3D%22%24%7BKVEM_HOME%7D%2Flib%22%0Aexport%20MMAPI_GM_SOUNDBANK%3D%22%24%7BKVEM_API%7D%2Fsoundbank.dls%22%0A%0A%22%24%7Bjavapathtowtk%7Djava%22%20-Dkvem.home%3D%22%24%7BKVEM_HOME%7D%22%20%5C%0A%20%20%20%20-Djava.library.path%3D%22%24%7BKVEM_HOME%7D%2Fbin%22%20%5C%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%20%20%20-Dswing.systemlaf%3D%22javax.swing.plaf.metal.MetalLookAndFeel%22%20%5C%20%20%20%20%23%23%23%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%20%20%20%20-cp%20%22%24%7BKVEM_LIB%7D%2Fkenv.zip%3A%24%7BKVEM_LIB%7D%2Fktools.zip%3A%24%7BKVEM_BIN%7D%2FJadTool.jar%3A%24%7BKVEM_BIN%7D%2FMEKeyTool.jar%3A%24%7BKVEM_LIB%7D%2Fcustomjmf.jar%3A%24%7BKVEM_API%7D%2Fj2me-ws.jar%3A%24%7BKVEM_BIN%7D%2Fschema2beansdev.jar%3A%24%7BKVEM_BIN%7D%2Fj2me_sg_ri.jar%3A%24%7BKVEM_BIN%7D%2Fjaxrpc-impl.jar%3A%24%7BKVEM_BIN%7D%2Fjaxrpc-api.jar%3A%24%7BKVEM_BIN%7D%2Fjaxrpc-spi.jar%3A%24%7BKVEM_BIN%7D%2Factivation.jar%3A%24%7BKVEM_BIN%7D%2Fmail.jar%3A%24%7BKVEM_BIN%7D%2Fsaaj-api.jar%3A%24%7BKVEM_BIN%7D%2Fsaaj-impl.jar%3A%24%7BKVEM_BIN%7D%2Fxsdlib.jar%3A%24%7BKVEM_LIB%7D%2Fnist-sip-1.2.jar%3A%24%7BKVEM_LIB%7D%2FJainSipApi1.1.jar%3A%24%7BKVEM_LIB%7D%2Fjain-sip-presence-proxy.jar%22%20%0A%20%20%20%20com.sun.kvem.toolbar.Main%20%22%24%40%22" src="http://ganshisheng.javaeye.com/javascripts/syntaxhighlighter/clipboard_new.swf">

1. #!/bin/sh
2.
3. javapathtowtk=/usr/java/jdk1.6.0_05/bin/
4.
5. PRG=$0
6.
7. # Resolve soft links
8. while [ -h "$PRG" ]; do
9. ls=`/bin/ls -ld "$PRG"`
10. link=`/usr/bin/expr "$ls" : '.*-> (.*)$'`
11. if /usr/bin/expr "$link" : '^/' > /dev/null 2>&1; then
12. PRG="$link"
13. else
14. PRG="`/usr/bin/dirname $PRG`/$link"
15. fi
16. done
17.
18. KVEM_BIN=`dirname $PRG`
19. KVEM_HOME=`cd $...{KVEM_BIN}/.. ; pwd`
20. KVEM_LIB="${KVEM_HOME}/wtklib"
21. KVEM_API="${KVEM_HOME}/lib"
22. export MMAPI_GM_SOUNDBANK="${KVEM_API}/soundbank.dls"
23.
24. "${javapathtowtk}java" -Dkvem.home="${KVEM_HOME}" \
25. -Djava.library.path="${KVEM_HOME}/bin" \
26. ##########################################################
27. -Dswing.systemlaf="javax.swing.plaf.metal.MetalLookAndFeel" \ ###
28. ##########################################################
29. -cp "${KVEM_LIB}/kenv.zip:${KVEM_LIB}/ktools.zip:${KVEM_BIN}/JadTool.jar:${KVEM_BIN}/MEKeyTool.jar:${KVEM_LIB}/customjmf.jar:${KVEM_API}/j2me-ws.jar:${KVEM_BIN}/schema2beansdev.jar:${KVEM_BIN}/j2me_sg_ri.jar:${KVEM_BIN}/jaxrpc-impl.jar:${KVEM_BIN}/jaxrpc-api.jar:${KVEM_BIN}/jaxrpc-spi.jar:${KVEM_BIN}/activation.jar:${KVEM_BIN}/mail.jar:${KVEM_BIN}/saaj-api.jar:${KVEM_BIN}/saaj-impl.jar:${KVEM_BIN}/xsdlib.jar:${KVEM_LIB}/nist-sip-1.2.jar:${KVEM_LIB}/JainSipApi1.1.jar:${KVEM_LIB}/jain-sip-presence-proxy.jar"
30. com.sun.kvem.toolbar.Main "$@"

#!/bin/sh javapathtowtk=/usr/java/jdk1.6.0_05/bin/ PRG=$0 # Resolve soft links while [ -h "$PRG" ]; do ls=`/bin/ls -ld "$PRG"` link=`/usr/bin/expr "$ls" : '.*-> (.*)$'` if /usr/bin/expr "$link" : '^/' > /dev/null 2>&1; then PRG="$link" else PRG="`/usr/bin/dirname $PRG`/$link" fi done KVEM_BIN=`dirname $PRG` KVEM_HOME=`cd $...{KVEM_BIN}/.. ; pwd` KVEM_LIB="${KVEM_HOME}/wtklib" KVEM_API="${KVEM_HOME}/lib" export MMAPI_GM_SOUNDBANK="${KVEM_API}/soundbank.dls" "${javapathtowtk}java" -Dkvem.home="${KVEM_HOME}" \ -Djava.library.path="${KVEM_HOME}/bin" \ ########################################################## -Dswing.systemlaf="javax.swing.plaf.metal.MetalLookAndFeel" \ ### ########################################################## -cp "${KVEM_LIB}/kenv.zip:${KVEM_LIB}/ktools.zip:${KVEM_BIN}/JadTool.jar:${KVEM_BIN}/MEKeyTool.jar:${KVEM_LIB}/customjmf.jar:${KVEM_API}/j2me-ws.jar:${KVEM_BIN}/schema2beansdev.jar:${KVEM_BIN}/j2me_sg_ri.jar:${KVEM_BIN}/jaxrpc-impl.jar:${KVEM_BIN}/jaxrpc-api.jar:${KVEM_BIN}/jaxrpc-spi.jar:${KVEM_BIN}/activation.jar:${KVEM_BIN}/mail.jar:${KVEM_BIN}/saaj-api.jar:${KVEM_BIN}/saaj-impl.jar:${KVEM_BIN}/xsdlib.jar:${KVEM_LIB}/nist-sip-1.2.jar:${KVEM_LIB}/JainSipApi1.1.jar:${KVEM_LIB}/jain-sip-presence-proxy.jar" com.sun.kvem.toolbar.Main "$@"


修改后的emulator文件内容如下:
Javal代码 <embed height="15" width="14" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowscriptaccess="always" quality="high" flashvars="clipboard=%23!%2Fbin%2Fsh%0A%0Ajavapathtowtk%3D%2Fusr%2Fjava%2Fjdk1.6.0_05%2Fbin%2F%0A%0APRG%3D%240%0A%0A%23%20Resolve%20soft%20links%0Awhile%20%5B%20-h%20%22%24PRG%22%20%5D%3B%20do%0A%20%20%20%20ls%3D%60%2Fbin%2Fls%20-ld%20%22%24PRG%22%60%0A%20%20%20%20link%3D%60%2Fusr%2Fbin%2Fexpr%20%22%24ls%22%20%3A%20'.*-%3E%20(.*)%24'%60%0A%20%20%20%20if%20%2Fusr%2Fbin%2Fexpr%20%22%24link%22%20%3A%20'%5E%2F'%20%3E%20%2Fdev%2Fnull%202%3E%261%3B%20then%0A%20%20%20%20%20%20%20%20PRG%3D%22%24link%22%0A%20%20%20%20else%0A%20%20%20%20%20%20%20%20PRG%3D%22%60%2Fusr%2Fbin%2Fdirname%20%24PRG%60%2F%24link%22%0A%20%20%20%20fi%0Adone%0A%0AKVEM_BIN%3D%60dirname%20%22%24PRG%22%60%0AKVEM_HOME%3D%60cd%20%22%24%7BKVEM_BIN%7D%2F..%22%20%3B%20pwd%60%0AKVEM_LIB%3D%22%24%7BKVEM_HOME%7D%2Fwtklib%22%0Aexport%20MMAPI_GM_SOUNDBANK%3D%22%24%7BKVEM_HOME%7D%2Flib%2Fsoundbank.dls%22%0A%0A%22%24%7Bjavapathtowtk%7Djava%22%20-Dkvem.home%3D%22%24%7BKVEM_HOME%7D%22%20%5C%0A%20%20%20%20-Djava.library.path%3D%22%24%7BKVEM_HOME%7D%2Fbin%22%20%5C%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%20%20%20%20-Dswing.systemlaf%3D%22javax.swing.plaf.metal.MetalLookAndFeel%22%20%5C%20%20%20%20%23%23%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%20%20%20%20-cp%20%22%24%7BKVEM_LIB%7D%2Fkenv.zip%3A%24%7BKVEM_LIB%7D%2Fktools.zip%3A%24%7BKVEM_LIB%7D%2Fcustomjmf.jar%22%20%0A%20%20%20%20com.sun.kvem.environment.EmulatorWrapper%20%22%24%40%22%200" src="http://ganshisheng.javaeye.com/javascripts/syntaxhighlighter/clipboard_new.swf">

1. #!/bin/sh
2.
3. javapathtowtk=/usr/java/jdk1.6.0_05/bin/
4.
5. PRG=$0
6.
7. # Resolve soft links
8. while [ -h "$PRG" ]; do
9. ls=`/bin/ls -ld "$PRG"`
10. link=`/usr/bin/expr "$ls" : '.*-> (.*)$'`
11. if /usr/bin/expr "$link" : '^/' > /dev/null 2>&1; then
12. PRG="$link"
13. else
14. PRG="`/usr/bin/dirname $PRG`/$link"
15. fi
16. done
17.
18. KVEM_BIN=`dirname "$PRG"`
19. KVEM_HOME=`cd "${KVEM_BIN}/.." ; pwd`
20. KVEM_LIB="${KVEM_HOME}/wtklib"
21. export MMAPI_GM_SOUNDBANK="${KVEM_HOME}/lib/soundbank.dls"
22.
23. "${javapathtowtk}java" -Dkvem.home="${KVEM_HOME}" \
24. -Djava.library.path="${KVEM_HOME}/bin" \
25. ##########################################################
26. -Dswing.systemlaf="javax.swing.plaf.metal.MetalLookAndFeel" \ ##
27. ##########################################################
28. -cp "${KVEM_LIB}/kenv.zip:${KVEM_LIB}/ktools.zip:${KVEM_LIB}/customjmf.jar"
29. com.sun.kvem.environment.EmulatorWrapper "$@" 0

#!/bin/sh javapathtowtk=/usr/java/jdk1.6.0_05/bin/ PRG=$0 # Resolve soft links while [ -h "$PRG" ]; do ls=`/bin/ls -ld "$PRG"` link=`/usr/bin/expr "$ls" : '.*-> (.*)$'` if /usr/bin/expr "$link" : '^/' > /dev/null 2>&1; then PRG="$link" else PRG="`/usr/bin/dirname $PRG`/$link" fi done KVEM_BIN=`dirname "$PRG"` KVEM_HOME=`cd "${KVEM_BIN}/.." ; pwd` KVEM_LIB="${KVEM_HOME}/wtklib" export MMAPI_GM_SOUNDBANK="${KVEM_HOME}/lib/soundbank.dls" "${javapathtowtk}java" -Dkvem.home="${KVEM_HOME}" \ -Djava.library.path="${KVEM_HOME}/bin" \ ########################################################## -Dswing.systemlaf="javax.swing.plaf.metal.MetalLookAndFeel" \ ## ########################################################## -cp "${KVEM_LIB}/kenv.zip:${KVEM_LIB}/ktools.zip:${KVEM_LIB}/customjmf.jar" com.sun.kvem.environment.EmulatorWrapper "$@" 0



至此,可以创建j2me工程,以wireless toolkit 运行.

自己解决了 给大家共享


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 求助 关于Eclipse3.2.2的配置
帖子发表于 : 2009-11-01 10:28 

注册: 2007-08-02 20:29
帖子: 21288
系统: 窓辺とうこ
送出感谢: 0 次
接收感谢: 22
去官网下个解压就能用的最简单了


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 求助 关于Eclipse3.2.2的配置
帖子发表于 : 2009-11-03 23:41 

注册: 2009-03-30 12:47
帖子: 45
送出感谢: 0 次
接收感谢: 0 次
lss提供的信息貌似是跟嵌入式有关系的


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 5 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译