Skip to main content

Starting JTHarness with ME framework

1 reply [Last post]
arturoguedez
Offline
Joined: 2007-04-17
Points: 0

Hi,

I am trying to start the JTHarness tool using the ME plugin (https://cqme.dev.java.net/) but I am not having any luck. I have gone over the whitepapers, and every document I could find online and they are all very descriptive, but none tell me how to start the harness with J2ME framework.

I know there has to be something specific in the way JTHarness has to be started to tell it to be specific to J2ME because I found this picture http://weblogs.java.net/blog/alexeyp/archive/Export.png, and it shows how the configuration editor has J2ME specific properties.

We are currently starting the harness with "java -jar javatest.jar" and it starts fine, and we can run simple tests, but when we try to test a class that creates a midlet we get a UnsatisfiedLinkException:

Exception in thread "main" java.lang.UnsatisfiedLinkError: getProperty0
at com.sun.midp.main.Configuration.getProperty0(Native Method)
at com.sun.midp.main.Configuration.getProperty(Configuration.java:33)
at com.sun.midp.midlet.Scheduler.getScheduler(Scheduler.java:142)
at com.sun.midp.midlet.MIDletState.(MIDletState.java:293)
at javax.microedition.midlet.MIDletProxy.(MIDletProxy.java:33)
at javax.microedition.midlet.MIDlet.(MIDlet.java:70)
at samples.SampleTestMidlet.(SampleTestMidlet.java:11)
at samples.FitstTest.run(FitstTest.java:42)
at samples.FitstTest.main(FitstTest.java:34)

and so we assume there has to be something about the runtime - which should be specific to J2ME.

Any help is much appreciated.

Regards,

Arturo

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
m_gorshenev
Offline
Joined: 2006-10-12
Points: 0

There is a cross posting in cqME Interest forum. I provided an answer there.
(http://forums.java.net/jive/thread.jspa?messageID=212783&#212783)

Mikhail