You are not logged in.

#1 2013-03-20 13:35:07

soulrainX
Member
Registered: 2013-03-20
Posts: 48

[SOLVED] Installing openjdk javac problem

I am trying to be able to use arch to do some java coding and my problem is I installed jre7-openjdk via:

pacman -S jre7-openjdk

But apparently javac was not installed.

I did some searching and apparently if you just install the runtime environment javac is not installed or there could be sourcing issues but I think I installed the right package and when I do:

find / -name javac

It is not installed so I am kind of at a loss.

echo $JAVA_HOME
/usr/lib/jvm/java-7-openjdk/jre

I believe if it was a path issue I should still find the java compiler javac in the java-7-openjdk directory.

Any help would be greatly appreciated.

Last edited by soulrainX (2013-03-20 18:35:36)


n00b learning linux
arch + lxde

Offline

#2 2013-03-20 18:01:23

arobson73
Member
From: uk
Registered: 2013-01-19
Posts: 34

Re: [SOLVED] Installing openjdk javac problem

usually if you install the jdk7-openjdk then it will install "javac"
jre7-openjdk installs "java"
i think
andy

Offline

#3 2013-03-20 18:05:20

soulrainX
Member
Registered: 2013-03-20
Posts: 48

Re: [SOLVED] Installing openjdk javac problem

yup that is what I have been reading in my search for answers but alas it didn't for me...

I will remove the package then add it again I guess... at least get to learn how to remove a package now.

thanks for the reply.


n00b learning linux
arch + lxde

Offline

#4 2013-03-20 18:07:03

i_love_penguins
Member
From: Germany
Registered: 2010-03-30
Posts: 46
Website

Re: [SOLVED] Installing openjdk javac problem

arobson73 wrote:

usually if you install the jdk7-openjdk then it will install "javac"
jre7-openjdk installs "java"
i think
andy

That's right jre7-openjdk installs the Java runtime environment. As the name implies you only can run programs with this. Therefore only the java binary will get installed. If you install jdk7-openjdk, then both, java and javac will get installed since this is the Java development kit and includes everything to build and run Java programs.

Last edited by i_love_penguins (2013-03-20 18:07:24)

Offline

#5 2013-03-20 18:10:48

soulrainX
Member
Registered: 2013-03-20
Posts: 48

Re: [SOLVED] Installing openjdk javac problem

Thanks guys I can't believe I did not decern the prefix jdk7 verse jre7... I really appreciate the help and replies.

Would have taken me a while to get that on my own!

Cheers fellas.


n00b learning linux
arch + lxde

Offline

#6 2013-03-20 18:33:06

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] Installing openjdk javac problem

please mark your thread as solved


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2013-03-20 18:35:58

soulrainX
Member
Registered: 2013-03-20
Posts: 48

Re: [SOLVED] Installing openjdk javac problem

done.


n00b learning linux
arch + lxde

Offline

Board footer

Powered by FluxBB