Join Today
+ Reply to Thread
Page 1 of 9 12345 ... LastLast
Results 1 to 10 of 81
  1. #1
    Join Date
    Jun 2005
    Location
    Houston, USA
    Posts
    349

    Default J2ME development for the e680(i)

    Well guys,

    I like to act fast, so I opened this thread. In my eyes, the development of apps for the phone in J2ME will open the whole e680 world for the programmer, because the moto devkit has huge support for pim applications (it should possible to have access to the phonebook, calendar events and so on), even bluetooth, timers and so on.

    @rpconnect:

    eclipse is a huge developer framework becoming popular in the last years. It runs also under linux.

    The j2me plugin for eclipse may be installed automaticly via eclipse. Follow the instructions on the website at eclipseme.org.

    There you may also get the link to the motorola plugin:

    http://eclipseme.org/docs/support_wtk.html

    So, you have to first install eclipse, then "update" to eclipseme and then install the motorola kit. Unfortunately, the moto kit is only for windows. So I installed it under windows, but on a partition, which is readable under linux. Then I copied the installed moto party to a linux partition and voila, the eclipseme plugin recognized it. But I don't know if it will run without errors. Let's try - most is in java. I gues, the emulator won't work. But I have a real phone.

    I managed also, (I don't know anymore how) to produce a jar file with simply does nothing.

    @whiteb0x:

    Thanks a lot for this offer! In the moment I have so much questions, that it would take your time some years. Well, I am not a newbie in developing something. I developed in much languages, as is assembler, forth, delphi, basic and so on - even for profit. So I hope I will get this j2me stuff but it will take me learning something for myself.

    But, ok, two installation questions I have:

    1. When I have installed the moto devkit there are the whole libs in a zip file. And when I enter the eclipseme settings menu @ platformcomponents then it shows for example in one line "midp.zip blablabla" and one line under this line "Source Attachment: (None)". Is this ok, or have I make a link or unzip the midp.zip?

    2. I installed blackdown as jdk. Is this ok or do I need suns jdk?

    @rpconnect, whiteb0x:

    Hey it would be cool to develop together some nice applications, hehe.
    % New UNIX password:
    > penis
    BAD PASSWORD: it's WAY too short
    % New UNIX password:

  2. #2
    Join Date
    Jun 2005
    Location
    Houston, USA
    Posts
    349

    Default Re: J2ME development for the e680(i)

    @maxx:

    Ooops, I saw that you opened the development forum after posting this. May you please move this thread to this forum? Thank you!

    Well and fast done. Thanks a lot, maxx!
    % New UNIX password:
    > penis
    BAD PASSWORD: it's WAY too short
    % New UNIX password:

  3. #3
    Join Date
    Jun 2005
    Location
    Houston, USA
    Posts
    349

    Default Re: J2ME development for the e680(i)

    Well, I modified the Motorola_...J2ME.xml so that only M3 (this one for the e680) is used with success. But I get a problem, because there are exe files in definitions there and I am using eclipse under llinux:

    <?xml version="1.0"?>
    <!DOCTYPE JVMDB SYSTEM "JVMDB.dtd">

    <jvmdb>

    <jvm>
    <id>MOJM3</id>
    <jvmtype>typeCLDC</jvmtype>
    <name>Monty</name>
    <vendor>Motorola</vendor>
    <classpath type="plist">
    <cpentry use="compile" installrelative="true">EmulatorM.3\lib\midp.zip</cpentry>
    </classpath>
    <classpath_debug type="plist">
    <cpentry use="compile" installrelative="true">EmulatorM.3\lib\midp.zip</cpentry>
    </classpath_debug>
    <preverify_exe installrelative="true">EmulatorM.3\bin\preverify.exe </preverify_exe>
    <launchexe installrelative="true">EmulatorM.3\bin\emulator.exe</launchexe>
    <launchexe_debug installrelative="true">EmulatorM.3\bin\emulator.exe</launchexe_debug>
    <commandline>%launchexe% %env_vars% %vm_args% -classpath %classpath% %mainclass% %prog_args%</commandline>
    <commandline_debug>%launchexe_debug% %env_vars% %vm_args% -debugger -suspend -port %port% -classpath %classpath% %mainclass% %prog_args%</commandline_debug>
    <launch_mode>SERVER</launch_mode>
    <timeout>5</timeout>
    <debug_api>JDWP</debug_api>
    <dictionary>swtk103.adict</dictionary>
    <simulator_device type="plist">
    <device type="plist">
    <name>E680</name>
    <screen_size height="276" width="240"></screen_size>
    <device_id>resources\E680.props</device_id>
    </device>
    </simulator_device>
    </jvm>

    </jvmdb>

    Knows anyone how to solve this?
    % New UNIX password:
    > penis
    BAD PASSWORD: it's WAY too short
    % New UNIX password:

  4. #4
    Join Date
    Jun 2005
    Location
    Houston, USA
    Posts
    349

    Default Re: J2ME development for the e680(i)

    Problem solved! I got the sun wtk and copied the bin dir contents to the motorotola bin dir. Then I modified the xml config file and implemented the "new" kit. No error message anymore, when inserting a midlet.

    I have included the new xml config as file if anyone needs this stuff.
    Attached Files Attached Files
    % New UNIX password:
    > penis
    BAD PASSWORD: it's WAY too short
    % New UNIX password:

  5. #5
    Join Date
    Jun 2005
    Location
    Houston, USA
    Posts
    349

    Default Re: J2ME development for the e680(i)

    Ok, here is it now: My first real midlet with a real "Hello World" message for the MFC!

    It was developed completely under linux with eclipse while Motorola stated it's toolkit is only for windows.

    If anybody likes to know what steps to do to develop this way, I'd like to give you some tips.
    Attached Files Attached Files
    % New UNIX password:
    > penis
    BAD PASSWORD: it's WAY too short
    % New UNIX password:

  6. #6

    Default Re: J2ME development for the e680(i)

    Quote Originally Posted by cytux
    Ok, here is it now: My first real midlet with a real "Hello World" message for the MFC!

    It was developed completely under linux with eclipse while Motorola stated it's toolkit is only for windows.

    If anybody likes to know what steps to do to develop this way, I'd like to give you some tips.
    Good job!

    I guess this is your first time on an OO language?

    Would love to develop some applications with you but I'll be entering National Service in about 13days. (In Singapore, all male citizens have to go for 2years national service)

    Having said that, you may want to ask as many questions as you can before I enter NS as I will no longer be able to reply as frequently as I can now. I have a rather in-depth knowledge of J2ME, J2SE & J2EE.

    And when I am back, I would really love to see some great applications created by you or others!

  7. #7
    Join Date
    Jun 2005
    Location
    Houston, USA
    Posts
    349

    Default Re: J2ME development for the e680(i)

    Hello whiteb0x,

    thanks you! But, yes I developed some OO applications in Dr.Dialog which is OOl. And delphi and some other languages.

    2 years? Its a long time. I guess in two years there are much linux phones out there.
    % New UNIX password:
    > penis
    BAD PASSWORD: it's WAY too short
    % New UNIX password:

  8. #8

    Default Re: J2ME development for the e680(i)

    Quote Originally Posted by cytux
    Hey it would be cool to develop together some nice applications, hehe.
    @cytux:
    You Bet!! Thanks for your patient and encouraging responses!

    I had played around with an older version of the Mot J2ME SDK a few months back but was frusterated by the lack of the bluetooth and file manager API's and gave up on the Java option. I am hoping to make a BT connection between the phone and a BT SPP receiver, but it seemed like the only way to connect to a Java app was via a COM port connection, and only USB1 (/dev/ttyUSB0) is returned when asked for available com ports. (getting the phone to initiate the SPP connection is a separate issue I guess...)

    Do you then recommend eclipse over the Mot. J2ME SDK? I am completely new to this and don't really know the best way to get into it.
    (I am trying to load it on a Win XP machine to try it; the eclipse download site is down and before I get too far into it, do recommend that I not waste my time w/ the Win setup and stick to a linux develop. environment?)

    Also, what do you think about building an alternative kvm for the phone that can at least make an additional com port available (e.g. /dev/pts/1, or wherever modemeng connects to after accepting the BT SPP connection)? can something like this even be done? (and if so, could we make it so that it can use an arbitrary network interface such as ppp0 from a BT-ppp connection without having to first make a GPRS connection)

  9. #9
    Join Date
    Feb 2005
    Location
    Singapore
    Posts
    3,206

    Default Re: J2ME development for the e680(i)

    'im going ns on 8th July

    u going in on 10th July?

    i'm going to school 2
    My favorite Motorola development site!


  10. #10

    Default Re: J2ME development for the e680(i)

    Quote Originally Posted by rpconnect
    Quote Originally Posted by cytux
    Hey it would be cool to develop together some nice applications, hehe.
    @cytux:
    You Bet!! Thanks for your patient and encouraging responses!

    I had played around with an older version of the Mot J2ME SDK a few months back but was frusterated by the lack of the bluetooth and file manager API's and gave up on the Java option. I am hoping to make a BT connection between the phone and a BT SPP receiver, but it seemed like the only way to connect to a Java app was via a COM port connection, and only USB1 (/dev/ttyUSB0) is returned when asked for available com ports. (getting the phone to initiate the SPP connection is a separate issue I guess...)

    Do you then recommend eclipse over the Mot. J2ME SDK? I am completely new to this and don't really know the best way to get into it.
    (I am trying to load it on a Win XP machine to try it; the eclipse download site is down and before I get too far into it, do recommend that I not waste my time w/ the Win setup and stick to a linux develop. environment?)

    Also, what do you think about building an alternative kvm for the phone that can at least make an additional com port available (e.g. /dev/pts/1, or wherever modemeng connects to after accepting the BT SPP connection)? can something like this even be done? (and if so, could we make it so that it can use an arbitrary network interface such as ppp0 from a BT-ppp connection without having to first make a GPRS connection)
    @rpconnect:
    I recommend using Sun's Wireless Toolkit (you may get it @ java.sun.com) because it is so light weight and I get to use my own favourite IDE.

    Once you are done, simply get the emulators from moto/nokia/sony ericsson website respectively.

    But eclipse is good as well, as you are able to install plugins to support development in J2EE webservices etc as well.

    I don't recommend getting Moto's WTK though, unless of cause you are solely developing for Moto series. I don't like the stuff coupled in the moto wtk

    @admin: I'm going in 8th july. BMTC School 1. Sigh, life so sucks huh?


 
+ Reply to Thread
Page 1 of 9 12345 ... LastLast

Similar Threads

  1. Good news for J2ME development:
    By cytux in forum Development
    Replies: 1
    Last Post: 11-07-2010, 12:47 AM
  2. Replies: 21
    Last Post: 07-11-2006, 03:53 PM
  3. Does E680/A780 support J2ME optional package JSR75?
    By leopardus2 in forum E680 General Chat
    Replies: 5
    Last Post: 06-21-2006, 04:51 AM
  4. Please guide me how to dev J2ME to my E680
    By overconda in forum Development
    Replies: 29
    Last Post: 10-30-2005, 10:24 PM
  5. Replies: 14
    Last Post: 07-15-2005, 01:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1