Help on First Compile Error

WirezFree

Member
Licensed User
Longtime User
[Solved] - Help on First Compile Error

Hello,

I'm very new to this, I followed the install tutorials,
I then loaded an example from the documentation.

When I hit "F5" to compile I get the compile box appear,
(something else flashes very, very quick behind that box)
With the following result:

Compiling code. 0.25
Compiling layouts code. 0.05
Generating R file. 0.00
Compiling generated Java code. Error
java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Exception in thread "main" Could not find the main class: com.sun.tools.javac.Main.
Program will exit.

I have checked everything I can,
inc the paths to the Javac.exe & Android.jar files are correct

Something is missing?
But not sure where to start.

Edit:
Based on a reference in one of the tutorials, and some Googling, added the JDK & ADK paths to my environment variables.
"Still have same error"

Path Info:
E:\Android\SDKJ6\bin\javac.exe
E:\Android\SDKA\platforms\android-10\Android.jar

Thanks & Regards
Dave

:sign0104:
 
Last edited:

WirezFree

Member
Licensed User
Longtime User
[Solved] Compile Errors

Hi All,

I uninstalled the Java SDK(eventualy, seperate thread).
Then I re-installed it, now it is working. :sign0060:

Currently using the tutorial, and have enabled Wireless Bridge to Device.
Just tweaking and observing the results, almost real-time on the device.

Thanks
Dave
:sign0104:
 
Upvote 0
Top