Skip to main content

Using the WTK under Debian Linux?

19 replies [Last post]
lorancou
Offline
Joined: 2007-10-15
Points: 0

Hi everybody,

I'm trying to use WTK 2.5.2 under Debian Linux (sid).
I use the latest java packages from debian servers (sun-java6-jre, sun-java6-jdk).

The installation runs well:

<br />
$ ./sun_java_wireless_toolkit-2_5_2-linux.bin<br />
[snip]<br />
Extracting the installation files...<br />
Documentation for the Sun Java(TM) Wireless Toolkit<br />
2.5.2 for CLDC is in the file<br />
  /opt/wtk/index.html<br />
In order to start using the Sun Java(TM) Wireless Toolkit 2.5.2 for CLDC, please run<br />
  /opt/wtk/bin/ktoolbar<br />

So do the ktoolbar, even if I get some messages:

<br />
$ /opt/wtk/bin/ktoolbar<br />
OTA server emulation started ...<br />
Warning: HTTPS server not started!<br />

I can run any example project, I get the emulator window displayed. The device screen doesn't list the available MIDlets as it usually do (under my Windows WTK), it stays plain blank... and disappears about 5 seconds later without any log / error report. ktoolbar doesn't crash though, it simply remains open and displays:

<br />
Project "Audiodemo" loaded<br />
Running with storage root /root/j2mewtk/2.5.2/appdb/DefaultColorPhone<br />

I've got the same behavior by running any .jad with the emulator via the command line. I also tried with the previous version of the toolkit (2.5.1) and got the same result.

Is that normal?
Is there any way to have some more info on why the emulator exits abruptly?

Thanks for you attention, I hope I was clear :)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
lorancou
Offline
Joined: 2007-10-15
Points: 0

I don't have any firewall running. Iptables is empty:
[code]
# iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[/code]

And here's the output with lime debug infos :
http://lorancou.free.fr/vrac/wtk/log

The only noticeable thing I can tell is that there is an idle time between the following two lines (this happens pretty much at the same time than the windows appearing):
[code]
EMDevice:EMDevice.paint(Unknown Source: Redrawing input controls
KVMBridge:KVMBridge.disconnectLime(Unknown Source: Disconnecting Lime
[/code]

Any idea?
Anyone using WTK under Debian?

pictureco
Offline
Joined: 2007-10-15
Points: 0

Check your firewall if its setting isn't too restrictive. There is interaction over sockets between kvm running j2me code and javase emulation part of the toolkit. Firewall can deny the connection which causes kvm exit unexpectedly on startup.

good luck
-Tom

terrencebarr
Offline
Joined: 2004-03-04
Points: 0

No, there is not. You can search the forums for previous postings on the topic. Developers either use one of the emulators (mpowerplayer, microemu, etc) or run WTK on Windows under Paralles or VMWare.

-- Terrence

rzr
Offline
Joined: 2005-01-25
Points: 0

hi,
IICR, j2me was said to be opensourced , but I havent see anything yet , is there ?

this way I'll can build and DISTRIBUATE a deb package of wtk...

Last stuff , latest version is only for windows ? how comes ?

Regards

--
http://rzr.online.fr/q/j2me

Kim Daniel Arthur

Hi,

Google for powerplayer should help you out :)

kim

On 17/10/07 11:56, "Lokesh Joshi" wrote:

> Hi All,
> is there any way to have WTK on Mac ? Pls help,
> Thanx
> Lokesh
>
> On 10/17/07, meinterest@mobileandembedded.org
>
> wrote:
>> Can't see anything that should cause such behavior :(
>> Do you have any firewall running?
>>
>> pls try to add into runtime.properties following line:
>> lime.debug: true
>> [Message sent by forum member 'pictureco' (pictureco)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=240504
>>
>> ===========================================================================
>> To unsubscribe, send email to listserv@java.sun.com and include in the body
>> of the message "signoff KVM-INTEREST". For general help, send email to
>> listserv@java.sun.com and include in the body of the message "help".
>
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

rzr
Offline
Joined: 2005-01-25
Points: 0

Any success to run wtk3 (win) on linux or wine ?
http://forums.java.net/jive/thread.jspa?messageID=353365&#353365

lorancou
Offline
Joined: 2007-10-15
Points: 0

I still have the issue, so bug report filled. Let's hope somebody will take it in consideration :)

jurajsvec
Offline
Joined: 2007-08-08
Points: 0

I tried it once more but cannot reproduce your problem. I downloaded latest debian sid live-cd, installed sun-java5-jdk, installed WTK 2.5.2. Everything works without any problem. Can you please try WTK on clean debian installation an provide me with your steps if it still does not work?

lorancou
Offline
Joined: 2007-10-15
Points: 0

Sheeeh, finally I got it :)

A long time ago, I defined the following system variables in my .bashrc (I can't remember why though):

[code]
export SUBLIME_PROC_ID=0
export LIME_TMP_DIR=/home/stach/temp
[/code]
Once removed, everything runs fine... I have absolutely no idea of what is a sublime proc id and what is the lime temp dir, but those values were probably not what the emulator expected. Maybe this is not a bug at all.

Sorry for having so heavily insisted on that (I'm quite ashamed for having forgot those variables), I'm gonna update the bug report right now!

jurajsvec
Offline
Joined: 2007-08-08
Points: 0

Great :), this is definitely the reason why it did not worked. Lime is used as IPC mechanism in emulator and if you override the internal values (which of course may differ between emulator runs) it wont work.

sfitzjava
Offline
Joined: 2003-06-15
Points: 0

lorancou,

What's in your /etc/hosts file?
Is it setup for both TCP/IP V6 and V4 running?
Sometimes in the past when I had just the line "::1 ip6-localhost" in it without a "127.0.0.1 localhost" and that would mess with the servers running in WTK and it would not run my midlets.

Just a thought

Regards,
-Shawn

lorancou
Offline
Joined: 2007-10-15
Points: 0

Good idea, but I think I'm ok with my /etc/hosts:

[code]
127.0.0.1 localhost

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
[/code]

Thanks for you answer though, Shawn, this may help somebody else :)

lorancou
Offline
Joined: 2007-10-15
Points: 0

Seeing other bugs related to /ets/hosts with a bit of googling, I tried using my LAN address instead of the loopback one, but this doesn't work either.

I tried also to disable all network cards. Niet.

Grumbl... any other idea?

jurajsvec
Offline
Joined: 2007-08-08
Points: 0

Try to run it under Java 1.5 (sun-java5-jre, sun-java5-sdk).

lorancou
Offline
Joined: 2007-10-15
Points: 0

Same "error" with sun-java5-jre. If you ask, maybe is that you do use the WTK under Debian? If so, this is specific to me, I'd have to investigate further...
I suppose there is no debug version to test, or even sources (but I believe the WTK is closed source).

pictureco
Offline
Joined: 2007-10-15
Points: 0

Pls create file runtime.properties in wtklib with the following line:
debug.com.sun.kvem = HEAVY

Run any example and the result from the console pls send to pictureco@dev.java.net

lorancou
Offline
Joined: 2007-10-15
Points: 0

Done!

pictureco
Offline
Joined: 2007-10-15
Points: 0

Can't see anything that should cause such behavior :(
Do you have any firewall running?

pls try to add into runtime.properties following line:
lime.debug: true

Lokesh Joshi

Hi All,
is there any way to have WTK on Mac ? Pls help,
Thanx
Lokesh

On 10/17/07, meinterest@mobileandembedded.org <
meinterest@mobileandembedded.org> wrote:
>
> Can't see anything that should cause such behavior :(
> Do you have any firewall running?
>
> pls try to add into runtime.properties following line:
> lime.debug: true
> [Message sent by forum member 'pictureco' (pictureco)]
>
> http://forums.java.net/jive/thread.jspa?messageID=240504
>
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body
> of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>

--
{The harder I work, the luckier I get ! (Failure is never an option)}

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]