Android Question b4x to eclipse

ilan

Expert
Licensed User
Longtime User
Can i open my b4a app in eclipse and run it from there? I know i saw a thread that talks about it but could not do it by myself. Got lots of anywhere error in my eclipse project. Can someone explain how to do it please. A client wants the source code in eclipse unless he wont buy it.

Thank you
 

ilan

Expert
Licensed User
Longtime User
Ok i understand, so it is not possible to sell a source code or can i include a b4a license in the price buy from you a license and sell him the source, is this possible?

If i dont use any libs still need to add references? And how do i add references, sorry for my ignorance i just dont know java and have no experience with eclipse

Thank you
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
If i dont use any libs still need to add references?
Yes. There are always two jars referenced (Core.jar and B4AShared.jar).
can i include a b4a license in the price buy from you a license and sell him the source, is this possible?
Yes, it is possible.

i just dont know java and have no experience with eclipse
Right click on the project - Build Path - Configure - Libraries - Add JARs.
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
After importing the project and adding the external jars i see about 100 warnings. I guess thats not impotent but when i try to run its the app crashes on the simulator.

Should it run on the simulator? Like it does in b4a?
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
Did you manage to fix all the warning messages @ilan?

No.. :(


well in b4a it works fantastic but in eclipse i got this error:

05-13 11:11:41.505: E/AndroidRuntime(933): FATAL EXCEPTION: main
05-13 11:11:41.505: E/AndroidRuntime(933): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{www.sagitaltgd.net/www.sagitaltgd.net.main}: java.lang.ClassNotFoundException: Didn't find class "www.sagitaltgd.net.main" on path: DexPathList[[zip file "/data/app/www.sagitaltgd.net-2.apk"],nativeLibraryDirectories=[/data/app-lib/www.sagitaltgd.net-2, /vendor/lib, /system/lib]]
05-13 11:11:41.505: E/AndroidRuntime(933): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2137)
05-13 11:11:41.505: E/AndroidRuntime(933): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
05-13 11:11:41.505: E/AndroidRuntime(933): at android.app.ActivityThread.access$600(ActivityThread.java:141)
05-13 11:11:41.505: E/AndroidRuntime(933): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
05-13 11:11:41.505: E/AndroidRuntime(933): at android.os.Handler.dispatchMessage(Handler.java:99)
05-13 11:11:41.505: E/AndroidRuntime(933): at android.os.Looper.loop(Looper.java:137)
05-13 11:11:41.505: E/AndroidRuntime(933): at android.app.ActivityThread.main(ActivityThread.java:5103)
05-13 11:11:41.505: E/AndroidRuntime(933): at java.lang.reflect.Method.invokeNative(Native Method)
05-13 11:11:41.505: E/AndroidRuntime(933): at java.lang.reflect.Method.invoke(Method.java:525)
05-13 11:11:41.505: E/AndroidRuntime(933): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
05-13 11:11:41.505: E/AndroidRuntime(933): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
05-13 11:11:41.505: E/AndroidRuntime(933): at dalvik.system.NativeStart.main(Native Method)
05-13 11:11:41.505: E/AndroidRuntime(933): Caused by: java.lang.ClassNotFoundException: Didn't find class "www.sagitaltgd.net.main" on path: DexPathList[[zip file "/data/app/www.sagitaltgd.net-2.apk"],nativeLibraryDirectories=[/data/app-lib/www.sagitaltgd.net-2, /vendor/lib, /system/lib]]
05-13 11:11:41.505: E/AndroidRuntime(933): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
05-13 11:11:41.505: E/AndroidRuntime(933): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
05-13 11:11:41.505: E/AndroidRuntime(933): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
05-13 11:11:41.505: E/AndroidRuntime(933): at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
05-13 11:11:41.505: E/AndroidRuntime(933): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2128)
05-13 11:11:41.505: E/AndroidRuntime(933): ... 11 more

what could be the reason??
 
Upvote 0
Top