How to make simplistic RCP application really standalone?

我与影子孤独终老i 提交于 2019-11-30 22:22:49

1) Check you environment, especially JAVA_OPTS. If there's anything there, unset the variable and try running again

2) Check the JDK on your path with "java -version". Is it a 1.7.0 version (as specified in the execution environment) and does it match the eclipse launcher (i.e. if you are using 64-bit eclipse, it should be a 64-bit JDK and not a 32-bit one, and vice-versa). If there is a mismatch, fix (set PATH / JAVA_HOME to proper location and retry running). Note that on Windows the default JRE may be configured in the registry and your path may be clear. Check the Java settings in Control Panel to see what's the preferred one. Heck, even better, don't risk it: add the following lines in eclipse.ini instead, pointing to the correct JDK location, ABOVE the -vmargs line:

-vm
C:\path\to\the\proper\jdk\bin\javaw.exe

3) Look in the folder "configuration/.log" (timestamp is a UNIX long). Sometimes when a workspace doesn't get created Eclipse will log errors there...

4) Try running with "eclipse -consoleLog"

P.S. I haven't actually tried your steps, but the above is the list of things that have bitten me in the past (with 2 being the most common one)... :-)

I think your program works correctly, but you are not seeing anything because the output is not directed anywhere. Please edit the file eclipse.ini and add two options before the vmargs:

-console

-consoleLog

Then open a terminal/command interpreter in the folder and execute:

eclipse

Then see whether there is still no output.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!