Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Making 2 standalones in one directory
Making 2 standalones in one directory [message #456917] Wed, 25 October 2006 00:21 Go to next message
Eclipse UserFriend
Hi,

May I ask if anyone knows of how I can create 2 standalone rcp
applications that shares the same directory, i.e., same plugin folder, and
all needed stuff. Is this possible? Meaning the exe for the 2 applications
can pinpoint which of the plugins in the plugin folder are needed, which
of the configuration folder is needed, and so on.

Thanks in advance!

Phillip
Re: Making 2 standalones in one directory [message #456920 is a reply to message #456917] Wed, 25 October 2006 00:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: philip.zuniga.gmail.com

Hello sir,

i have encountered the same problems. I already recieved a reply. They
said that it might not be possible to do. since conflicts on the
config.ini file might occur.


regards
Re: Making 2 standalones in one directory [message #456936 is a reply to message #456917] Wed, 25 October 2006 09:07 Go to previous messageGo to next message
Eclipse UserFriend
Phillip wrote:
> Hi,
>
> May I ask if anyone knows of how I can create 2 standalone rcp
> applications that shares the same directory, i.e., same plugin folder,
> and all needed stuff. Is this possible? Meaning the exe for the 2
> applications can pinpoint which of the plugins in the plugin folder are
> needed, which of the configuration folder is needed, and so on.
>
> Thanks in advance!

I believe that you can run multiple RCP apps out of one RCP application
folder.

You just need each application to have a separate configuration area
(which can be controlled by a command line property).

ex:
RCP_App/
config-app1/
config-app2/
features/
plugins/

Check out
http://help.eclipse.org/help32/topic/org.eclipse.platform.do c.isv/reference/misc/runtime-options.html
and "osgi.configuration.area {-configuration}". Each app would have a
separate config.ini

Later,
PW
Re: Making 2 standalones in one directory [message #456950 is a reply to message #456936] Wed, 25 October 2006 11:44 Go to previous messageGo to next message
Eclipse UserFriend
Hi Sir,

Pardon me for such a basic question as this. Is my understanding
right:

Using command prompt, I'll go to the directory of the standalone, ex.
RCPApp. In that directory also sits both my app1.exe and app2.exe and the
configuration folder for app1.exe.

Then if the config.ini for my app2.exe is in the directory:
RCPApp\App2\configuration , and I want to set the configuration directory
to this one so that app2.exe won't be confused of pointing to the
configuration folder of app1.exe, what will be the exact command? Is it
-configuration <App2\configuration> (app2.exe) ?
Is it right to run the correct command under the directory where app2.exe
lies?

I guess there's a flaw on my procedure since I'm getting a message
that -configuration is not recognized as a valid command. :)

Thanks again.

Phillip
Re: Making 2 standalones in one directory [message #456954 is a reply to message #456950] Wed, 25 October 2006 12:25 Go to previous messageGo to next message
Eclipse UserFriend
Phillip wrote:
> Hi Sir,
>
> Pardon me for such a basic question as this. Is my understanding right:
>
> Using command prompt, I'll go to the directory of the standalone,
> ex. RCPApp. In that directory also sits both my app1.exe and app2.exe
> and the configuration folder for app1.exe.

You would probably have one exec myAppLauncher.exe ... then you would
use the command-line (I'd put it in a .bat file).

ex:
c:\RCPapp> myAppLauncher -configuration App1\configuration -application
<app1>
c:\RCPapp> myAppLauncher -configuration App2\configuration -application
<app2>

or use -product <rcpProduct1> etc

Later,
PW
Re: Making 2 standalones in one directory [message #456960 is a reply to message #456920] Wed, 25 October 2006 10:30 Go to previous messageGo to next message
Eclipse UserFriend
It is possible to do this. You have two separate configuration directories, each with their own independent config.ini.

Alex
Re: Making 2 standalones in one directory [message #456968 is a reply to message #456954] Wed, 25 October 2006 16:18 Go to previous messageGo to next message
Eclipse UserFriend
Paul Webster wrote:

> Phillip wrote:
>> Hi Sir,
>>
>> Pardon me for such a basic question as this. Is my understanding right:
>>
>> Using command prompt, I'll go to the directory of the standalone,
>> ex. RCPApp. In that directory also sits both my app1.exe and app2.exe
>> and the configuration folder for app1.exe.

> You would probably have one exec myAppLauncher.exe ... then you would
> use the command-line (I'd put it in a .bat file).

> ex:
> c:RCPapp> myAppLauncher -configuration App1configuration -application
> <app1>
> c:RCPapp> myAppLauncher -configuration App2configuration -application
> <app2>

> or use -product <rcpProduct1> etc

> Later,
> PW

Hi Sir,

Where does the myAppLauncher.exe come from? In our case, we just have
2 exes (e.g., app1.exe and app2.exe). What does the said exe
(myAppLauncher)constitute?

So the following means app1.exe will now point to the directory
App1\configuration as its configuration folder (instead of the default
RCPapp\configuration), right?:

c:\RCPapp> myAppLauncher -configuration App1\configuration
-application app1

... and similar for app2.exe?:

c:\RCPapp> myAppLauncher -configuration App2\configuration
-application app2


Thanks again!

Phillip
Re: Making 2 standalones in one directory [message #457018 is a reply to message #456968] Wed, 25 October 2006 20:51 Go to previous messageGo to next message
Eclipse UserFriend
Phillip wrote:
> Paul Webster wrote:
>
>> Phillip wrote:
>>> Hi Sir,
>>>
>>> Pardon me for such a basic question as this. Is my understanding
>>> right:
>>>
>>> Using command prompt, I'll go to the directory of the standalone,
>>> ex. RCPApp. In that directory also sits both my app1.exe and app2.exe
>>> and the configuration folder for app1.exe.
>
>> You would probably have one exec myAppLauncher.exe ... then you would
>> use the command-line (I'd put it in a .bat file).
>
>> ex:
>> c:RCPapp> myAppLauncher -configuration App1configuration -application
>> <app1>
>> c:RCPapp> myAppLauncher -configuration App2configuration -application
>> <app2>
>
>> or use -product <rcpProduct1> etc
>
>> Later,
>> PW
>
> Hi Sir,
>
> Where does the myAppLauncher.exe come from? In our case, we just
> have 2 exes (e.g., app1.exe and app2.exe). What does the said exe
> (myAppLauncher)constitute?

Uh, in your case you use app1.exe and/or app2.exe.


>
> So the following means app1.exe will now point to the directory
> App1\configuration as its configuration folder (instead of the default
> RCPapp\configuration), right?:
>
> c:\RCPapp> myAppLauncher -configuration App1\configuration
> -application app1


In your example, it would be:

c:\RCPapp> app1.exe -configuration App1\configuration -application
my.rcp.app1

and

c:\RCPapp> app2.exe -configuration App2\configuration -application
my.rcp.app2


My point with myAppLauncher.exe was that you don't need to 2 separate
..exe files.

App1\configuration would contain the appropriate config.ini and
App2\configuration would contain app2's config.ini.

Later,
PW
Re: Making 2 standalones in one directory [message #457027 is a reply to message #457018] Wed, 25 October 2006 23:58 Go to previous messageGo to next message
Eclipse UserFriend
Paul Webster wrote:

>> Hi Sir,
>>
>> Where does the myAppLauncher.exe come from? In our case, we just
>> have 2 exes (e.g., app1.exe and app2.exe). What does the said exe
>> (myAppLauncher)constitute?

> Uh, in your case you use app1.exe and/or app2.exe.


>>
>> So the following means app1.exe will now point to the directory
>> App1configuration as its configuration folder (instead of the default
>> RCPappconfiguration), right?:
>>
>> c:RCPapp> myAppLauncher -configuration App1configuration
>> -application app1


> In your example, it would be:

> c:RCPapp> app1.exe -configuration App1configuration -application
> my.rcp.app1

> and

> c:RCPapp> app2.exe -configuration App2configuration -application
> my.rcp.app2


> My point with myAppLauncher.exe was that you don't need to 2 separate
> ..exe files.

> App1configuration would contain the appropriate config.ini and
> App2configuration would contain app2's config.ini.

> Later,
> PW

One more sir. I believe my.rcp.app1 and my.rcp.app2 are application id's.
Where can we get those?

Thanks once more!

Phillip
Re: Making 2 standalones in one directory [message #457032 is a reply to message #457018] Thu, 26 October 2006 01:40 Go to previous messageGo to next message
Eclipse UserFriend
Is the id the one found in the rcp prject's overview page? :)
Re: Making 2 standalones in one directory [message #457034 is a reply to message #457027] Thu, 26 October 2006 02:02 Go to previous messageGo to next message
Eclipse UserFriend
Hi again sir,

The following command worked but not exactly in the way we need:

c:RCPapp> app1.exe -configuration App1\configuration -product
<my.rcp.app1.productId>

I used the product instead of the application since we are in a
standalone produced through eclipse product-creating functionality.

The application launches correctly when this command was run, i.e.,
the correct config.ini was used. But, the problem is when I manually click
app1.exe in the folder, it still points to the config.ini in the default
configuration folder (the one located in the same level as the exe). I
forgot to tell you this is what we need to set the dependence to the
config.ini in App1\configuration permanently.

Is this still possible?

Thanks a lot!

Phillip
Re: Making 2 standalones in one directory [message #457046 is a reply to message #456968] Wed, 25 October 2006 21:06 Go to previous messageGo to next message
Eclipse UserFriend
Just FYI -- it doesn't have to have a subdirectory called 'configuration'. So, eclipse -configuration app1 would work (as long as the config was in app1\config.ini)

Alex.
Re: Making 2 standalones in one directory [message #457050 is a reply to message #457032] Thu, 26 October 2006 04:04 Go to previous messageGo to next message
Eclipse UserFriend
The id of the application extension point; if you look in the launch config, you'll see a drop-down list with the list of all application ids under something like 'run an application' on the first tab.

If you misspell the app when launching, Eclipse complains and tells you what apps are installed, so you'll get it right on either the first or second try :-)

Alex
Re: Making 2 standalones in one directory [message #457056 is a reply to message #457034] Thu, 26 October 2006 09:36 Go to previous messageGo to next message
Eclipse UserFriend
Phillip wrote:
> Hi again sir,
>
> The following command worked but not exactly in the way we need:
>
> c:RCPapp> app1.exe -configuration App1\configuration -product
> <my.rcp.app1.productId>

This looks correct.


>
> The application launches correctly when this command was run, i.e.,
> the correct config.ini was used. But, the problem is when I manually
> click app1.exe in the folder, it still points to the config.ini in the
> default configuration folder (the one located in the same level as the
> exe). I forgot to tell you this is what we need to set the dependence to
> the config.ini in App1\configuration permanently.


That's why you usually need a .bat file instead of using the app1.exe.
But in the product editor Launcher tab where you change the launcher
name, you can also add program arguments. In my case it created an
app1.exe and app1.ini (where it put the -configuration
App1\configuration) argument.

In theory you could just put each -configuration switch in the app1.ini
and app2.ini:
-configuration
App1/configuration

Later,
PW
Re: Making 2 standalones in one directory [message #457060 is a reply to message #457056] Thu, 26 October 2006 13:09 Go to previous messageGo to next message
Eclipse UserFriend
Thank you very much sir. It now works perfectly as planned! Thanks a lot!
Re: Making 2 standalones in one directory [message #457061 is a reply to message #457046] Thu, 26 October 2006 13:12 Go to previous messageGo to next message
Eclipse UserFriend
Yes sir, it's just that we want to emphasize that the folder is for the
config.ini. Thanks for the info, anyway. Thanks a lot! What we wanted is
now what we're getting. Thanks for the great help (to you and Mr.
Webster).
Re: Making 2 standalones in one directory [message #459630 is a reply to message #456917] Tue, 05 December 2006 03:32 Go to previous message
Eclipse UserFriend
Originally posted by: lms15_84.yahoo.com

MAKE MONEY QUICK!
At 5:08 AM on Jan 30, 2004, Unregistered Guest wrote:
Greetings: I am a retired attorney. A few years ago a man came to me with a letter. He asked me to verify the fact that this was legal to do. I told him I would review it and get back to him. When I first read the letter my client brought me, I thought it was some “off-the-wall” idea to make money. A week and a half later we met in my office to discuss the issue. I told him the letter he originally brought me was not 100% legal. My client then asked me to alter it to make it perfectly legal. I asked him to make one small change in the letter. I was still curious about the letter, so he explained to me how it works. I thought it seemed like a long shot, so I decided against participating. But before my client left, I asked him to keep me updated on his results. About two months later, he called me to tell me he had received over $800,000 in cash. I didn’t believe him, so he asked me to try this idea and find out for myself. I thought about it for a couple of days and decided I really didn’t have anything to lose, so I asked him for a copy of the letters. I followed the instructions exactly, mailed 200 copies, and sure enough, the money started coming in! It arrived slowly at first, but coming. I kept a precise record of the earnings, and in the end, it totaled $978,493! I could hardly believe it. I met with my friend for lunch to find out exactly how it worked. He told me there are quite a few similar letters around, but this one is different because there are six names at the end of the letter, not five like some others. This fact alone results in your name being in far more returns. The other fact was the help I gave him, making sure the whole thing was legal, since no one wants to take the risk of doing something illegal. By now you are surely curious to know what small changes to make. If you sent a letter like this one out, in order to be completely legal, you must actually sell something in order to receive a dollar in return. So when you send a dollar to each of the names on the list, you must include these words, “PLEASE PUT ME ON YOUR MAILING LIST” and include your name and address. This is the key to the program. The item you will receive for the dollar you sent to the six people below is the letter. At the time I first tried this idea, I was earning a good living as a lawyer. But everyone in the legal profession will tell you there is a lot of stress that comes with the job. I told myself if things worked out, I would retired from my practice and play golf. I decided to try the letter again, but this time I sent 500 copies. Three months later , I had totaled $2,341,178! Here are a few reasons a person might give for not trying this program: Ø Some people think they can never make a lot of money with anything this simple. Ø Some are afraid they will be ridiculed for trying Ø Some dream of large sums of money, but do nothing to actually achieve it. Ø Some are just plain lazy. Ø Some are afraid of losing their investment. They think this program is designed to beat them out of a few dollars. The system works if you will just try it. But you must follow the simple instructions exactly, and in less than three months, you will receive $800,000 GUARANTEED! Keep what you are doing to yourself for awhile. Many will tell you it won`t work and will try to talk you out of your dreams. Let them know of your success after it works. LETTERS FROM PARTICIPANTS IN THIS PROGRAM: My name is David Rhodes. In 1992 my car was repossessed and bill collectors were housing my. I was laid off and my unemployment ran out. In October of 1992, I received a letter telling me how to earn $800,000 anytime I wanted. Of course, I was skeptical. But because I was so desperate and virtually had nothing to lose, I gave it a try. In January 1993, my family and I went on a 10-day cruise. The next month I bought a brand new Mercedes with cash! I am currently building a home in Virginia and I will never have to work again. This money program really works perfectly every time. I have never failed to receive less than $500,000. This is a legitimate, money-making opportunity. It does not require you to sell anything or to come in contact with people. And , best of all, you only leave the house to mail the letters. If you have always believed that someday you would get the lucky break, then simply follow the instructions and make dreams come true. Larry McMahon, Norfolk, VA Six months ago, I received this letter and ignored it. Five more came within a period of time and I ignored them also. I was tempted, but I was convinced that they were just a Hoax. After three weeks of deliberating, I decided to give it a try ( not expecting much ). Two weeks went by and nothing happened. The fourth week was unbelievable! I cant say I received $800,000 but I received $400,000. For the first time in years, I am debt free. I am doing this again, only this time starting with 500 post. I strongly recommend that you follow the instructions exactly as outlined in this letter. INSTRUCTIONS 1. Immediately send $1.00 to each of the six people on the list at the end of this letter. Wrap the dollar bill in a note saying “ Please add me to your mailing list” and include your name and address. 2. Copy this letter. You do not have to type it 200 times. Simply place your cursor at the top of the page, hold it and drag it all the way down to the end of the letter. Then click on "edit" and select "copy". Now open up a notepad file on your computer and put the cursor at the top of the page in the notepad, click on 'edit' and then select 'paste' it will copy the letter for you onto your computer. 3. Remove the name next to the #1 on the list and move the rest of the names up one position (#2 becomes #1, #3 becomes #2, etc…..) Then place your name in the #6 position. Then save it, make sure it is saved as a txt. file. 4. When you have completed the instructions, take this letter and then go to (Google,Yahoo,...) and type in (Making Money Massege board,or post massege,...)and start posting your copy to 200 message boards,or more this is only the minimum, you can post as much as you like...The more copies you send the better the results. Keep a copy of this letter so you can use it a second time. Post it out again in six months, but Post it with the addresses you receive with each dollar. It will work better the second time. NOTE: This service is 100% legal - (Refer to title 18 section 1302 of the U.S. Postal & lottery laws) How does it work? When you send out 200 Posts, it is estimated that at least 15 people will respond and send you a $1.00. ($15.00) Those 15 will Post 200 Posts each and 225 people send you $1.00 ($225.00) Those 225 people Post 200 Posts each and 3,375 people send you $1.00 ($3,375.00) Those 3,375 post 200 posts each and 759,375 people send you $1.00 ($759,375.00) At this point your name drops off the list, but so far you have received $813,615.00. P.S. When your money begins to come in, give the first 10% to charity with spirit and share a good fortune!
1. Jacob, Maxime 660 Prevost Street Trois-Rivières, Qc G8Y-4A5 Canada
2. Jose E. Cruz 4440 N.E. 14 Ave. Pompano Beach, FL 33064 USA
3. Cristian Mery El Boldo 8682 906-0272 PUDAHUEL CHILE This really really works,I tried it once and I'm doing it again, first to be honest I only posted 145 posts and I didn't recive alot only 6,689.00$ in 3 months,at least this means that it realy works ,so this time I'm posting 604 posts and I've got so far in 2 month 15,640.00$ this is realy like a dream come true. So go on and try it trust me you've got nothing to lose.... important tip - Cover money by paper fully by which it can not been seen in light , because postal employees do some cheat some times....ok PD: Send this letter to all your email contacts, friends and all the newsgroups you could find. The more you get The best for BOTH of us. Good Luck!
4. Joseph Dushin, 264 B South Bridge Road Singapore 058813
5. Carey Tri, 8756 Brunell Way, Inver Grove Heights, MN 55076
6, Lance Suire 802 Cheneau Rd, Kaplan, LA 70548
Previous Topic:Making executable jar for RCP application
Next Topic:Making eclipse talk
Goto Forum:
  


Current Time: Mon Mar 17 21:50:05 EDT 2025

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

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

Back to the top