I would like to generate some .jar for tools to include in an Android project.
So I use command tool "javac" which works great.
But when I try to use Android SDK, it fails:
C:\Dev\Tools.java:123: package android.util does not exist
android.util.Log.d("MYTAG", "hello !");
To compile, I use this command:
"C:\Program Files (x86)\Java\jdk1.6.0_23\bin\javac.exe" -g -d C:\Gen C:\Dev\Tools.java
Any help?
-classpath
parameter on the command line, or by adding it to the respective CLASSPATH
environment variable.