Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-09-2018, 06:25 PM   #1
ItalianUruguayan
Connoisseur
ItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplane
 
ItalianUruguayan's Avatar
 
Posts: 52
Karma: 55058
Join Date: Mar 2018
Location: Spain
Device: Kobo Glo HD
Help trying to run this java app (Calendar, notepad, weather...)

Looking for cool things on Google Code I came across these nice old project, called Koper: https://code.google.com/archive/p/ko...lingKoper.wiki

It's a Java app that has an ebook reader, a calendar, a notepad, a weather application and more.

Some screenshots:





Unfortunately, after following its installing instructions, it does not work at all in my Kobo. But it works perfectly on my computer when I open it with the Java runtime environment

Inside the Kobo, running the "java" binary does not produce any output. In Debian, typing "java" gives this:

Quote:
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-client to select the "client" VM
-zero to select the "zero" VM
-dcevm to select the "dcevm" VM
-server is a synonym for the "client" VM [deprecated]
The default VM is client,
because you are running on a server-class machine.


-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose:[class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
Warning: this feature is deprecated and will be removed
in a future release.
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -no-jre-restrict-search
Warning: this feature is deprecated and will be removed
in a future release.
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions with specified granularity
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions with specified granularity
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
See http://www.oracle.com/technetwork/ja...ion/index.html for more details.
So I guess that the problem here is that java does not run successfully at the Kobo.

I was wondering if any of you Java wizards out there knew what I need to do in order to be able to run this

ItalianUruguayan is offline   Reply With Quote
Old 04-10-2018, 05:48 PM   #2
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
The Kobo firmware does not include Java. If you want to run a Java app, you need to build Java first. I don't remember if anyone has done this.
davidfor is offline   Reply With Quote
Advert
Old 04-11-2018, 02:31 PM   #3
labero
Junior Member
labero is fluent in JavaScript as well as Klingon.labero is fluent in JavaScript as well as Klingon.labero is fluent in JavaScript as well as Klingon.labero is fluent in JavaScript as well as Klingon.labero is fluent in JavaScript as well as Klingon.labero is fluent in JavaScript as well as Klingon.labero is fluent in JavaScript as well as Klingon.labero is fluent in JavaScript as well as Klingon.labero is fluent in JavaScript as well as Klingon.labero is fluent in JavaScript as well as Klingon.labero is fluent in JavaScript as well as Klingon.
 
Posts: 4
Karma: 4734
Join Date: Jun 2016
Device: Kobo Glo HD
I'm running a java application on the Kobo Glo HD. You can download the correct ARM distribution from Oracle, unpack and then run:

http://www.oracle.com/technetwork/ja...s-2133151.html
labero is offline   Reply With Quote
Old 04-12-2018, 08:25 AM   #4
ItalianUruguayan
Connoisseur
ItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplane
 
ItalianUruguayan's Avatar
 
Posts: 52
Karma: 55058
Join Date: Mar 2018
Location: Spain
Device: Kobo Glo HD
Quote:
Originally Posted by labero View Post
I'm running a java application on the Kobo Glo HD. You can download the correct ARM distribution from Oracle, unpack and then run:

http://www.oracle.com/technetwork/ja...s-2133151.html
Thanks Now Java seems to work, but after executing the command suggested by the guide I get this message:

Quote:
User directory: /mnt/onboard/koper
/qte/lib:lib::/usr/java/packages/lib/arm:/lib:/usr/lib
And then nothing happens. The app should have launched. Weird

BTW, which Java apps are you running on your device? Just curious.
ItalianUruguayan is offline   Reply With Quote
Old 04-12-2018, 08:56 AM   #5
traycold
Connoisseur
traycold doesn't littertraycold doesn't litter
 
Posts: 63
Karma: 196
Join Date: Oct 2010
Device: Kobo Glo Hd, Kobo H2O2
Not completely sure about it, but I guess that to run java code that can display to screen, you need some kind of driver to write to framebuffer. Also, if you need to catch touchscreen events, you need some driver for it.
And I never heard of them, at least on this forum (nobody made java development on kobo for what I know).
traycold is offline   Reply With Quote
Advert
Old 04-12-2018, 09:13 AM   #6
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
Do you setting up Java environment variables?
Spoiler:
Code:
# export JAVA_HOME=/opt/java/jdk-x.x.x/ (where you have installed)
# export JRE_HOME=$JAVA_HOME/jre
# export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
jcn363 is offline   Reply With Quote
Old 04-12-2018, 10:17 AM   #7
latepaul
Wizard
latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.
 
latepaul's Avatar
 
Posts: 1,270
Karma: 10468300
Join Date: Dec 2011
Device: a variety (mostly kindles and kobos)
FYI - here's the original thread about this app from 2012. I don't think sven has been around for a while, but you could try PMing him.
latepaul is offline   Reply With Quote
Old 04-12-2018, 12:14 PM   #8
ItalianUruguayan
Connoisseur
ItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplaneItalianUruguayan makes transoceanic flights without the assistance of an airplane
 
ItalianUruguayan's Avatar
 
Posts: 52
Karma: 55058
Join Date: Mar 2018
Location: Spain
Device: Kobo Glo HD
Quote:
Originally Posted by jcn363 View Post
Do you setting up Java environment variables?
Spoiler:
Code:
# export JAVA_HOME=/opt/java/jdk-x.x.x/ (where you have installed)
# export JRE_HOME=$JAVA_HOME/jre
# export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
Thank you! This has made it work

The screen buttons are too small and there is some unexpected behavior, but that should be easy to fix.
ItalianUruguayan is offline   Reply With Quote
Old 04-14-2018, 05:27 PM   #9
labero
Junior Member
labero is fluent in JavaScript as well as Klingon.labero is fluent in JavaScript as well as Klingon.labero is fluent in JavaScript as well as Klingon.labero is fluent in JavaScript as well as Klingon.labero is fluent in JavaScript as well as Klingon.labero is fluent in JavaScript as well as Klingon.labero is fluent in JavaScript as well as Klingon.labero is fluent in JavaScript as well as Klingon.labero is fluent in JavaScript as well as Klingon.labero is fluent in JavaScript as well as Klingon.labero is fluent in JavaScript as well as Klingon.
 
Posts: 4
Karma: 4734
Join Date: Jun 2016
Device: Kobo Glo HD
Quote:
Originally Posted by ItalianUruguayan View Post
BTW, which Java apps are you running on your device? Just curious.
I've made an own "information screen" written in Java. Unfortunately at the time of coding the information screen I didn't manage to find a library that could draw to the framebuffer, so I made my own. Perhaps I should check how koper is drawing on the display...

Last edited by labero; 04-15-2018 at 01:29 AM.
labero is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
InkPad Notepad (Amazon) Free app crich70 Writers' Corner 2 03-15-2015 09:34 PM
Possible to run Java .jar's directly? CaelThunderwing Kindle Developer's Corner 8 12-07-2011 05:49 AM
Notepad app for Kindle wyndslash Amazon Kindle 11 03-20-2011 07:56 PM
how to run BBeBook.java amudha Sony Reader 1 03-08-2007 07:38 PM
[Apple]Java Embedding Plugin 0.9.2: Force java to run in browsers other than Safari Zire Lounge 4 05-24-2005 09:12 PM


All times are GMT -4. The time now is 08:48 PM.


MobileRead.com is a privately owned, operated and funded community.