Skip to main content

Error -- building MIDP using scratchbox

2 replies [Last post]
Joined: 2007-05-23

Dear All,

I was trying to build MIDP of PhoneME on linux i386 PC using scratchbox, GCC version 3.4.4 and G++ 3.4.4.

The error is,
... converting OTA images to raw format
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/yogesh/j2sdk1.4.2_13/jre/lib/i386/ cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(


The error is solved by adding X AWT related files to JRE/lib/i386 directory.

It seems that JRE uses some X related files. THis error only occurs while using scratchbox and these files are needed by JRE/JDK 1.4.2_13. At runtime there is no dependency for X awt.

Is myassumption correct? Can anyone throw some light on this? Also is this a problem related to GCC or scratchbox?


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-06-15

Did you get Java to run in the SDK_ARMEL? or just the SDK_X86 side of the Scratchbox?

It sounds like you are building for the i386 version, but I'm hoping you are trying to get this running on an ARM processor. :) Can't get Java to execute in scratchbox when target is ok for i386.

Thanks for any info

Joined: 2006-10-18


I believe this problem is in image ROMizer too which needs to read source images, decode them and write an internal representation. This tool written as desktop Java application and thus requires your JRE to have appropriate codecs to decode image files. These I believe are used from X (that actually depends on how your JRE is implemented, that is why the problem might not exist on other platforms)

As what concerns phoneME runtime - it contains all supported image codes statically linked and thus does not have any external dependency. Please note that this is true for MIDP API for image processing. Sound processing in MIDP (Audio Building Block) and images and sound in JSR 135 may require platform support to work properly