Possible Duplicate:
Installing J2EE under Ubuntu x64
I can't install Oracle JDK J2EE like i show in the pix below
this is my java (Oracle J2SE JDK) configuration
when I typed which java, terminal showed this
How should I do? I'm very pleased for your help. sorry for my english
It can be seen that you have JDK installed, but are you sure that JDK's
bin
directory is included in$PATH
? Do a quick check withjar
orjavac
.As
java
is also present in JRE's directory(/usr/lib/jvm/jdk1.7.0_04/jre/bin/
) it'll show up but it cannot package new jar files. You'll be needingjar
utility for that task, as in here.jar
only comes in JDK's directory, so you need to include JDK's directory i.e./usr/lib/jvm/jdk1.7.0_04/bin/
to$PATH
. To do that add the following line to/etc/profile
or~/.profile
:export PATH=$PATH:/usr/lib/jvm/jdk1.7.0_04/bin
then logout and retry.
I've found the solving. The problem locates in my machine. My Ubuntu is 64-bit machine and so is my JRE. J2EE SDK can't run on JRE 64-bit. the solving just install both of them, 32-bit and 64-bit version of JREs.