[EHS5] Properties class

79 views
Skip to first unread message

eppie

unread,
Apr 11, 2014, 10:54:32 AM4/11/14
to java...@googlegroups.com
I'm trying to compile my old TC65I / ABC2 code to the new EHS5 platform. The problem I encounter is that the Properties class cannot be found on the new SDK. Anyone any idea? In the two previous SDK's is was in the package 'com.sun.midp.io'.

Ondřej Janovský

unread,
Apr 14, 2014, 4:43:38 AM4/14/14
to java...@googlegroups.com
Hello,

I found it, it was moved to com.sun.midp.util.Properties. I did't test it, I hope, that will be ok.

Regards
  Ondrej


On 04/11/2014 04:54 PM, eppie wrote:
I'm trying to compile my old TC65I / ABC2 code to the new EHS5 platform. The problem I encounter is that the Properties class cannot be found on the new SDK. Anyone any idea? In the two previous SDK's is was in the package 'com.sun.midp.io'.

--
javacint group - http://www.javacint.com/
---
You received this message because you are subscribed to the Google Groups "Cinterion Java enabled chips support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javacint+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

eppie

unread,
Apr 15, 2014, 7:17:30 AM4/15/14
to java...@googlegroups.com
I got the message: package [b]com.sun.midp.util[/b] does not exist when importing [b]com.sun.midp.util.Properties[/b] :(

Also neatbeans is unable to fix the import. Maybe do I need an external lib? (Like ATCommand which is moved to a separate library cwmlib_1.0.0.jar).

Another strange thing is that the Properties class is also not mentioned in the WTK javadoc while this was case in the WTK javadoc of TC65i/ABC2.

eppie

unread,
Apr 15, 2014, 7:39:26 AM4/15/14
to java...@googlegroups.com
Update:

It only works when I include the following zip file as library/resource in my project: C:\Program Files\Cinterion\CMTK\EHS5\WTK\runtimes\impng\lib\all_classes.zip.
Looks a little strange to me?

Tried

Ondřej Janovský

unread,
Apr 15, 2014, 8:40:08 AM4/15/14
to java...@googlegroups.com
Yes,  all_classes.zip is included in my project too.

eppie

unread,
Apr 15, 2014, 8:59:24 AM4/15/14
to java...@googlegroups.com
How did you find this out? Cannot find it in the documentation.

Ondřej Janovský

unread,
Apr 15, 2014, 9:14:21 AM4/15/14
to java...@googlegroups.com
I was looking for some class for import and I was trying to add others "Optional packages". I was lucky, but I forgot about it.
You are right, it is not in documentation. Many informations missing in documentation. For example, about serial ports and its sleeping mode.
Reply all
Reply to author
Forward
0 new messages