ZinedinShiqin / terminal-ide

Automatically exported from code.google.com/p/terminal-ide
0 stars 0 forks source link

javac on adb shell #56

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. export PATH=/data/data/com.spartacusrex.spartacuside/files/system/bin/:$PATH
2. cd /data/data/com.spartacusrex.spartacuside/files/system/src/helloworld
3. javac -verbose hello.java

What is the expected output? 
sucessful

What do you see instead?
Dalvik VM unable to locate class 'hello/java'
java.lang.NoClassDefFoundError: hello.java
    at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: hello.java in loader 
dalvik.system.PathClassLoader[com.spartacusrex.spartacuside.external.javac]
    at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:511)

What version of the product are you using? On what operating system?
terminalide-1.99.apk

Please provide any additional information below.
This works in Terminal IDE but does not via adb shell access

Original issue reported on code.google.com by tungchingkai@gmail.com on 21 Jun 2012 at 4:30

GoogleCodeExporter commented 9 years ago
This problem occurs with any remote login using the out-of-the-box environment, 
though it apparently has a few variations. For example, the error I get is this:

# javac hello.java
Dalvik VM unable to locate class 'com/spartacusrex/spartacuside/external/javac'
java.lang.NoClassDefFoundError: com/spartacusrex/spartacuside/external/javac
        at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: 
com.spartacusrex.spartacuside.external.javac
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
        ... 1 more

I'm using Terminal-IDE version 2.02, I think, downloaded from the Play Store 
just a few days ago. I've put it on an HTC Amaze phone with the latest 
updates...

Original comment by areemt...@gmail.com on 4 Apr 2013 at 3:56