Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6744377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:04:35+00:00 2026-05-26T12:04:35+00:00

I built this program that works with files. Since I made it for a

  • 0

I built this program that works with files. Since I made it for a friend, I made it into a Java Web Start app, complete with a JNLP file.

When I launch the app through an ANT (netbeans) without the JNLP, it works just fine. But when launched through the JNLP (even through netbeans), the button that is supposed to perform the required actions instead does nothing (it just stays in “clicked” mode until you hover away from it).

I spent hours trying to figure out the problem, but no luck.

Here is the problematic method:

public void copy(String path1, String path2) throws IOException {

    File inputWorkbook = new File(inputFile);
    Path in = Paths.get(path1);
    Path out = Paths.get(path2);



    Workbook w;
    try {
        w = Workbook.getWorkbook(inputWorkbook);
    .
    .
    .

If I don’t attempt to do anything with the inputWorkbook file, everything works ok. As soon as I attempt ANY sort of method on it (such as w = Workbook.getWorkbook(inputWorkbook), or even inputWorkbook.exsists();) , the problem occurs. It won’t even throw an exception, it just does nothing… Again, the problem only occurs when the program is launched through the JNLP file.

I hope I managed to explain the problem… I’m new to programming.

Thank you!!!

Adam

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:04:35+00:00Added an answer on May 26, 2026 at 12:04 pm

    Webstart applications run in a security sandbox which prevents the to access the file system. You need to digitally sign your har to gain access to the file system, or use the file open api. See http://download.oracle.com/javase/6/docs/technotes/guides/javaws/developersguide/faq.html#302 and http://download.oracle.com/javase/6/docs/technotes/guides/javaws/developersguide/examples.html#FileOpenService for more information.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I guess I don't need the web browser, since network capabilities are built into
I built a Jquery dropdown menu using this tutorial . It works across browsers
It seems like this should be something built into jQuery without the need for
Scenario: I've inherited a program, kept under Mercurial, that only works on my system
I have a working program written in Java with the Java Sound API that
I am trying separate a CUDA program into two separate .cu files in effort
So I've built this mail-program-like HTML viewer (no real emails, just some messages from
I have built a console application that works okay when it references a .exe
So, I've built this navigation bar so far and I'm curious if it's even
I've got a JavaScript object, built this way: function foo() { this.length = 0;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.