Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-14-2008, 07:57 AM   #1
LQ Newbie
Registered: Jun 2008
Location: Pune, India
Posts: 4

Rep: Reputation: 0
Exclamation Could not run java after applying stick bit permissions to it.

I tried to use sticky bit on JVM by changing its permissions
as follows:

# chmod -R ug+s jre/
# ls

/opt/jre/bin/java root:users -rwsr-sr-x

Then, afterwards when I tried to start the JVM it gave the following

$ ./java -version

error while loading shared libraries : : cannot open shared
object file : No such file or directory.

When I removed stick bit permission from /jre/bin/java,
# chmod ug-s /opt/jre/bin/java
, it works fine.

Also on deleting the file /opt/jre/lib/amb64/jli/
same error occurs. It means that when you run java as a normal user
you could'nt access the library file because some external
executables doesn't have stick bit set to it as for /opt/jre/bin/java.

Can anybody help me to run java with sticky bit permissions set on it ?
Old 06-14-2008, 10:45 AM   #2
LQ Newbie
Registered: May 2008
Location: The Netherlands
Distribution: Ubuntu
Posts: 25

Rep: Reputation: 16
- why put the sticky bit on java, normally java shout run for every user

if you set the sticky bit on the java executable, you have to set it to al of it underlaying files. That is why you get the error.


bit, java, sticky

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
Applying default permissions for newly created files within a specific folder mattydee Linux - Desktop 29 10-30-2016 09:55 PM
LXer: Howto install Flash, Java, Real Player 32 bit plugins under 64 bit Firefox LXer Syndicated Linux News 0 03-16-2007 11:31 PM
Firefox fails to run properly after applying suSE 10.1 updates rschmiegelt Linux - Desktop 3 11-28-2006 06:49 PM
Run java 3D on a 64-bit windows os machine jjjjj Programming 1 02-17-2006 04:36 AM
how to get the *.dll or *.so by applying JNI under the java, c++ and fortran stiphon Programming 3 06-04-2004 05:32 AM > Forums > Linux Forums > Linux - Software

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

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