Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How resolv on Linux - Application Blocked by Java Security

3040993Apr 15 2018 — edited Apr 20 2018

I am trying to install a program provided by the Brazilian Government for the issuance of documents for the commercialization of products.
Here in Brazil everything is complicated .... first we downloaded a java program that running it will download and install another program that will really do that job of issuing sales documents.

While the first program downloads this second program and we can see the progress of this download that seems to occur in system memory.
But when he tries to install this second program, an error occurs. See the error message shown in the window below:

javaErr.png

When I click on "More Information" I'm directed to an Oracle page that shows how to solve the problem, but only for Windows and Mac platforms

We are Linux OpenSuse users. we are without any help ....

Can you tell me how to solve it?

Comments

807603
Open a FileOutputStream then read the InputStream a buffer at a time and write to the FileOutputStream.

P.S. Class java.io.File represents a handle on the file and not the content of the file.

Edited by: sabre150 on Jan 28, 2008 2:22 PM
807603
Hi,
Sorry for not presenting my problem correctly.
What i need is a File object handler for a file in the classpath if the name of the file present in the classpath is given.
( I was able to get the content of the file using classloader, but i actually need a handle to the file itself.)
807603
Use getResource() instead of getResourceAsStream(). This way you get an URI which you can use in the constructor of java.io.File.
807603
Hi thanks !
I was able to get URL by that method, and I now use
File f = new File(url.toString) 
and it works !

I had one more concern, will the above case fail in any situation ?
1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 18 2018
Added on Apr 15 2018
11 comments
2,334 views