LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 07-16-2013, 10:16 AM   #16
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled

Quote:
Originally Posted by rohaanembedded View Post
i want to know the location because i want to install one java library bin file at active configuration directory through my script
so have to know the location in ubuntu i am getting the location through
Code:
readlink -f $(which java)
if want any more information please let me know and help me
What if the directory you're trying to infer doesn't exist, or what if that directory isn't ever used because calling java doesn't ever run the Oracle version? You're getting caught up with trying to implement a specific solution, but you might need to look at the original problem again and see if there's a better way to solve it.

Kevin Barry
 
1 members found this post helpful.
Old 07-17-2013, 12:26 AM   #17
rohaanembedded
Member
 
Registered: May 2013
Location: India
Distribution: Ubuntu 11.10
Posts: 174

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by ta0kira View Post
What if the directory you're trying to infer doesn't exist, or what if that directory isn't ever used because calling java doesn't ever run the Oracle version? You're getting caught up with trying to implement a specific solution, but you might need to look at the original problem again and see if there's a better way to solve it.

Kevin Barry
Dear sir,
usually there is jvm on linux machine and deault java is also there any version which is active.
if not my script wil exit but if there is active java configuration then how to get there i am trying that thing so that i can go and install bin there

we can get active configuration through
Code:
update-alternatives --config java
regards
rohan
 
Old 07-17-2013, 01:04 AM   #18
evo2
Senior Member
 
Registered: Jan 2009
Location: Japan
Distribution: Debian
Posts: 4,833

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
Hi,

Quote:
Originally Posted by rohaanembedded View Post
Dear sir,
yes sir i am trying the same thing as i dont want to use the internet so not going for rpms
i am trying to install the bin through script only
is there any way to get the path (directory) of active java configuration.
Everything I said last time still applies this time. The main thrust being, that I think you are approaching this problem in the wrong way.

Quote:
please let me know if there is any idea. or command that can be used
Do not install by dumping the files in the directory where the system java is installed. Should I say it one more time? Ok. Do not install by dumping the files in the directory where the system java is installed. In my last post I gave a link that discusses the paths used by java. Read it, and then understand that you you should not care where the system java is installed.

Evo2.
 
Old 07-17-2013, 02:16 AM   #19
rohaanembedded
Member
 
Registered: May 2013
Location: India
Distribution: Ubuntu 11.10
Posts: 174

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by evo2 View Post
Hi,


Everything I said last time still applies this time. The main thrust being, that I think you are approaching this problem in the wrong way.


Do not install by dumping the files in the directory where the system java is installed. Should I say it one more time? Ok. Do not install by dumping the files in the directory where the system java is installed. In my last post I gave a link that discusses the paths used by java. Read it, and then understand that you you should not care where the system java is installed.

Evo2.
Dear sir,

sorry for my wrong approach but i have library in binary format and want to install that through shell script so i am trying this i know this might be the wrong of dumping thing in jvm directories but i have bin and i cant use the internet to install java lib is my condition sir, sorry again for my try but actually iwanted to this on RHEL only but i tried this on ubuntu as u know and now want to do in RHEL

really Thanks for rply sir
i have read the link

regards
rohan
 
Old 07-17-2013, 02:24 AM   #20
evo2
Senior Member
 
Registered: Jan 2009
Location: Japan
Distribution: Debian
Posts: 4,833

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
Hi,

ok, I'll try again: why do you want to put this bin file in in the same directory as the java executable? Why can't you put it somewhere else?

Evo2.
 
Old 07-17-2013, 03:41 AM   #21
rohaanembedded
Member
 
Registered: May 2013
Location: India
Distribution: Ubuntu 11.10
Posts: 174

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by evo2 View Post
Hi,

ok, I'll try again: why do you want to put this bin file in in the same directory as the java executable? Why can't you put it somewhere else?

Evo2.
Dear sir,

really thanks for understanding me & my some what not so gud ques and problems

becuase when i tried to install it in any other location it gives error like

Code:
This is not a proper JDK directory.  Exiting install.
and if i install this bin at other than active jdk directory it doesnt give the effect that library not found kind of error
if i install it in active jdk my program works fine
so sir i want to do this

thanks for your efforts to understand my point

regards
rohaan
 
Old 07-17-2013, 03:43 AM   #22
rohaanembedded
Member
 
Registered: May 2013
Location: India
Distribution: Ubuntu 11.10
Posts: 174

Original Poster
Rep: Reputation: Disabled
Dear sir,

really thanks for understanding me & my some what not so gud ques and problems

i want the active JDK directory becuase when i tried to install it in any other location it gives error like

Code:
This is not a proper JDK directory.  Exiting install.
and if i install this bin at other than active jdk directory it doesnt give the effect means while using this library in my code it gives, library not found kind of error

if i install it in active jdk my program works fine

so sir i want to do this

thanks for your efforts to understand my point

regards
rohaan
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
./configure command runs... but doesnt work Visual Basic Imp MEPIS 3 01-20-2007 01:33 PM
pc with Win 2k and Red Hat 9.0 runs very slow bakreabhi Linux - Newbie 3 04-08-2004 03:14 AM
Roadster runs Debian but not Red Hat Astro96 Linux - Laptop and Netbook 1 08-19-2003 11:25 PM
squid on red hat 9.0 doesnt work maxut Linux - Networking 3 06-08-2003 04:15 AM


All times are GMT -5. The time now is 01:54 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration