Results 1 to 2 of 2
- 09-09-2011, 02:53 PM #1
Member
- Join Date
- Sep 2011
- Location
- Pittsgurgh, PA
- Posts
- 4
- Rep Power
- 0
"invalid command line parameter" error
I'm a .net coder learning java/android programming using Eclipse/Indigo
I tried running the hello work program described here:
Hello, World | Android Developers
The problem is when I try to run the program I'm getting an "invalid command line parameter" message in the console.
Has anyone seen this or understand what I need to do to fix this?
thanks in advance
I found online that eclipse does not like the spaces in the path to the android sdk?
the path I have to the sdk is: C:\Program Files\Android\android-sdk
I am thinking that I need to get the 8.3 version of that path?
Here are the console messages I get
<CONSOLE>
[2011-09-09 08:59:18 - HelloWorld] ------------------------------
[2011-09-09 08:59:18 - HelloWorld] Android Launch!
[2011-09-09 08:59:18 - HelloWorld] adb is running normally.
[2011-09-09 08:59:18 - HelloWorld] Performing com.example.HelloWorldActivity activity launch
[2011-09-09 08:59:18 - HelloWorld] Automatic Target Mode: launching new emulator with compatible AVD 'Android3.2'
[2011-09-09 08:59:18 - HelloWorld] Launching a new emulator with Virtual Device 'Android3.2'
[2011-09-09 08:59:18 - Emulator] invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe.
[2011-09-09 08:59:18 - Emulator] Hint: use '@foo' to launch a virtual device named 'foo'.
</CONSOLE>
UPDATE:
I wrote a program that parses the path above to instead use the 8.3(short path) to the sdk and not getting that error anymore but instead getting this
"emulator ##### disconnected" error. why does that happened and what does it mean. also should I close this post and open a new one with the next message on this forum?:
<CONSOLE>
[2011-09-09 13:51:44 - HelloWorld] ------------------------------
[2011-09-09 13:51:44 - HelloWorld] Android Launch!
[2011-09-09 13:51:44 - HelloWorld] adb is running normally.
[2011-09-09 13:51:44 - HelloWorld] Performing com.example.HelloWorldActivity activity launch
[2011-09-09 13:51:44 - HelloWorld] Automatic Target Mode: launching new emulator with compatible AVD 'Android3.2'
[2011-09-09 13:51:44 - HelloWorld] Launching a new emulator with Virtual Device 'Android3.2'
[2011-09-09 13:52:15 - Emulator] emulator: emulator window was out of view and was recentred
[2011-09-09 13:52:15 - Emulator]
[2011-09-09 13:52:15 - HelloWorld] New emulator found: emulator-5554
[2011-09-09 13:52:15 - HelloWorld] Waiting for HOME ('android.process.acore') to be launched...
[2011-09-09 13:53:32 - HelloWorld] emulator-5554 disconnected! Cancelling 'com.example.HelloWorldActivity activity launch'!
</CONSOLE>
One of the questions I have too since I'm new to eclipse, how do I stop execution of a program?
thanks
MCLast edited by MCinPgh; 09-09-2011 at 08:02 PM.
- 09-09-2011, 09:03 PM #2
Member
- Join Date
- Sep 2011
- Location
- Pittsgurgh, PA
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
Error: "Invalid character constant"
By Turk80 in forum New To JavaReplies: 3Last Post: 04-06-2011, 08:53 AM -
java.sql.SQLException: ORA-00904: "PASS1": invalid identifier
By vishal.jar in forum JDBCReplies: 3Last Post: 01-31-2011, 09:46 AM -
"Could not find the main class" for Linux Command Line Compile
By tetelee in forum New To JavaReplies: 3Last Post: 08-25-2010, 10:21 AM -
Compiling/Running Project in Command Line: "Could not find main class" Error
By Yasemin Gokce in forum New To JavaReplies: 1Last Post: 06-30-2009, 02:32 PM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks