Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » cannot run application on mac os x
icon4.gif  cannot run application on mac os x [message #517852] Tue, 02 March 2010 10:52 Go to next message
Luca Ferrari is currently offline Luca FerrariFriend
Messages: 159
Registered: November 2009
Senior Member
Hi all,
I've finished an rcp application, and now I was exporting it to different platforms. While the application runs smoothly on windows and linux (bith 32 and 64 versions) I've got problems on mac os x. First of all, when exporting, the results includes two folders with the same launcher name (for me it is hrpm) one in lower case and one with the first letter capital case:

$ ls hrpm/macosx.cocoa.x86/eclipse/
artifacts.xml  configuration  Eclipse.app  hrpm.app  Hrpm.app  p2  plugins


As you can see the hrpm.app and Hrpm.app are present, and this prevents me to install (copy) on a mac os x since the operating system gives me the error of duplicated file. So I removed the capitalized folder and leaved only the lower case one, and then I run the application but I got an error about the application not present in the registry:
!SESSION 2010-03-02 11:38:34.937 -----------------------------------------------
eclipse.buildId=unknown                                                         
java.version=1.5.0_19                                                           
java.vendor=Apple Computer, Inc.                                                
BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=it_IT                  
Framework arguments:  -psn_0_4980737                                            
Command-line arguments:  -os macosx -ws carbon -arch x86 -psn_0_4980737         

!ENTRY org.eclipse.osgi 4 0 2010-03-02 11:38:36.589
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "HRPM_RCP_git.application" could not be found in the registry. The applications available are: org.eclipse.equinox.app.error.
        at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
        at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

!ENTRY org.eclipse.osgi 2 0 2010-03-02 11:38:36.605
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-03-02 11:38:36.605
!MESSAGE Bundle HRPM_RCP_git_1.0.0.201003021131 [3] was not resolved.
!SUBENTRY 2 HRPM_RCP_git 2 0 2010-03-02 11:38:36.606
!MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6



Is it only a problem of the java version? How can I relax this constraint before exporting my product?
Re: cannot run application on mac os x [message #517866 is a reply to message #517852] Tue, 02 March 2010 11:48 Go to previous messageGo to next message
Luca Ferrari is currently offline Luca FerrariFriend
Messages: 159
Registered: November 2009
Senior Member
On Mac OS X Tiger, setting the java preferences to java 1.6 makes the application running, so the only doubt that remains is about the double application name.
Re: cannot run application on mac os x [message #517875 is a reply to message #517866] Tue, 02 March 2010 12:21 Go to previous message
Christian is currently offline ChristianFriend
Messages: 72
Registered: July 2009
Member
Am 02.03.2010 12:48, schrieb Luca Ferrari:
> On Mac OS X Tiger, setting the java preferences to java 1.6 makes the
> application running, so the only doubt that remains is about the double
> application name.


Building application for mac does not work from Linux or Windows.
I also encountered this naming issue when building from Linux.
If build from windows executable Permissions are not correctly set.

->
Am 15.02.2010 14:17, schrieb Christian:
> > Am 13.02.2010 12:46, schrieb Christian:
>> >> Hello,
>> >>
>> >> I do have some problems building software for MacOsX (software is
called
>> >> Jucy or jucy what ever I don't care)
>> >>
>> >> There seems to be some probelms with the case in building.
>> >>
>> >> Following problem
>> >>
>> >> if Launching -> Launcher Name (In .product file) first letter is Upper
>> >> case.(Jucy)
>> >> I get for MacOsX one directory Jucy.app
>> >> containing in Contents/MacOs/
>> >> 2 ini files (and one other)
>> >> one is
>> >> jucy.ini
>> >> and one is
>> >> Jucy.ini
>> >>
>> >> Both with different contents!
>> >>
>> >>
>> >> if I now set the name of the Launcher to lower case (jucy)
>> >> i gett two .app directories
>> >> Jucy.app
>> >> and
>> >> jucy.app
>> >>
>> >> where the lower case jucy.app
>> >> contains a lower case jucy.ini file (with the same contents the
Jucy.ini
>> >> file had before)
>> >>
>> >> and the upper case Jucy.app contains only one file
>> >> Contents/MacOS/jucy.ini (with the content jucy.ini had before)
>> >>
>> >>
>> >> Now what am I doing wrong?
>> >> What should I do?
>> >>
>> >> Christian
> >
> > Can anyone reproduce this problem? ... if so I would report it as a bug
> >
> > Christian
It works for me as expected if export is done using MacOsX(Leopard)
computer or Windows 7 though on Linux (Ubuntu 9.10) this fails..
(all tried with 3.6M3)
Previous Topic:Add Tabbed pane to a ViewPart
Next Topic:Buddy policy doubt
Goto Forum:
  


Current Time: Fri Apr 19 13:59:16 GMT 2024

Powered by FUDForum. Page generated in 0.01873 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top