@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!![]()
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:
@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:
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:
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.
% New UNIX password:
> penis
BAD PASSWORD: it's WAY too short
% New UNIX password:
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.![]()
% New UNIX password:
> penis
BAD PASSWORD: it's WAY too short
% New UNIX password:
Good job!Originally Posted by cytux
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!![]()
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:
@cytux:Originally Posted by 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:Originally Posted by 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?![]()