Operating System - HP-UX
1827452 Members
3767 Online
109965 Solutions
New Discussion

Getting an error java.lang.InternalError: file /dev/random generated exception:Permission denied.

 
Moiz Khambaty
Occasional Contributor

Getting an error java.lang.InternalError: file /dev/random generated exception:Permission denied.

Hi,
I am working on a Porting project on HP-UX.
As part of the project I am trying to build the project source code on HPUX using java 1.3.1_07.I have to compulsorily use only this version of java.

But during the build I am getting an exception
"Exception in thread main java.lang.InternalError :URLSeedGenerator file:/dev/random generated exception:Permission Denied"

I have verified that /dev/random is available on the build system.It has permissions
cr--r--r.

Any pointers that would help me resolve this exception would be greatly appreciated.

Thanks
Moiz Khambaty.
4 REPLIES 4
Paul_481
Respected Contributor

Re: Getting an error java.lang.InternalError: file /dev/random generated exception:Permission denied.

Hi,

Do you need write permission on /dev/randon? From its current permission you can only read it.

Try changing the permission to crw-rw-r--

#chmod 664 /dev/random

Regards,
Paul
Alex Lavrov.
Honored Contributor

Re: Getting an error java.lang.InternalError: file /dev/random generated exception:Permission denied.

Hey, did you install all required patches for java?

http://www.hp.com/products1/unix/java/patches/
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Moiz Khambaty
Occasional Contributor

Re: Getting an error java.lang.InternalError: file /dev/random generated exception:Permission denied.

Hi Paul,
I gave write permission to /dev/random but still the same exception.
Do I need to give execute permission as well ?

Do I need to install any specific patch for this issue ?

Thanks
Moiz
Alex Lavrov.
Honored Contributor

Re: Getting an error java.lang.InternalError: file /dev/random generated exception:Permission denied.

Go to URL I wrote in the message above and install *all* required paches for this version of java.
I don't give a damn for a man that can only spell a word one way. (M. Twain)