- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- java execute permission denied
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2008 02:40 AM
тАО05-15-2008 02:40 AM
When I try to run java as the user "reports" (java home directory in his home folder - /home/reports/apps/javaapp/jre1.6.0_04/bin), it gives the following error message:
su: /home/reports/apps/javaapp/jre1.6.0_04/bin/java: Execute permission denied.
I added these entries to the .profile file of the user "reports", but it still doesn't work.
export JAVA_HOME=/home/reports/apps/javaapp/jre1.6.0_04/bin/java
export PATH=$PATH:/home/reports/apps/javaapp/jre1.6.0_04/bin/
The same error message is given when I try to run it as the root.
Can you guys please help me.
Thanks
Solved! Go to Solution.
- Tags:
- Java
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2008 02:49 AM
тАО05-15-2008 02:49 AM
Re: java execute permission denied
did you check the execute permission in
home/reports/apps/javaapp/jre1.6.0_04/bin/java ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2008 02:49 AM
тАО05-15-2008 02:49 AM
Re: java execute permission denied
is this a new installation?
Please post the output of the following command:
ll /home/reports/apps/javaapp/jre1.6.0_04/bin/java
revert!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2008 02:52 AM
тАО05-15-2008 02:52 AM
Re: java execute permission denied
the output:
-rwxrwxrwx 1 reports users 47116 May 15 14:10 /home/reports/apps/javaapp/jre1.6.0_04/bin/java
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2008 02:57 AM
тАО05-15-2008 02:57 AM
Re: java execute permission denied
can you also try the following command as the reports user:
cd /home/reports/apps/javaapp/jre1.6.0_04/bin/
./java -version
revert!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2008 03:01 AM
тАО05-15-2008 03:01 AM
Re: java execute permission denied
requested output is:
$ cd /home/reports/apps/javaapp/jre1.6.0_04/bin/
$ java -version
su: java: Execute permission denied.
$
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2008 03:07 AM
тАО05-15-2008 03:07 AM
Re: java execute permission denied
>$ cd /home/reports/apps/javaapp/jre1.6.0_04/bin/
>$ java -version
>su: java: Execute permission denied.
>$
Please run the java command as follows (using the "./")
./java -version
We need to make sure that the java is really from the mentioned directory.
Also post the output of:
echo $PATH
revert!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2008 03:14 AM
тАО05-15-2008 03:14 AM
Re: java execute permission denied
su: ./java: Execute permission denied.
echo $PATH
/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/fcms/bin:/usr/contrib/kwdb/bin:/usr/bin/X11:/opt/graphics/common/bin:/opt/upgrade/bin:/opt/ipf/bin:/opt/resmon/bin:/opt/ignite/bin:/opt/sec_mgmt/bastille/bin:/opt/gnome/bin:/opt/mozilla:/opt/wbem/bin:/opt/wbem/sbin:/opt/mx/bin:/opt/sec_mgmt/spc/bin:/opt/perf/bin:/opt/hpnpl//bin:/usr/local/bin:/usr/contrib/bin/X11:/home/reports/apps/javaapp/jre1.6.0_04/bin/:/usr/contrib/bin:/usr/sbin:/app/oracle/product/9.2.0/bin
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2008 04:00 AM
тАО05-15-2008 04:00 AM
Re: java execute permission denied
is this a new installation?
Post the output of:
file java
It could also be that the version is not right!
Where did you download this software from?
Post more information like:
OS version
OS mode
revert!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2008 04:22 AM
тАО05-15-2008 04:22 AM
Re: java execute permission denied
# file java
java: cannot open
#
OS is 11iv2
Im running multiuser mode
Can it be a bad installation?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2008 04:33 AM
тАО05-15-2008 04:33 AM
Re: java execute permission denied
$whereis java
did you modify the .profile of report user and relogin and trying?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2008 04:34 AM
тАО05-15-2008 04:34 AM
Re: java execute permission denied
> $ java -version
> su: java: Execute permission denied
> $ ./java -version
> su: ./java: Execute permission denied.
why does the "su" come up everytime you run java? Is "java" replaced by a script that contains the su command? Or is it an shell alias?
In the first example the "java" is run without an absolute path so an alias or a script in the PATH would have been picked up before the java binary (the java path is appended at the end of the PATH).
In the second example the ./java is run from the current directory we do not know if you had cd to the java bin directory.
Run the following commands
which java
alias java
file /home/reports/apps/javaapp/jre1.6.0_04/bin/java
what /home/reports/apps/javaapp/jre1.6.0_04/bin/java
It is possible that you downloaded the wrong platform java RTE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2008 04:59 AM
тАО05-15-2008 04:59 AM
Re: java execute permission denied
I have no idea why su comes up.
I re-ran the commands with absolute paths here:
$ /home/reports/apps/javaapp/jre1.6.0_04/bin/java
su: /home/reports/apps/javaapp/jre1.6.0_04/bin/java: Execute permission denied.
$ /home/reports/apps/javaapp/jre1.6.0_04/bin/java -version
su: /home/reports/apps/javaapp/jre1.6.0_04/bin/java: Execute permission denied.
here are the outputs you requested:
$ which java
/home/reports/apps/javaapp/jre1.6.0_04/bin//java
$ alias java
java: shell alias not found.
$ file /home/reports/apps/javaapp/jre1.6.0_04/bin/java
/home/reports/apps/javaapp/jre1.6.0_04/bin/java: ELF-32 executable object file
$ what /home/reports/apps/javaapp/jre1.6.0_04/bin/java
/home/reports/apps/javaapp/jre1.6.0_04/bin/java:
I will check with the installation
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2008 05:20 AM
тАО05-15-2008 05:20 AM
Re: java execute permission denied
home/reports/apps/javaapp/jre1.6.0_04/bin/java: ELF-32 executable object file
You running a 32bit version on a 64 bit server!
which java version did you download and what OS version are you running?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2008 05:35 AM
тАО05-16-2008 05:35 AM
SolutionRX means that you need the "itanium JRE 6.0.0" from
http://h20392.www2.hp.com/portal/swdepot/try.do?productNumber=JDKJRE6000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2008 07:10 AM
тАО05-16-2008 07:10 AM
Re: java execute permission denied
The HP-UX provides java under /opt so you could try the system supplied one by adjusting the JAVA variables for the "reports" user. Or, after you install the right version and platform in /opt, create a symbolic link in /home/reports/apps/javaapp pointing to the /opt/java1.6 area. You may have to adjust the link paths up or down one level depending on the installation directory tree.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2008 11:13 AM
тАО05-16-2008 11:13 AM
Re: java execute permission denied
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2008 10:48 PM
тАО05-16-2008 10:48 PM
Re: java execute permission denied
>You running a 32bit version on a 64 bit server!
So? There is nothing wrong with that. HP-UX is quite happy running 32 bit applications.
But there is something missing on the end:
/usr/bin/ksh: ELF-32 executable object file - IA64
So the problem could be due to running a foreign devil java.
- Tags:
- foreign devil tools
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2008 12:22 AM
тАО05-17-2008 12:22 AM
Re: java execute permission denied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2008 01:21 AM
тАО05-19-2008 01:21 AM