LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-07-2014, 01:30 PM   #1
jazzo
Member
 
Registered: Jul 2012
Posts: 277

Rep: Reputation: Disabled
troubles installing java jdk


Hello chaps, I have installed the java jdk but I don't seem to be able to compile anything. I have followed these instructions http://docs.oracle.com/javase/7/docs...tml#install-64 and installed java inside home --> java.
When I attempted to compile a program this is what I had:
Code:
antobbo@antobbo-linux-Dell-System-XPS-L702X:~/java/14.11$ javac *.java
The program 'javac' can be found in the following packages:
 * default-jdk
 * ecj
 * gcj-4.6-jdk
 * openjdk-6-jdk
 * gcj-4.5-jdk
 * openjdk-7-jdk
Try: sudo apt-get install <selected package>
antobbo@antobbo-linux-Dell-System-XPS-L702X:~/java/14.11$
Does anybody know what I have to do to get it to work? DO I have to install all those packages? Last time I installed on another linux machine I don't think I had these problems
thanks
 
Old 02-07-2014, 02:57 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by jazzo View Post
installed java inside home --> java.
what? That's not the same as setting JAVA_HOME in your "$SHELL" environment.

Seen https://help.ubuntu.com/community/Java ?
 
Old 02-07-2014, 03:19 PM   #3
jazzo
Member
 
Registered: Jul 2012
Posts: 277

Original Poster
Rep: Reputation: Disabled
ahem, sorry no idea. What should I do then? The instructions said I could install it anywhere
 
Old 02-07-2014, 03:51 PM   #4
jazzo
Member
 
Registered: Jul 2012
Posts: 277

Original Poster
Rep: Reputation: Disabled
well I have installed (again) the jdk from this link - opens up the ubuntu software centre - https://help.ubuntu.com/community/Java and now everything works
 
Old 02-08-2014, 09:48 AM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Glad it's working out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing java-jdk using tar binaries vizhang Linux - Newbie 1 07-04-2012 10:02 AM
A question about installing JDK/Java with yum thomas2004ch Linux - Software 5 09-14-2011 11:41 AM
installing java runtime envirionment and jdk on ubuntu 10.10 umair ahmed Ubuntu 1 07-25-2011 08:54 AM
Help installing the Java JDK CS_Student_DrewU Programming 2 07-14-2007 10:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration