File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes Problems building and running program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Problems building and running program" Watch "Problems building and running program" New topic

Problems building and running program

Matt Shultz

Joined: Oct 24, 2009
Posts: 9

I am writing a program for a Windows Mobile device using Java ME and the Eclipse IDE.
I am currently having 2 major problems with a program I am trying to write, it works fine without any errors or exceptions in the IDE but when I build the file and deploy it to the device I am finding:

1) The program will not load a PNG image on the device. Are images packaged up in the JAR? If not I have tried many diferent paths to the image on the device and also placing the image in every directory available.

2) I am using XML parsers in the program and again this all works fine in the IDE but when I deploy to the device I am getting the following exception

Exception in thread "main" java.lang.NoClassDefFoundError: javax.xml.parsers.ParserConfigurationException

I thought this class would be packaged together when the file was built?

Can someone please tell me where I am going wrong?

Also let me know if you need more info from me

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

Question: Are you using the JME Eclipse plugin to manage this app or are you building it as a regular Java project? JME doesn't support the full feature set of regular Java, so invoking standard Java classes and methods that aren't in your JME profile won't work.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Problems building and running program
It's not a secret anymore!