[dev65] A little help on TC65 development on Linux...
Mikael Dich
midi at liab.dk
Thu Oct 27 03:44:21 MDT 2011
Dear TC65 Mailing list!
Being a Linux guy, I want to be able to compile java programs for the
Cinterion TC65 and TC65i modems under Linux.
Using jdk1.7.0 and WTK2.5.2, combined with the classes.zip (and
examples) file from Cinetion development suite I have succesfully
compiled some java program for the TC65 modem. These programs are
transferred to the TC65 using the patched obexftp as described on the
webpage:http://www.xargs.com/linux/tc65-linux.html. Next, they are
started using at^sjra=a:/midijava/HelloWold.jad or similar...
As long as I stick to classes and methods from java.* and javax.* my
programs funtions nicely on the TC65. This goes for methods like
System.out.println(...) and commConn.openOutputStream(), i.e. I can do
the examples like HelloWorld.java and RS232Demo.java in the Cinterion
examples suite.
Now, if I include something like:
private ATCommand ATCmd = null;
...
public HelloWorld()
{
try
{
ATCmd = new ATCommand(false);
}
catch (ATCommandFailedException e)
{
...
}
in my java program, the program still compiles nicely, but when I try
to start it on the TC65 platform, I get:
1) JAVA ERROR: MIDlet initialization failed:
java.lang.NoClassDefFoundError: com/cinterion/io/ATCommandFailedException
I now try to include all of com/cinterion/io/AT* in my jar-file
When I now start my program I get:
2) JAVA ERROR: MIDlet initialization failed:
java.lang.Error: UnsatisfiedLinkError: openATCommand
I have tried to compile the FwUpDemo-program on a Windows computer
with a Cinterion installation. After transferring the jar/jad files to
the platform using obexftp I get something similar to 1).
Does anybody have a clue to what I do wrong?
With the hope that somebody out there is smarter than me!
Regards
:-) Mikael Dich, LIAB ApS
------------------------------------------
Compile commands:
/usr/lib/jvm/jdk1.7.0/bin/javac -source 1.4 -target 1.4 -O -bootclasspath
\
./lib/classes.zip -d ./tmpclasses src/HelloWorld.java
/usr/lib/jvm/WTK2.5.2/bin/preverify -target CLDC1.0 -classpath \
./lib/classes.zip -d ./classes ./tmpclasses
/usr/lib/jvm/jdk1.7.0/bin/jar cfm ./bin/HelloWorld.jar \
./bin/HelloWorld.jad.base -C ./classes HelloWorld
For the preverifier, I have tried several combinations of -nofinalize,
-nonative and CLDC1.[01]
More information about the dev65
mailing list