Hi Gary,

I know that the Emulator for S60 is extremely slow, that is not a topic
related to eclipseme.
If you do not escpecially need a S60 Emulator, try using the latest
Nokia S40 Emulator - that one is working well.

The other problems... i am currently not running my windows box and
therefor cannot take a closer look.

Greetings,
Markus

Gary Plante schrieb:
> Markus,
> 
> The 3 problems I had using the Nokia S60 Emulator are:
> 1. Debugging as Midlet (zip exception)
> 2. Debugging as JAD (file:// problem)
> 3. Debugging as JAD (Emulator error -10505)
> 
> I have done some more tests, and the results are:
> 
> 1. Debugging as Midlet (zip exception)
> 
> This problem still remains. Playing with the command line shows that if you
> specify a classpath then this error occurs.
> 
> 2. Debugging as JAD (file:// problem)
> 
> There is still a problem, but you can work around it:
> 
> If you delete the "file://" prefix then the "Create, manage, and run
> configurations" dialog reports an error ->  "Invalid JAD URL specified" and
> disables the debug button. The work-around is to apply the changes and run
> it from the menu/toolbar.
> 
> 3. Debugging as JAD (Emulator error -10505)
> 
> This was entirely my mistake. I did not fill in all the required properties
> for the JAD (in the "Application Description Editor")
> 
> 
> 
> 
> In addition, the Emulator takes extremely long to start up, and I had to set
> the "Debug Server Delay" (in the J2ME preferences) to 120000 (in addition to
> your recommended Debug settings).
> 
> The upshot of all this is that I can now run the emulator from Eclipse.
> 
> Thanks,
> 
> Gary.
> 
> 
> 
> -----Original Message-----
> From: Markus Sinner [mailto:[EMAIL PROTECTED]
> Sent: 08 August 2007 06:45 PM
> To: eclipseme-users@lists.sourceforge.net
> Cc: Gary Plante
> Subject: Re: [Eclipseme-users] Nokia S60 Emulator Jar Problem
> 
> 
> Hello Gary,
> 
> please always answer to the mailing list :-)
> 
> I think the file-problem i have reportet in the past. Does it work, if
> you delete the file:// prefix? And could you paste the contents of the
> deployed Jad-File, which is used by S60-Emulator?
> 
> Greetings,
> Markus
> 
> Gary Plante schrieb:
>> Hi Markus,
>>
>> I am using the "Midlet:" option. I have also tried switching off my
>> virus-scanner, but it has no effect.
>>
>>
>>
>> I have now also tried the "JAD URL:" option and the jar file problem goes
>> away - but then launching the emulator fails (Symbian error -10505)?
>>
>> If I remove the reference to the jar file from the Jad file, and then use
>> the "JAD URL:" option (have to add the classpath as extra emulator
>> parameters) then it seems to complete the startup sequence OK, but the
>> debugger doesn't connect and the test Midlet throws an exception in the
>> emulator.
>>
>> If I use "JAD URL:" option and point it to a JAD/JAR file created by
>> NetBeans (sorry, I am desperate) then it loads and connects OK!
>>
>> I hope this helps.
>>
>> Thanks,
>>
>> Gary
>>
>> PS. When you set up the "JAD URL:" option, then the dialog will only
> accept
>> the url if it starts with "file:/..." - but this causes the emulator to
> not
>> recognise the file. Manually deleting the "file:" seems to work even if
> the
>> dialog complians that it is invalid.
>>
>>
>> -----Original Message-----
>> From: Markus Sinner [mailto:[EMAIL PROTECTED]
>> Sent: 08 August 2007 03:00 PM
>> To: 'eclipseme-users@lists.sourceforge.net'
>> Cc: Gary Plante
>> Subject: Re: [Eclipseme-users] Nokia S60 Emulator Jar Problem
>>
>>
>> The problem may be, that the JAD-File does not contain the correct
>> filesize of the Jar. How do you run the emulator/which of the fallowing
>> methods are you using?
>> - "Midlet:"
>> - "JAD URL:"
>> - "Over the Air"
>>
>> Another problem with the S60 Emulator is an active virus-scanner. I
>> could not run the S60 Emu until I added the installation-path of my
>> S60-SDK to the directories to be ignored by that scanner.
>>
>> Greetings,
>> Markus
>>
>> Gary Plante schrieb:
>>> Hi.
>>>  
>>> I am trying to run some of the Nokia SDK samples on the Nokia S60
>>> emulator. The emulator launches, but at the 'Create Jar File' step it
>>> always fails with an exception (see below). If I run the emulator from
>>> the command line (using the class files; not the jar file), then it
>>> seems to run OK.
>>>  
>>> Do you have any ideas what the problem could be?
>>>  
>>> System Info:
>>>  
>>> Eclipse:        3.3.0 (tried 3.2 too)
>>> EclipseME:   1.7.3
>>> Java SDK:     j2sdk1.4.2_15
>>> Windows:     XP
>>> S60 SDK:    S60_3rd_MIDP_SDK_FP1
>>>  
>>> The Symbian SDK error dialog box shows:
>>>  
>>> Jar file could not be initialized.
>>> Caught Exception:
>>> java.util.zip.ZipException:invalid entry compressed size (expected 919
>>> but got 923 bytes)
>>> java.util.zip.ZipOutputStream.closeEntry(Unknown Source)
>>> ...
>>>  
>>> The log file shows:
>>>  
>>> !ENTRY eclipseme.core 1 0 2007-08-03 10:55:47.066
>>> !MESSAGE Command line: cmd /c emulator.exe -Xdebug
>>> -Xrunjdwp:transport=dt_socket,suspend=y,server=y,address=2485 -classpath
>>>
> C:\work\sbb\j2me\nokiaS60\HelloWorld\.eclipseme.tmp\emulation\HelloWorld.jar
>>> -Xdevice:S60Emulator
>>>
> -Xdescriptor:C:\work\sbb\j2me\nokiaS60\HelloWorld\.eclipseme.tmp\emulation\H
>> elloWorld.jad
>>> com.nokia.midp.examples.lcdui.helloworldplus.HelloWorldPlusMIDlet
>>>  
>>> !ENTRY eclipseme.core 4 120 2007-08-03 10:56:48.525
>>> !MESSAGE Couldn't connect to virtual machine
>>> !STACK 0
>>> java.net.ConnectException: Connection refused: connect
>>>  at java.net.PlainSocketImpl.socketConnect(Native Method)
>>>  at java.net.PlainSocketImpl.doConnect(Unknown Source)
>>>  at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
>>>  at java.net.PlainSocketImpl.connect(Unknown Source)
>>>  at java.net.SocksSocketImpl.connect(Unknown Source)
>>>  at java.net.Socket.connect(Unknown Source)
>>>  at java.net.Socket.connect(Unknown Source)
>>>  at java.net.Socket.<init>(Unknown Source)
>>>  at java.net.Socket.<init>(Unknown Source)
>>>  at
>>>
> org.eclipse.jdi.internal.connect.SocketTransportService$2.run(SocketTranspor
>> tService.java:136)
>>>  at java.lang.Thread.run(Unknown Source)
>>>  
> 
> 
> 
> 
> 
> This e-mail is sent on the Spescom Terms and Conditions 
> that can be accessed by clicking on this link 
> http://www.spescom.com/email.html

-- 

*********************************
[EMAIL PROTECTED]
http://www.psitronic.de

psitronic IT-Solutions
Markus Sinner
W-Rathenau-Str. 14 - 68642 Bürstadt
Tel.: (+49)6206 / 963513
Fax:  (+49)6206 / 963514

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Eclipseme-users mailing list
Eclipseme-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/eclipseme-users

Reply via email to