Skip to main content

.jnlp cant read & write on browser despite signed .jar

4 replies [Last post]
bongia
Offline
Joined: 2007-11-06

[Please read the bottom section]
(Problem 1 - solved)
Hi, i currently have a project runnin using netbeans 5.5. In this project, it is suppose to perform a search by reading from some directories containing only .txt files and writing into another directory in .txt form, which i used BufferReader and PrintWriter to fulfil the task. I build and run this project on Netbeans and it works perfectly with the GUI and the search results printed out.
I then run & deploy it with Java Web Start, the GUI did appear but the search seems to fail as no results is printed out.

anyone have any idea whats wrong ??

`bong

--------------------------------------------------------

(Problem 2)

Hi again. now i have this problem. My .jnlp is workin perfectly with the I/O files after i signed the .jar and stuff. Then i try to link this .jnlp using . The sandbox did load but the search results did not come out just like the outcome before i signed the .jar.

Anyone got any idea why?

bong

Message was edited by: bongia

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bongia
Offline
Joined: 2007-11-06

Hi, now i do have another smal problem. I have my .jnlp workin fine withl I/O after i signed it. But when i link this .jnlp file on a webpage, the outcome for the .jnlp is just like the .jnlp before i sign it (no output results).

Anyone knows why is this so ?

`bong

andyherrick
Offline
Joined: 2005-04-17

Can you post the content of the jnlp file ?
Can you turn on tracing and console in the advanced tab if the Java Control Panel and then post what exceptions are shown in the console ?

/Andy

rabbe
Offline
Joined: 2003-06-14

When you run your application through webstart it will be sandboxed unless you sign the jar file. The security manager may be denying you access to the disk.

bongia
Offline
Joined: 2007-11-06

hi rabbe. Wanna thank you for your pointer, because now i have completed my project with my java web start running fine after i signed my .jar.
=)

Love
bong