Quote:
Originally Posted by Mega Man X
Can you run "java -version" on your target? It looks like you:
1 - Has two different Java installed on your system. A very old one and the new one, with the old one being the default or
2 - The installation of JDK on your target was corrupted. That happened to me sometimes ^_^.
|
No, it is completely strange. i made an image file at my laptop (host), mount it loop to e.g. /mnt/cf, build the basic rootfilesystem (/mnt/cf/bin, /mnt/cf/dev,/mnt/cf/boot, etc.) there, it works, then in /mnt/cf/java/ i installed the JRE.
if i execute the command from my laptop at /mnt/cf/java/jre-1.5.0_09/bin, java works fine. but as soon as i put the CF card on the target, the error arises.
is it possible that some environment variables are corrupted? I built the system from scratch. I haven't done many configuration files.
when i execute java_vm at my target, it says that i have to set JAVA_HOME and PLUGIN_HOME, but after i set it to JAVA_HOME=/usr/java/jre-1.5.0_09 and PLUGIN_HOME=/usr/java/jre-1.5.0_09/plugin, the same error arises.
Any reference about building java in cross development? i havent found good one in google.
thanks,