How to use multiple simulator launches in Eclipse?
up vote
2
down vote
favorite
I have a MainThing.launch
starting the Simulator with my.package.MainThing
as the argument. At first, I thought, I'd just copy and modify the Launch Configuration, but changing the program argument to my.package.TheOtherThing
changed nothing. Still, the "MainThing" gets started.
So I thought, I could copy the launch file and change the line
<stringAttribute
key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
value="my.package.MainThing"/>
to contain my.package.TheOtherThing
instead, but even after an Eclipse restart, nothing changes.
So what should I do in order to have multiple launches?
java codenameone
add a comment |
up vote
2
down vote
favorite
I have a MainThing.launch
starting the Simulator with my.package.MainThing
as the argument. At first, I thought, I'd just copy and modify the Launch Configuration, but changing the program argument to my.package.TheOtherThing
changed nothing. Still, the "MainThing" gets started.
So I thought, I could copy the launch file and change the line
<stringAttribute
key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
value="my.package.MainThing"/>
to contain my.package.TheOtherThing
instead, but even after an Eclipse restart, nothing changes.
So what should I do in order to have multiple launches?
java codenameone
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I have a MainThing.launch
starting the Simulator with my.package.MainThing
as the argument. At first, I thought, I'd just copy and modify the Launch Configuration, but changing the program argument to my.package.TheOtherThing
changed nothing. Still, the "MainThing" gets started.
So I thought, I could copy the launch file and change the line
<stringAttribute
key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
value="my.package.MainThing"/>
to contain my.package.TheOtherThing
instead, but even after an Eclipse restart, nothing changes.
So what should I do in order to have multiple launches?
java codenameone
I have a MainThing.launch
starting the Simulator with my.package.MainThing
as the argument. At first, I thought, I'd just copy and modify the Launch Configuration, but changing the program argument to my.package.TheOtherThing
changed nothing. Still, the "MainThing" gets started.
So I thought, I could copy the launch file and change the line
<stringAttribute
key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
value="my.package.MainThing"/>
to contain my.package.TheOtherThing
instead, but even after an Eclipse restart, nothing changes.
So what should I do in order to have multiple launches?
java codenameone
java codenameone
asked Nov 9 at 4:01
maaartinus
26.6k2193222
26.6k2193222
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
You can run the simulator file multiple times, I'm guessing that what you are trying to do is run two separate main files. This is determined by the package and class name within codenameone_settings.properties
which you need to change to run a different main class.
This is pretty uncomfortable and sounds like a bug: The argument toSimulator
seems to be simply ignored, which is confusing.
– maaartinus
Nov 9 at 6:45
Historically we used the argument then moved to use the content of the file. We never removed the argument from the newly created project. Using the settings file is better as it's more consistent across IDE's
– Shai Almog
Nov 10 at 4:53
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
You can run the simulator file multiple times, I'm guessing that what you are trying to do is run two separate main files. This is determined by the package and class name within codenameone_settings.properties
which you need to change to run a different main class.
This is pretty uncomfortable and sounds like a bug: The argument toSimulator
seems to be simply ignored, which is confusing.
– maaartinus
Nov 9 at 6:45
Historically we used the argument then moved to use the content of the file. We never removed the argument from the newly created project. Using the settings file is better as it's more consistent across IDE's
– Shai Almog
Nov 10 at 4:53
add a comment |
up vote
0
down vote
You can run the simulator file multiple times, I'm guessing that what you are trying to do is run two separate main files. This is determined by the package and class name within codenameone_settings.properties
which you need to change to run a different main class.
This is pretty uncomfortable and sounds like a bug: The argument toSimulator
seems to be simply ignored, which is confusing.
– maaartinus
Nov 9 at 6:45
Historically we used the argument then moved to use the content of the file. We never removed the argument from the newly created project. Using the settings file is better as it's more consistent across IDE's
– Shai Almog
Nov 10 at 4:53
add a comment |
up vote
0
down vote
up vote
0
down vote
You can run the simulator file multiple times, I'm guessing that what you are trying to do is run two separate main files. This is determined by the package and class name within codenameone_settings.properties
which you need to change to run a different main class.
You can run the simulator file multiple times, I'm guessing that what you are trying to do is run two separate main files. This is determined by the package and class name within codenameone_settings.properties
which you need to change to run a different main class.
answered Nov 9 at 5:11
Shai Almog
39.1k52553
39.1k52553
This is pretty uncomfortable and sounds like a bug: The argument toSimulator
seems to be simply ignored, which is confusing.
– maaartinus
Nov 9 at 6:45
Historically we used the argument then moved to use the content of the file. We never removed the argument from the newly created project. Using the settings file is better as it's more consistent across IDE's
– Shai Almog
Nov 10 at 4:53
add a comment |
This is pretty uncomfortable and sounds like a bug: The argument toSimulator
seems to be simply ignored, which is confusing.
– maaartinus
Nov 9 at 6:45
Historically we used the argument then moved to use the content of the file. We never removed the argument from the newly created project. Using the settings file is better as it's more consistent across IDE's
– Shai Almog
Nov 10 at 4:53
This is pretty uncomfortable and sounds like a bug: The argument to
Simulator
seems to be simply ignored, which is confusing.– maaartinus
Nov 9 at 6:45
This is pretty uncomfortable and sounds like a bug: The argument to
Simulator
seems to be simply ignored, which is confusing.– maaartinus
Nov 9 at 6:45
Historically we used the argument then moved to use the content of the file. We never removed the argument from the newly created project. Using the settings file is better as it's more consistent across IDE's
– Shai Almog
Nov 10 at 4:53
Historically we used the argument then moved to use the content of the file. We never removed the argument from the newly created project. Using the settings file is better as it's more consistent across IDE's
– Shai Almog
Nov 10 at 4:53
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53219696%2fhow-to-use-multiple-simulator-launches-in-eclipse%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown