Can't compile Android/Java project using command line -
i'm new using other eclipse compiling java projects. trying use command line compile java file uses android have been unsuccessful.
i've been trying variations of following (where root directory project directory):
javac -classpath c:\program_files\java\jdk1.7.0_04\bin; c:\program_files\android\android-sdk\platforms\android-15\android.jar src\package1\package2\projectname.java
it hasn't been working. lot of errors saying:
package android.content not exist package android.database not exist package android.net not exist package android.os not exist package android.util not exist
am doing drastically wrong here? how can recognize android packages? point me in right direction here? i've read bunch of documentation on javac, command-line , classpaths, can't seem pinpoint main problem here. thank you.
new
i'm not sure if information make difference... when run program in eclipse, uses android 2.2 directory c:\program_files\android\android-sdk\platforms\android-8\android.jar
instead of c:\program_files\android\android-sdk\platforms\android-15\android.jar
. change anything? when try go folder on computer, though... not exist. android-15
folder exists. tried changing classpath directory android-8
, unfortunately did not change anything. ideas?
Comments
Post a Comment