java error
Hi all,
i am trying to make small linux system on CF card. Now i am installing the JRE-1.5.0_09 from Sun. I had a problem. So first of all I install JDK on my host and JRE on my target, both with the same version. And i tried to make the "Hello World!" program as described on the Sun Java tutorial site. It works on my host. But as I run it on my target there were problems, i even cant get the help menu: Code:
# java thanks, |
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 ^_^. |
Quote:
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, |
Hi all,
I still stuck on these things. My Java cant be executed on my target system. Code:
# env Code:
# pwd Thank you very much for any tips |
Hi all,
I couldnt solved the problem with JRE package version 1.5.0_09, but then I tried with JRE package version 1.4.2_13 and it worked fine. dont know what was the problem with the newest version. I tried also with the package 1.5.0_06 and it works |
All times are GMT -5. The time now is 03:08 AM. |