Skip to main content

Compile problems with JSR82 in Linux native

3 replies [Last post]
ramon_garcia
Offline
Joined: 2006-11-22
Points: 0

I am trying to compile the phoneME software in Linux/i386 as native with Bluetooth support. I am using java 1.4.2. I see the following errors:

/home/ramon/pdas/j2me-gpl/phoneME_feature/midp/build/linux_qte_gcc/output/generated/classes/com/sun/kvem/jsr082/bluetooth/BCC.java:27: package javax.bluetooth does not exist
import javax.bluetooth.*;
^
/home/ramon/pdas/j2me-gpl/phoneME_feature/midp/build/linux_qte_gcc/output/generated/classes/com/sun/kvem/jsr082/bluetooth/BCC.java:111: cannot resolve symbol
symbol : class DeviceClass
location: class com.sun.kvem.jsr082.bluetooth.BCC
public abstract DeviceClass getDeviceClass();
^
/home/ramon/pdas/j2me-gpl/phoneME_feature/midp/build/linux_qte_gcc/output/generated/classes/com/sun/kvem/jsr082/bluetooth/SDDB.java:30: package javax.bluetooth does not exist
import javax.bluetooth.ServiceRegistrationException;
^
/home/ramon/pdas/j2me-gpl/phoneME_feature/midp/build/linux_qte_gcc/output/generated/classes/com/sun/kvem/jsr082/bluetooth/SDDB.java:31: cannot resolve symbol
symbol : class ServiceRecordSerializer
location: package bluetooth
import com.sun.kvem.jsr082.bluetooth.ServiceRecordSerializer;

[...]

This seems to be due to not enough Java classes being included in the compilation. The javac command line is

/usr/lib/jvm/java-1.4.2/bin/javac -g:none -d /home/ramon/pdas/j2me-gpl/phoneME_feature/midp/build/linux_qte_gcc/output/tmpclasses -bootclasspath :/home/ramon/pdas/j2me-gpl/phoneME_feature/midp/build/linux_qte_gcc/output/classes -classpath /home/ramon/pdas/j2me-gpl/phoneME_feature/midp/build/linux_qte_gcc/output/classes @/home/ramon/pdas/j2me-gpl/phoneME_feature/midp/build/linux_qte_gcc/output/javalist.txt @/home/ramon/pdas/j2me-gpl/phoneME_feature/midp/build/linux_qte_gcc/output/genjavalist.txt

Further debugging these makefiles seems to be too difficult.

Reply viewing options

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

Now I think I know what happend.

Ramon, is it true that you have compiled the project without JSR82, then added USE_JSR_82 and JSR_82_DIR and launched make without cleaning the output?

If so, please run "make clean" in phoneME_feature/midp/build/linux_qte_gcc/, then try again. Unfortunaly the build system does not involve optional packages correctly without clean.

ramon_garcia
Offline
Joined: 2006-11-22
Points: 0

Thanks.

Yes, you are correct. This is exactly what happened. Thanks.

themik
Offline
Joined: 2006-10-13
Points: 0

Hi Ramon,
Let me try to help you. Could you please provide the command
line and/or script used for compilation.

Thanks