| Reply | « Previous Thread | Next Thread » |
|
Hello all-
I'm trying to use semacodes (semacode.org) in a python app. The api they provide comes in the form of a java jar, which you send a filename for an image to process. I'd love to not need to use MIDP for this app - python suits it much better, except for the semacode part. In "normal" python, I'd use the commands library: import commands commands.getoutput("java -jar semacode.jar -f some_file.jpg") Commands isn't available in PyS60. Is there an alternative? Thanks, Kevin |
|
Begging... any ideas? Even incomplete hacks of whimsy?
|
|
Quote:
|
|
Local sockets solve the problem of communicating with the Java process once it has been started, but don't help with starting the Java app.
Anyone know what you actually need to do to start a Java application? Is there some VM executable somewhere that you could run and pass the .jar to it as an argument? Python does has e32.start_exe and that has been used successfully to start a web browser from Python. |
|
sorry to bump this up again. has there been any progress on launching generic jar files and get their output back as a string?
cheers, flux |
|
Just had a look at the pys60 sources for the start_exe method. It seems, that only the errorcode is returned back from the executed program. So without modifying semacode.jar to support e.g. sockets, i can't see a way to do it.
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Help : Unable run more than one JAVA Apps on N80, 6680, 6681 ... 6630 | lionel_lhf | Mobile Java Tools & SDKs | 0 | 2006-06-09 05:03 |
| Java Source Code for Guidelines for Game Developers Using Nokia Java MIDP 1.0 Device | edmund66 | Mobile Java General | 0 | 2004-09-15 12:46 |
| Testing HTTP client for Nokia 3650; Looking to share code | nawkboy | Symbian Networking & Messaging | 2 | 2003-09-10 16:30 |
| Will J2ME apps run on all Java enabled phones? | theAntSki | Mobile Java General | 1 | 2002-08-06 20:46 |