Srijani Ghosh
Srijani Ghosh

Reputation: 4216

Where I can find the system out prints in RCP Product?

I have a RCP application, inside which I have added some System.out.println() statements. Now, that I have exported the project as a product, can anyone please tell me where to look for these System.out.println() output?

Upvotes: 4

Views: 870

Answers (1)

flavio.donze
flavio.donze

Reputation: 8090

Since you are not using the logger framework, the output is not printed into the default workspace/.metadata/.log file.

You can start your product with a console though, adding the following parameters to the ProductName.ini (e.g. Eclipse.ini) file in your installation directory:
-console
-consoleLog

The ini file should look something like this:

-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-console
-consoleLog

The output will be printed in the console window.

EDIT
If you get an error message after starting the application:
could not find bundle: org.eclipse.equinox.console

You need to add the following bundles to your ProductName.product file ('Contents' tab) and export a new product: org.eclipse.equinox.console
org.apache.felix.gogo.runtime
org.apache.felix.gogo.command
org.apache.felix.gogo.shell

Upvotes: 2

Related Questions