[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.technology.ercp] Re: Develop eSWT app with Eclipse 3.2
|
Ok, it seems you're confusing the different types of application models.
There are 3 possible:
1) Stand-alone app - jar file contains your app. No manifest needed since
manifests are only needed for running in the OSGi framework. You have to
have the eSWT jar on your classpath and the eSWT dll in your bin path. You
start it like "j9 -jcl:foun11 -cp \eswt-converged.jar;\my-app.jar
mypackage.MyMain "
2) RCP app - your app is a plug-in. It has a class extending
AbstractUIPlugin. It is a jar in the plugins directory. eSWT in available
via OSGi - no need to put it in the class/bin paths. You can start it like
you tried.
3) eRCP app - your app is a plug-in. It has a class extending ViewPart. It
has an extension for "org.eclipse.ercp.eworkbench.applications". It is a jar
in the plugins directory. You launch it by starting eWorkbench and launching
it from the workbench.
Since you said you only want to use eSWT and not the rest of eRCP, you
should be following model 1.
"Jim Duffy" <jim@xxxxxxxxxxxxxx> wrote in message
news:e96577$38h$1@xxxxxxxxxxxxxxxxxxxx
> Thanks Uriel,
>
> I can now run sample eSWT code in Windows. However, when I deploy the same
> application to Windoes Mobile 5, it does not run.
>
> I packaged up the app in a jar and placed it in the 'plugins' folder under
> 'eRCP'. I then created a .lnk file based on the demo .lnk file and placed
> in right in the 'eRCP' folder.
>
> My .lnk file looks like this:
> 255#"\J9\PPRO11\bin\j9w.exe" -jcl:foun11 -cp \eRCP\startup.jar
> org.eclipse.core.launcher.Main -application mypackage.MyApp
>
> Executing the .lnk file though does nothing at all.. I also took the
> manifest from the demo app and modified it accordingly but still see the
> same results.
>
> Is there any other requirements for running an eSWT application on Windows
> Mobile 5?
>
> Thanks for the help,
>
> Jim
>
>
>
> "Uriel Liu" <liukl@xxxxxxxxxx> wrote in message
> news:e929sc$rgp$1@xxxxxxxxxxxxxxxxxxxx
>> Jim,
>>
>> To develop eSWT standalone application with Eclipse 3.2 is pretty
>> straightforward.
>>
>> eSWT contains two libraries - eswt-converged.dll and eswt-converged.jar,
>> both could be found at eRCP windows M9 build,
>> win32\eRCP\plugins\org.eclipse.ercp.swt.win32_1.0.0(for win32) and
>> wm2003\eRCP\plugins\org.eclipse.ercp.swt.wm2003_1.0.0 (for wm2003, wm5)
>>
>> In your java project, try to configure your Java build path, add
>> eswt-converged.jar as external jar, then you can have your eSWT java
>> project compiled. In order to run your eswt project, make sure
>> eswt-converged.dll could be found in your system library path(eg
>> c:\Windows\) and also set eswt-converged.jar in your java classpath.
>>
>> ----
>> Uriel Liu
>>
>> "Jim Duffy" <jim@xxxxxxxxxxxxxx>
>> ¼¶¼g©ó¶l¥ó·s»D:e911il$3rf$1@xxxxxxxxxxxxxxxxxxxx
>>>
>>> Hi,
>>>
>>> I need to setup Eclipse 3.2 so that I can develp a app targeting Windows
>>> Mobile 5.
>>>
>>> I have went through the documentation on setting up eRCP in eclipse but
>>> at this point I am only looking to use eSWT and not anything else from
>>> eRCP.
>>>
>>> Could anyone advise on how Eclipse 3.2 could be configured to do eSWT?
>>> Since I'm not going to use eRCP, do I still need to make the project an
>>> 'eclipse plugin' or can it just be a standard Java project? What files/
>>> configurations need to be setup?
>>>
>>> Thanks for the help!
>>>
>>> Jim
>>>
>>>
>>
>>
>
>