pyjnius "jnius.JavaException: Class not found 'org/renpy/android/PythonActivity"

2,080 views
Skip to first unread message

Padraic Cunningham

unread,
Dec 2, 2013, 6:42:48 AM12/2/13
to kivy-...@googlegroups.com
Why am I getting the error:
"jnius.JavaException: Class not found 'org/renpy/android/PythonActivity"
I have done the distribute.sh command and have created a python file with example code in the src folder.
When I do print(os).listdir("."), I see the org and com directories listed so they are in the same folder.
Am I missing something obvious? 
Thanks,
Padraic

Ben Rousch

unread,
Dec 2, 2013, 7:00:06 AM12/2/13
to kivy-...@googlegroups.com

Can you post the whole log?

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Padraic Cunningham

unread,
Dec 2, 2013, 8:00:53 AM12/2/13
to kivy-...@googlegroups.com
Sorry, which log?

Ben Rousch

unread,
Dec 2, 2013, 8:02:45 AM12/2/13
to kivy-...@googlegroups.com
Everything output when you run the build command
--
 Ben Rousch
   bro...@gmail.com
   http://clusterbleep.net/

Josh Scherbenski

unread,
Dec 29, 2013, 2:16:00 AM12/29/13
to kivy-...@googlegroups.com
Has there been any resolution to this? I am having the same problem.

I can see the java class files are along the set CLASSPATH, yet importing any renpy class doesn't work. All other java classes seem to work.

Getting this error.

  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/jnius/reflect.py", line 150, in autoclass
    c = find_javaclass(clsname)
  File "jnius_export_func.pxi", line 23, in jnius.find_javaclass (jnius/jnius.c:10358)
jnius.JavaException: Class not found 'org/renpy/android/PythonActivity'

Miguel Angel Pascual

unread,
Jan 7, 2014, 10:50:43 AM1/7/14
to kivy-...@googlegroups.com
I am having the same problem. I have spent many hours with this. Has anybody experienced this problem and solve it?

Thanks in advance.

qua-non non

unread,
Jan 7, 2014, 5:27:15 PM1/7/14
to kivy-...@googlegroups.com
@padriac @josh @miguel guys the PythonActivity class and other android specific classes are only available on android and will only work on android. Make sure you do your android tests on android. You can use http://github.com/kivy/kivy-remote-shell for your tests.

Best regards


--

Yanyan Zhuang

unread,
Mar 19, 2015, 6:28:09 AM3/19/15
to kivy-...@googlegroups.com
I installed kivy-remote-shell but got timeout every time I ssh: ssh -p8000 admin@serverip

Has anybody else had such a problem?

Yanyan

qua non

unread,
Mar 19, 2015, 8:09:52 AM3/19/15
to kivy-...@googlegroups.com
You need to have your comp and your device on the same wifi network.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages