I installed jdk1.7.0_40 in /usr/lib/jvm by unpacking jdk-7u40-linux-i586.tar.gz. (32 bits)
Did an install:
update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_40/jre/bin/java 1056
After that I selected the new path with "update-alternatives --config java".
Running "java -version" returns an error:
bash: /usr/bin/java: cannot execute binary file
What can be problem?
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !
Running java 7 on B3
Re: Running java 7 on B3
B3 is not an intel chip but an ARM. You downloaded the i586 edition which does not run on the B3 processor. You need the jdk-7u40-linux-armel.tar.gz (if that even exists).
Re: Running java 7 on B3
Earlier I tried
jdk-7u40-linux-arm-vfp-hflt.tar.gz
and
jdk-7u40-linux-arm-vfp-sflt.tar.gz
Other error, but java does not run.
I can't find the file that you mentioned,
Does Oracle not support the B3 platform?
jdk-7u40-linux-arm-vfp-hflt.tar.gz
and
jdk-7u40-linux-arm-vfp-sflt.tar.gz
Other error, but java does not run.
I can't find the file that you mentioned,
Does Oracle not support the B3 platform?
Re: Running java 7 on B3
Oracle probably never heard of the B3 platform, and they most certainly will not actively support it unless you pay Oracle prices. But they do support ARM processors, so with some tweaking it should work
But, because you did not specify the error you got when you actually used there's not really anything anyone else can do, except advise you to not use the i586 versions, they're a dead end. I'm not really sure whether the B3 processor is HFLT or SFLT and whether or not it supports the VFP extension. You need to look that up based on processor ID (cat /proc/cpuinfo)
But, because you did not specify the error you got when you actually used there's not really anything anyone else can do, except advise you to not use the i586 versions, they're a dead end. I'm not really sure whether the B3 processor is HFLT or SFLT and whether or not it supports the VFP extension. You need to look that up based on processor ID (cat /proc/cpuinfo)
Re: Running java 7 on B3
I installed: jdk-7u40-linux-arm-vfp-hflt.tar.gz
Executing java has as result:
bash: /usr/bin/java: No such file or directory
Looking in "askubuntu.com" the advise is to execute:
apt-get install libc6-i386
The package is not available, but it seems not appropriate for the B3.
Any idea?
output of cat /proc/cpuinfo
root@b3:/etc/alternatives# cat /proc/cpuinfo
Processor : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS : 1196.85
Features : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant : 0x2
CPU part : 0x131
CPU revision : 1
Hardware : BUBBA3 Kirkwood based miniserver
Revision : 0000
Serial : 0000000000000000
Executing java has as result:
bash: /usr/bin/java: No such file or directory
Looking in "askubuntu.com" the advise is to execute:
apt-get install libc6-i386
The package is not available, but it seems not appropriate for the B3.
Any idea?
output of cat /proc/cpuinfo
root@b3:/etc/alternatives# cat /proc/cpuinfo
Processor : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS : 1196.85
Features : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant : 0x2
CPU part : 0x131
CPU revision : 1
Hardware : BUBBA3 Kirkwood based miniserver
Revision : 0000
Serial : 0000000000000000
Re: Running java 7 on B3
the bash response is just a simple file not found. Why not look to fix this yourself, as it is quite possible a minor system architecture issue that is easily solved by you.
edit: SYnology has similar issues, and a similar CPU: http://pcloadletter.co.uk/2011/08/23/ja ... -synology/
edit: SYnology has similar issues, and a similar CPU: http://pcloadletter.co.uk/2011/08/23/ja ... -synology/
Re: Running java 7 on B3
If it was so easy for me, I had done it already. The simple problem is that I don't know what can be wrong.
Some output:
root@b3:/usr/bin# ls -l java*
lrwxrwxrwx 1 root root 22 Oct 7 14:24 java -> /etc/alternatives/java
lrwxrwxrwx 1 root root 23 Dec 16 2011 javac -> /etc/alternatives/javac
lrwxrwxrwx 1 root root 25 Dec 16 2011 javadoc -> /etc/alternatives/javadoc
lrwxrwxrwx 1 root root 23 Dec 16 2011 javah -> /etc/alternatives/javah
lrwxrwxrwx 1 root root 23 Dec 16 2011 javap -> /etc/alternatives/javap
lrwxrwxrwx 1 root root 24 Oct 6 19:45 javaws -> /etc/alternatives/javaws
root@b3:/etc/alternatives# ls -l java*
lrwxrwxrwx 1 root root 37 Oct 7 14:24 java -> /usr/lib/jvm/jdk1.7.0_40/jre/bin/java
lrwxrwxrwx 1 root root 43 Oct 7 14:34 java.1.gz -> /usr/lib/jvm/jdk1.7.0_40/man/man1/java.1.gz
... and some more
and in /usr/lib/jvm:
lrwxrwxrwx 1 root root 14 Dec 16 2011 java-1.6.0-openjdk -> java-6-openjdk
drwxr-xr-x 7 root root 4096 Nov 2 2012 java-6-openjdk
drwxr-xr-x 8 root root 4096 Aug 27 07:31 jdk1.7.0_40
My conclusion is that everything seems allright. And still, it does not work.
Some output:
root@b3:/usr/bin# ls -l java*
lrwxrwxrwx 1 root root 22 Oct 7 14:24 java -> /etc/alternatives/java
lrwxrwxrwx 1 root root 23 Dec 16 2011 javac -> /etc/alternatives/javac
lrwxrwxrwx 1 root root 25 Dec 16 2011 javadoc -> /etc/alternatives/javadoc
lrwxrwxrwx 1 root root 23 Dec 16 2011 javah -> /etc/alternatives/javah
lrwxrwxrwx 1 root root 23 Dec 16 2011 javap -> /etc/alternatives/javap
lrwxrwxrwx 1 root root 24 Oct 6 19:45 javaws -> /etc/alternatives/javaws
root@b3:/etc/alternatives# ls -l java*
lrwxrwxrwx 1 root root 37 Oct 7 14:24 java -> /usr/lib/jvm/jdk1.7.0_40/jre/bin/java
lrwxrwxrwx 1 root root 43 Oct 7 14:34 java.1.gz -> /usr/lib/jvm/jdk1.7.0_40/man/man1/java.1.gz
... and some more
and in /usr/lib/jvm:
lrwxrwxrwx 1 root root 14 Dec 16 2011 java-1.6.0-openjdk -> java-6-openjdk
drwxr-xr-x 7 root root 4096 Nov 2 2012 java-6-openjdk
drwxr-xr-x 8 root root 4096 Aug 27 07:31 jdk1.7.0_40
My conclusion is that everything seems allright. And still, it does not work.
Re: Running java 7 on B3
so whats the content of /etc/alternatives then?
Re: Running java 7 on B3
Solved, thank you.
The last link you gave, was the solution. I looked at this earlier, but the directory structure is quite different from other java installations, and "embedded".. So, I didn't believe in it.
I think, it is not a full solution for tomcat when I use jsp. But that is of later concern.
The last link you gave, was the solution. I looked at this earlier, but the directory structure is quite different from other java installations, and "embedded".. So, I didn't believe in it.
I think, it is not a full solution for tomcat when I use jsp. But that is of later concern.
Re: Running java 7 on B3
Would you be so kind to specify in more detail what the solution is to deploy java 7 on the the B3, so that other users also can use this for further reference? Your last mail is a bit cryptic for me.