LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-21-2012, 07:39 AM   #1
chome4
LQ Newbie
 
Registered: Jun 2009
Posts: 10

Rep: Reputation: 0
Path to Where Java is Installed?!


Using Linux Mint 13 via Virtualbox.

Want to use Sql Developer but first need to install 'jdk-7u7-linux-i586.rpm'. Installed it and SQL Developer.

When I 'open in terminal' the SQL Developer folder and type 'sqldeveloper', I'm prompted with a request to

"Type the full pathname of a J2SE installation (or Ctrl-C to quit), the path will be stored in ~/.sqldeveloper/jdk"

As Java isn't an executable, typing 'which java' simply comes back with '/usr/bin/java'

The bin folder doesn't contain any references to Java. Makes sense, I guess.

Searching for 'jdk' gives what can be seen in the attached pic.

How can I determine the path to where Java lives?
Attached Thumbnails
Click image for larger version

Name:	mint.jpg
Views:	64
Size:	168.5 KB
ID:	10734  
 
Old 09-21-2012, 09:23 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Well, you can try:

Code:
locate javac
or

Code:
find / -iname javac
or just look in /usr/lib/jvm (in which I have java-7-openjdk/bin, which I think is the folder you want)
 
Old 09-21-2012, 09:34 AM   #3
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 647

Rep: Reputation: 189Reputation: 189
Quote:
Originally Posted by chome4 View Post
As Java isn't an executable, typing 'which java' simply comes back with '/usr/bin/java'
java is an executable.
 
Old 09-21-2012, 10:13 AM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
how did you install an rpm on Mint which uses .deb packages?

See the links at the end of Howto install Oracle Java on Debian - LinuxQuestions.org - https://www.linuxquestions.org/quest...-debian-34567/ for how to install Oracle Java correctly on Ubuntu/Mint.

Have you tried sticking to the packages in the repos?

apt-get install sqldeveloper-package
 
Old 09-22-2012, 01:13 AM   #5
chome4
LQ Newbie
 
Registered: Jun 2009
Posts: 10

Original Poster
Rep: Reputation: 0
"how did you install an rpm on Mint which uses .deb packages?"
The Oracle SQL Developer page only points to a link ending in '.rpm'.
Java SE Development kit is available in both .rpm and .tar.gz formats

apt-get install sqldeveloper-package gives:
Reading package lists... Done
Building dependency tree
Reading state information... Done
sqldeveloper-package is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.

Sql Developer is installed but it's all about finding the java stuff which is installed but the path can't be found.
 
Old 09-22-2012, 03:52 AM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
so you are using instructions for Red Hat Enterprise Linux ( the Oracle rebuild)
that is is the RPM red hat family
on Linux Mint13 that is part of the Debian ( .deb) family

the rpm and deb groups are as divided as say .... " the Hatfield and McCoy's "

the USA vs. CCCP

if you are giont to use a Debian operating system then use Debian guides
 
Old 09-22-2012, 05:30 AM   #7
chome4
LQ Newbie
 
Registered: Jun 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by John VV View Post
so you are using instructions for Red Hat Enterprise Linux ( the Oracle rebuild)
that is is the RPM red hat family
on Linux Mint13 that is part of the Debian ( .deb) family

the rpm and deb groups are as divided as say .... " the Hatfield and McCoy's "

the USA vs. CCCP

if you are giont to use a Debian operating system then use Debian guides
I used 'alien' to convert .rpm to .deb
 
Old 09-22-2012, 11:29 AM   #8
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
I would suggest removing Java and reinstalling it following one of the many guides for Ubuntu/Mint.

Oracle (Sun) Java JRE for Ubuntu, Linux Mint and Debian - Easy Linux tips project - https://sites.google.com/site/easylinuxtipsproject/java

How To Install Oracle Java 7 In Debian Via Repository ~ Web Upd8: Ubuntu / Linux blog - http://www.webupd8.org/2012/06/how-t...in-debian.html
 
1 members found this post helpful.
Old 09-23-2012, 01:44 AM   #9
chome4
LQ Newbie
 
Registered: Jun 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by craigevil View Post
I would suggest removing Java and reinstalling it following one of the many guides for Ubuntu/Mint.

Oracle (Sun) Java JRE for Ubuntu, Linux Mint and Debian - Easy Linux tips project - https://sites.google.com/site/easylinuxtipsproject/java

How To Install Oracle Java 7 In Debian Via Repository ~ Web Upd8: Ubuntu / Linux blog - http://www.webupd8.org/2012/06/how-t...in-debian.html
Thanks for this...
 
  


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
java applet not loading image with relative path but loads image with absolute path amolgupta Programming 2 07-20-2009 01:58 PM
set up java_home path in /home/user/.bashrc but use path in /usr/lib/java vitalstrike82 Slackware 4 01-13-2009 11:25 PM
Ubuntu 7.10 64bit - how to set java path to/redirect java to libjvm.so ? Thane Ubuntu 1 03-25-2008 05:52 PM
How can I know the path of the Java installed? wlaw Linux - Software 5 12-16-2007 06:42 PM
export Path=/usr/java:$Path does not seem to work lumix Linux - Newbie 1 03-19-2007 03:11 PM

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

All times are GMT -5. The time now is 09: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