TerminalIDE 'unable to locate class' error - Android Q&A, Help & Troubleshooting

The thread at:
http://forum.xda-developers.com/showthread.php?t=1340852&page=3
contains a question relating to the Android application TerminalIDE and the following error message:
Dalvik VM unable to locate class 'com/spartacusrex/spartacuside/external/javac'
java.lang.NoClassDefFoundError: com.spartacusrex.spartacuside.external.javac
This issue wasn't resolved in the thread. I found the thread on Google when I had the same problem. Now that I have found a solution I thought I would post it in the hope that others who have the same problem also find it helpful. Unfortunately I'm not allowed to post to the original thread as I haven't posted 10 posts. I expect that this post will be deleted by moderators on the basis that it should be in the developers section, in which case I will give up trying to be helpful to others and go back to my usual selfish ways.
In my case, the above error only appeared when using TerminalIDE via ssh and not when using it directly on the Android device. The solution that worked for me was to amend the BOOTCLASSPATH environment variable. I added the following line to my .bashrc file in the home directory (/data/data/com.spartacusrex.spartacuside/files), then reconnected:
Code:
export BOOTCLASSPATH=/data/data/com.spartacusrex.spartacuside/files/system/classes/android.jar:/system/framework/core.jar:/system/framework/apache-xml.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
For some reason, the BOOTCLASSPATH variable, when connecting via ssh, wasn't the same as that when using it directly on the Android application. The above setting is the value when using it directly on the Android application.

Related

Cant compile apps since update of the android sdk

Since i updated the android sdk manager, installed the android 4 api and updated the eclipse android plugin im not able to compile my apps any more!! Even a reinstall of the plugin and the android sdk didnt help!Everytime i try to compile one of my apps there only appears the message "your project contains errors" and this text on the console: Unable to execute dex: Multiple dex files define Landroid/support/v4/android/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;
Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/v4/android/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;
"conversion to dalvik format failed with error 1".
Does somebody know what i can do now? Thats really bad!
Regards Fleckdalm
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
Oh, sorry i didnt knew that!
For everybody who has the same problem: i fixed it downloading v15.0.1 from here: http://tools.android.com/download
now everything works again
Regards Fleckdalm

ddms issue

I tried using ddms it used to work for me. But it is not now.
Tried executing ddms.bat however the error message says:
03:19:50 E/adb: Failed to get the adb version: Cannot run program
"C:\ANDROI~2\platform-tools\adb": CreateProcess error=193, %1 is not a valid Win32 application
Googling finds lot of solution where it can not find adb.exe however in this case, it does seem to find adb however complains about this not being win32 application. Sure adb is command line app, which I execute from cli but i dont understand why it is complaining this way. Can someone help me out on this? Thanks,
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
Sorry for posting at wrong place. I also figured this out. Thx.
Sent from my SAMSUNG-SGH-I897 using XDA App

[Q] Could not find G:\sdk\tools\adb.exe!

Hello all,
I am a newbie facing a little issue.
Previously I had a running set up of Android 2.2 with eclipse.
Two days before I had started the SDK manager within SDK, and update and install my existing SDK.
I am able to take new updates for Android 2.0 to 4.0.3, but because of this eclipse showing me some strange errors like
"Could not find G:\sdk\tools\adb.exe!" .
I made search for this on net they said I need to give the path of platform-tools instead of tools,
How can I set the path when I suppose to give the path till SDK only ?? (Here I am getting confused)
I had given the two paths in the path environmental variable, but problem remains the same.
Please if any one can help me on this issue, since I want to use the other versions greater than 2.2.
If you don't want to modify the path you gave in eclipse, just copy and paste the contents that you have in 'platform-tools' folder to 'tools' folder (choose replace if any prompts appear).. this worked for me..
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A

Rooting all devices programmatically

Hi there,
I am an android application developer and I'd like to write an application, which is rooting the phone.
There was a time(Android 2.2 and older), when rooting was not really a big thing.
Changing the rwx permissions of two files by running two "chmod" terminal commands was enough on nearly every device to root them.
But then it went more difficult.
There may not be such a simple solution like above, but I keep hoping that it is still possible programmatically. Here is an idea:
We could use Assembler and native C to generate a Puffer overflow by calling a Unix system call like here(http://peterdn.com/post/e28098Hello-World!e28099-in-ARM-assembly.aspx).Then we could get some code, which would be able to change the file permissions coz it's running in Kernel mode, into the Kernel this way.
What do you think of my idea? Write it down! I don't expect code or does anybody here know a Linux kernel exploit
But ideas where we have to look for those would be great.
Questions should be posted in Q&A forums, not Development forums.
http://forum.xda-developers.com/announcement.php?a=81
See rule #15
Thread moved.

Can i copy entire root directory to another dead phone

My k20 pro
Partition's was corrupted
When i try to flash from fastboot or edl first 30 seconds working fine but after that 30sec device freeze not disconnecting from pc but not taking files or write files to pc
But showing device in fastboot devices
But when i send commands it not working
So im able to flash custom recovery because it's just 60mb
So im booted to fastboot
Im able to see all files in root directory can i copy every file from one working device to my phone device
Will it work...?
In general if device's Android is rooted, and ADB is enabled, then you can by means of dd command pull out any files / directories from this device. You also can use the tar command,
If a device is dead then you can't inject files onto it, IMHO.
MOD ACTION:
@naga ravi 259
Thread closed as duplicate of https://forum.xda-developers.com/t/can-copy-root-files-from-one-device-to-another-device.4343863/
Please do not post multiple threads in multiple forums for the same issue. It violates Rule 5:
5. Create a thread topic or post a message only once, this includes external links & streaming media.
As a large forum, we don't need unnecessary clutter. You're free to edit your message as you like, so if you do not receive an answer, revisit your message and see if you can describe your problem better. Not everyone is online at the same time so it might take a while before you receive an answer.
You can bump your unanswered question once every 24 hours
Duplicate threads and posts will be removed
Always post in an existing thread if a topic already exists, before creating a new thread.
Use our search function to find the best forum for your device.
Links to an external source are only allowed if relevant to the topic in hand. A description must be included, no copy & pasting from the original source.
Self-promotion is forbidden, this includes blogs, social media and video channels etc. Random links will be removed.
Click to expand...
Click to collapse

Categories

Resources