Community
Participate
Eclipse IDE
I've just built my RCP product with the new 3.1 release and the launcher under Linux is ignoring the .ini file where I'm trying to specify a VM and VM args. And yes, the names match, ie. a "launcher" executable with a "launcher.ini" file. I'm instead having to specify my parameters in the command line. Under Windows the launcher is picking up the "launcher.ini" properly.
Can you provide the launcher.ini that does not seem to be found?
Created attachment 24158 [details] launcher.ini that doesn't work under Linux OK, I found the problem(hinted at by your request). It's really actually a PDE problem in that even for Linux the file is being written out with <cr><lf> - although the launcher could be made more tolerant. I resaved the file in Unix format and it now works fine.
*** Bug 102207 has been marked as a duplicate of this bug. ***
Ian, where did you generate the faulty launcher.ini? On Windows or Linux?
Sorry about my spastic finger that double-clicked "Commit", creating two reports. The "bad" launcher.ini was generated when I exported the product from Windows. I haven't tried doing it from Linux where I'm even having trouble launching my RCP application _within_ Eclipse with the new 3.1(I haven't done any development under Linux since M5 or so - I'll report that problem once I have some idea how to do so helpfully - for some reason it's not finding the linux/gtk SWT fragment even though it's there and checked in the launcher). In the meantime I'm doing all my development and my product builds from Windows.
Ok, that explains it then. Wassim, are exported products intended to be multi-platform? Or is the user expected to be on the target platform while exporting a product? If it is the latter, this can be closed.
On any platform, you should be able to export to multiple platforms (mac, linux, win32) and the correct files should be generated by PDE. In this case, it appears as though the code reading the init file is too stringent, so we should check the ws-os-arch combination, and generate the correct line delimiters.
Konrad, please investigate for 3.1.1
Fixed, by using \r\n delimiter on Windows and \n on other platforms in eclipse.ini