我使用的是eclipse,为了方便,去下了VE插件
小工程做好了,在eclipse也运行的好好的
现在要打成jar包,但运行的时候老是提示找不到main()
本人比较菜,找了很久发现可能是这个问题
那是VE建的visual class的main()后面的注释
Before this is run, be sure to set up the launch configuration (Arguments-> VM Arguments)
* for the correct SWT library path in order to run with the SWT dlls.
* The dlls are located in the SWT plugin jar.
* For example, on Windows the Eclipse SWT 3.1 plugin jar is:
* installation_directory\plugins\org.eclipse.swt.win32_3.1.0.jar
由于太菜,看不懂 大家能不能帮我看看是不是这个错误,如果是的话,这些注释里要我做什么?步骤说的越详细越好(本人能力有限),不是的话,帮我找找别的原因吧.谢谢大家
------解决方案--------------------
你把swt的dll文件放入你的工程目录就可以了.
dll文件在 swt的plugin的jar文件中,解压后就可以得到
eclipse的安装目录installation_directory\plugins\org.eclipse.swt.win32_3.1.0.jar 把这个文件解压就可以发现如:swt-win32-3236.dll这个文件
------解决方案--------------------
同意楼上