JavaFX desktop app can't read files

Hi!
I have a javaFX application with Java and JavaFX mixed code what works fine when I start it using : javafx -cp ... appClass
But when I try to start it using: javaws app.jnpl it doesn't work (Main stage does not displayed)
I found that app silently fails at first disk access: somewhere like that
  File folder = new File(".");
  File[] listOfFiles = folder.listFiles();
  for (int i = 0; i < listOfFiles.length; i++) {... in Java class
or that :
design.label.text= new File("test").getAbsolutePath();in Java.fx class
I never used Java Web Start before.If that is a web start access limitation or restriction is there any way to bypass it?
Thank you.

It's probably the case.
Modify the options of Java in the control panel to automatically display the Java Console when starting a program or an applet so you can try to see any uncaught exception. You'll probably get a SecurityException or an IllegalAccess.
You'll then need to change your JNLP to request all permissions and to sign you app (see Java Web Start documentation on how to generate a temporary certificate - also NetBeans can do that for you, have a look at the project's settings).

Similar Messages

  • Can't download driver for HP F4440 on my 10.6.8  ... says can't read file.

    Can't download driver for  HP Deskjet F4440 on my 10.6.8 ... says can't read file.
    Anyone experienced this?   Also weird, because I thought I had 7.0...Apple store says it downloaded Mountain Lion (the "cat" after Snow Leopard, right?) So why does it still say 10.6.8?
    Regardless, I need to use this printer as I just moved and need to print out important stuff for my business.  But  can't download the driver.  Why can't it read it?
    And I don't have the $30 to pay for HP tech support.
    Thanks anyone who can help with this.

    Hi peshi77,
    Welcome to the HP Support Forums! I see you are trying to install your HP Laserjet P1006 to your computer running Windows 8.1, but everytime you attempt to extract the files it crashes. After some research I see there were no updated drivers made available for the Windows 8.1 OS, you must install the Hostbased Plug and Play Basic Driver, to get the basic printing functions. Please click on the link below to download and install:
    HP LaserJet P1000-P1500 Hostbased Plug and Play Basic Driver
    Once downloaded, please follow the on screen instructions. I hope this helps!
    Thanks,
    HevnLgh
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • I just stared having problems with importing files from nikon D810 into LR 5.7 it pop a window saying it can not read files on working on a imac 27" running yosemite on my mac pro after a few times it finally was able to read files and import them into LR

    I just stared having problems with importing files from nikon D810 into LR 5.7 it pop a window saying it can not read files on working on a imac 27" running yosemite on my mac pro after a few times it finally was able to read files and import them into LR I never had this problem before was there some kind of update that could of cause this?

  • Win10 file explorer can't see MyCloud but desktop app can.

    I am using the final Win10 software (well, build 10240 anyway). Previous builds all worked fine with MyCloud but now file explorer doesn't show it under Network. However the WD Cloud app can see everything on it and I can access the device ip address in my browser ok. I'm missing something very obvious I think but what?!Brian

    I don't know the drive name. There is WD service running which says it is for 'discovery' but I knew that since WD software can see it, just file explorer can't.

  • Deploying Java Desktop App using executable JAR files

    Hi there.
    Today I am very optimistic about java. I am a beginner, and I had tried (in my few free time) to understand how to deploy java desktop apps.
    I am using the lattest NetBeans IDE to do the programming and it is very very fast and optimized.
    Going to the point, I tried some time ago to deploy an application (made with this IDE) using JAR files, but even though the application run well on my IDE, when I packed it, it rised an error saying that
    java.lang.NoClassDefFoundError: org/netbeans/lib/awtextra/AbsoluteLayout
    I was using an absolute layout on my JFrame forms and this AbsoluteLayout is provided by netbeans and not by the normal SDK.
    I then looked for the absolute layout class and found a jar file in the following path:
    C:\netbeans\modules\ext\AbsoluteLayout.jar
    So I mounted the Jar file in my File Systems and then added the contents of the file to myApp.Jar file.
    I used the automated Jar Recipe Packaging feature of netbeans, that is why I needed to mount the AbsoluteLayout.jar file into my file systems.
    Now it runs fine by just right clicking the MyApp.jar file from Windows Explorer.
    In a next reply to this topic I will include some sample code so that anybody requiring to do such implementation can take this for help.
    Regards!
    JN

    Well,
    I will take some time here to show the basic source code and procedure to create a desktop application, pack it up in a Jar file for deployment, add other classes or jars to the deployment jar file and finally open the jar file as an executable. This applies for either windows and linux environments.
    Take in count i am using Netbeans IDE 3.x (3.5)
    First I open the IDE and create a new project called MyDesktopApp. This is done by going to the menu Project / Project Manager. Then click on the New button and specify the project name and click on OK.
    At this point, the Filesystems tab in the project explorer is empty. So I mount a directory to store myDesktopApp in it. I selected c:\MyDesktopApp but you can select any name you want.
    To mount the directory you follow these steps:
    1. Right-click on File Systems
    2. From the contextual menu select Mount > Local Directory
    3. In the filechooser window, you just browse it and SELECT the directory to mount. Be aware that you can even create the directory on this window. Do not enter (double-click) into the directory you want to mount, just select it and click on finish...
    4.Then the directory entry appears under the filesystems node of the project explorer.
    Now you have to create your application. You can either create a package (special configured and tracked directory) or you can create the clases directly inside the directory. For tidy project, I will create the package.
    To create the package follow these instructions:
    1. Right-click on the mounted directory and from the contextual menu select New > Java Package
    2. In the New Wizard - Java Package window, type the package name and click on finish. I use the "MyDesktopApp" as package name.
    OK. Now the package is created under the mounted directory. Now we have to create the Main Class. In this case I will use a JFRAME as the main class but you can create any class you want.
    To create the JFRAME as main class follow these steps:
    1. Right click on the java package you just created and select New>JFRAME from the contextual menu. If you do not see the JFRAME option on the NEW sub menu you will have to select the All Templates option. I explain the All Templates option now on, it will be easier to use the JFRAME if available. Once you use JFRAME with the all templates then the JFRAME will show up in further NEW usage.
    2. So finally we used the All Templates, and you select the Java GUI Forms > JFRAME form option and click on NEXT.
    3. Give it a name. (I used MyDesktopAppFrm) and click on finish. Be aware you can set advanced options by clicking on next. But for the purposes of this topic we will use default options so click on FINISH
    4. A new JFRAME form appears inside your package. Right click on the form and select Set layout > Absolute Layout.
    5. Add some controls and code. I added a label and a button. And coded the ActionPerformed event of the button to say hello! on the label. this is up to you. The code just looks as follows:
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    // Add your handling code here:
    jLabel1.setText("Hello folks!");
    6. Compile and execute the form.
    Let's say this is our Desktop Application. Now We will pack it in a Jar in two steps...
    A. Create a JAR file (Recipe)
    1. Right-click on your package and select New > All Tempaltes (Long Route) You can also select New > JAR Recipe if available.
    2. On the New Wizard Window, choose the JAR ARchives > JAR Recipe template and click on NEXT
    3. I used MyDesktopApp as the file name and Defaults and then click on Next.
    4. Specify the JAR Contents. Select the Package (not the mounted folder) from the mounted file system and click on add and then click on NEXT twice...
    5. On the JAR Manifest window, click on GENERATE
    6. Edit the manifest in the window to add the following code:
    Main-Class: MyDesktopApp.MyDesktopAppFrm
    7. Ensure the Main-Class definition is the same as your java package and JFRAME name. Click on FINISH
    8. At this point we have a jar file in your project directory but this file wont run because it is missing some Netbeans clases that we will add in the next set of steps... Just to check, compile the file (right click on the JAR file and compile) and try to execute. It must compile but must not execute.(well if it executes you are done. It may execute if you did not set the lay out of the form as AbsoluteLayout)
    B. Add the AbsoluteLayOut to the JAR
    1. Right click on File Systems and select Mount > Archive Files
    2. Look for your netbeans installation folder and select the following file:
    .../netbeans/modules/ext/AbsoluteLayout.jar
    3. Click on finish
    4. Now the JAR File is mounted in the file systems.
    5. Right-click on your MyDesktopApp.JAR file and select properties.
    6. Look for the contents property click once on it and then on its elipsis button [...]
    7. From the FileSystems box in the Contents window, select the AbsoluteLayOut file and click on Add
    8. Then the system asks you if you are sure. Of course you are so click OK. (If not sure, just read the message text and click OK...:-))
    9. Click on OK
    10. Compile your JAR Recipe (right click on it and Compile)
    11. Now you must be able to run the file by right clicking it and EXECUTE.
    12. Also you must be able to run the file by double clicking the file from a Windows Explorer. You may receive a message asking to select the program to run the file with. You must browse and select the Javaw.exe file in the bin directory of your Java RUn Time installation. This is typically located at C:\j2sdk1.4.0_01\jre\bin or something like that. Use the File-Search feature of window to locate the JAVAW.exe file if needed.
    I hope this long explanation helps somebody to deploy Java Desktop applications. Please reply the message if it helps you just to know it was useful.
    Thanks for your time....
    JN

  • Is there any way the Creative Cloud desktop app can indicate which Market items have already been downloaded?

    Hi, I'm not sure whether this is a general issue with the Creative Cloud desktop app, or something is going wrong with my installation, but I receive seem to receive no indication that I have already downloaded an item when I open CC --> Assets --> Market. Looking in my Libraries, I now find some items I've downloaded up to 4 times. Is there some indication I am missing? Is my installation of CC desktop messed up? Or should I suggest that there should be some indication of whether an item has been downloaded or not on that Market page in the app? Even when I go specifically to downloaded items, none of those items has the cloud with the arrow icon grayed out. The only time that icon grays out is when I download the item and keep that page/window open to download other items. As soon as that page/window is closed, the next time I open it, all icons are no longer grayed out, so I no longer have a clue as to what I downloaded unless I open my libraries in my browser. Seems a bit primitive.

    Hi Elba, Thank you for your time and effort in researching this. Unfortunately, the above method you describe is more than a little awkward. When one shows the Downloaded window, as you illustrate, that greys out all the individual categories. So, if I were looking for brushes, I'd have to check if I already had it by going to the downloaded window, then navigate back to brushes by first going to Featured or Recent, and then to Brushes, (even All Categories is not clickable, though it looks active). I'd also need to have a very, very good memory, or be going back and forth very often, with how close some brushes appear, and how similar their names are.
    Instead, in a browser window, I go to my library from my adobe.com page, so I can see what brushes I have while the window where I can download brushes is open:
    However, this still seems awkward to me. Adobe could grey out the icons to indicate they had already been downloaded, while still allowing them to be clickable and downloadable. I guess more code would be needed. I see examples of this every day in both Apple's app store, and Google's play store. For that matter, even the Adobe CC desktop app itself informs me of what Desktop Apps I have installed on each computer, and even whether they need to be updated. I guess, though, the situation for all of those is a bit different, not being quite so cloud-based.

  • Adobe reader app no longer reads files on sd card

    The Adobe Reader app that I am using on my samsung galaxy s4 stop reading the PDF files on my SD card after its latest update. I can still see the files using other apps and I can access the files using Adobe Reader as long as I click on the file first. But if I am in the Adobe Reader app and I am under documents it doesn't read any of the files. I can't find the SD card under all PDF files view or under the folder view. It was working and then it stopped. What can I do?

    Android 4.4 (KitKat) introduced big changes to SD card support.
    Android KitKat Blocks Some Access to Micro SD Cards
    You can find many other articles regarding the SD card problem by searching on the internet.
    We will be investigating the problem.
    To work around the problem in the meantime, could you copy some of the PDF files from your SD card to internal storage (e.g. /storage/emulated/0/...) and see if Adobe Reader can read from and write changes to PDF files on your internal storage.  (It should work based on my limited testing. But please verify it.)
    You can use any Android File Manager app to move/copy files.  Samsung phones and tablets typically has "My Files" as the built-in File Manager.
    Alternatively, you can transfer the PDF files to Acrobat.com (free cloud storage service) and access them from Adobe Reader.
    Please let us know if any of the suggested approaches work for you.
    Sorry for the inconvenience.

  • CC desktop app syncs all my files again- Why please?

    I don't know, why my CC wants to sync all my files in the cloud again? Over 10 GB…
    It was all synced…
    Max OS X 10.8.5
    CC desktop app Version 1.7.1.418

    Lux Larson I am sorry but there is not currently an option to selectively sync files.  Are any types of modifications or updates being made to the files?  Have you closed any third party applications or utilities which could be modifying the files and affecting the sync behavior?

  • Filr Desktop app and some strange files

    Hi!
    Filr 1.0.1.65 and Desktop app as 1.0.2. Have a one xls file which is changed on Desktop and synced with Filr server. Noticed in same dir with original file start to appear some files named as 0C2B2100 etc., probably some copies from original (havent tried to open those), but why!?
    More thanks, Alar.

    NovAlf,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://www.novell.com/support and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Forums Team
    http://forums.novell.com

  • (DESKTOP APP) Can't acsess script in offline mode anymore.

    I can’t access my documents using Desktop App in offline mode.
    When I go offline all my documents turn marked “RED” even they were marked “GREEN” in online mode.
    When I try to open a script in Offline Mode I get the following error: “You are trying to open document in offline mode that has not been downloaded fully from Adobe Story account. …” Even though all documents have been downloaded …
    I thought the whole Idea of the DESKTOP APP is to able to work offline.
    Any idea?
    Thanks for your support, Carsten
    System:
    Windows 7 Professional SP1
    Adobe Story CC 2014 3.0.0
    Adobe Air 15.0.0.356

    I have tried that, I opened document, went offline, closed document and tried to open it again - but it won't work and I got the same error.
    This is problem affects all my documents. I can't open any of my documents in offline mode. Only one project somehow is not affected.
    Cheers,
    Carsten

  • Cameraw raw says it can't read files from T2i from 6.1 but ...

    I had installed CS5 as trial and installed Camera Raw 6.1 - everything worked fine.
    Then I bought and registered CS5, uninstalled CS4 and suddenly LR 2.7 didn't find CS5 as an external editor - even after a reboot and there was no apparent way to make it do that.
    So, I uninstalled CS5 and reinstalled and it showed up in LR 2.7.
    Now, however, CS5 does not recognize my Canon T2i files as it says the Camera Raw version does not support the file format. It did before i bought and registered in the extended version but when i put the new serial number in and it went from extended the regular version, it stopped being able to read the files.
    My version in about and plugins is 6.0.0.205 in CS5 now
    I have downloaded and attempted to install the camera raw 6.1 updater several times - it says some updates failed to install- update is not applicable.
    Tech support says that is the newest version.
    In my trial version, the updater installed, i could read T2i files but now it won't install and i can't read my T2i files.
    I can go through Lightroom which seems to read them OK - I even resinstalled LR 2.7
    What can I do? I want to be able to read some files directly in PS CS5 from the T2i files.
    Thanks
    Greg Summers

    You should ask in the  Camera Raw forum.

  • Applet can't read files

    Hello!
    I have developped ticker news applet
    A previous version was working fine. The applet had a thread. I used the pain method to display texte and logos. It took the news a logo from the applets parameters and printing them one by one on the html page.
    Now the problem was that I had to refresh the whole applet to change the news. That's why I developped another version that extract the news and links to images from 2 separated files. One file contains the news texts, the other the logos. Each one is uploads in a vector. The applet is working fine in textpad but not in the browser.
    The error I get in the console is array out of bound. The vector seems to be empty. My diagnotic is that the applet can't read the file. Am I right? Any solutions
    Here's the applet call and its parameters.
    mess.txt contains the news
    newsimage.txt the links to the images. Actually the images are in the home directory.
    <applet code="aTicker.class" archive="aTicker.jar"
              hspace=0 vspace=0 border=0 align="left" width=640 height=38 MAYSCRIPT>
         <param name="newsfile" value="mess.txt">
         <param name="imagefile" value="newsimage.txt">
         <param name="pas" value="650">
         <param name="cSep" value=";">
         <param name="speed" value="4">
         <param name="delay" value="30">
         <param name="xSpace" value="50">
         <param name="prepicdelay" value="1000">
         <param name="picdelay" value="2000">
         <param name="scrollingdelay" value="100">
         <param name="local" value="true">
         <param name="Font2" value="Verdana, 40, 0, 16776960">
         <param name="Font1" value="Serif , 40, 1, 16776960 ">
    </applet>
    I found this link but it didn't help me
    http://java.sun.com/sfaq/#read
    [email protected]

    All that can be said from the info you provide is that an array is being accessed with an invalid index value. Your guess may (or may not) be correct.
    Sprinkle some System.out.println statements through the code and do some diagnostics. The println's will output their data in the Sun Java Console.

  • Desktop app can't login

    I can't login to the desktop app. It only says that my password/username is incorrect despite using the same for both on the web player. I've tried resetting my password twice and no caps lock isn't on or anything like that, but it only tells me that my username/password is incorrect. I can log in to the web player just fine. Edit: and now my Playstation 4 application cannot login either. Same problem.

    If you are not using the latest build of Story then I'll advice you to uninstall the current version of Story from your machine and get the latest one from story.adobe.com/AIR/AdobeStory.air and install that.
    If you are still not able to signin properly in the application and you are a Story plus user then do the following on your mac: (we have seen this issue only on mac machines, let us know if it's otherwise)
    1. Make sure Story is closed.
    2. Go to ~/Library/Application Support/Adobe/AIR/ELS/
    3. Now rename the folder com.adobe.adobestory… [Just put something at the end] [NOTE: Do not delete it as we may need it later]
    4. Relaunch Story and try to login.
    If you are a Story free user then you can contact us @ DL-AdobeStory-Support  <[email protected]> we'll help you get past the issue.
    Thanks

  • Can't read chinese,can't read files from memory ca...

    is there anyone in here who can HELP me..! i two years ago i bought nokia N80 while i was in Finland.with the model :N80-1 code : 0529381 type: RM-92.yesterday,i was trying to update it from V 4.0623.0.42 of 20.09.2006 to V 5.0719.0.2 0f 24-05-2007..it works great,with new features..but am facing three problems now
    1.i cant read chinese characters (they all looks like boxes)
    2.i cant read my memory card(mini sd 2G)
    3.i want to watch a movie through it,i mean i can copy and paste into my SD card,but i dont know which software should i use so that i can be able to watch through my mobile.
    anyone to help
    thank you guys

    I can't read Chinese mails from my pals in China.
    They show like this:
    I tried to change the encoding, but nothing changed.
    What's wrong with it? how can i read this mail?
    For one of these messages, go to View > Message > Long Headers and tell us what the Content-Type header says. That is the encoding you need to choose in Message > Text Encoding.
    Everytime I write in Chinese and
    Japanese, I have to change to the encoding of the
    right language manually, otherwise my friends won't
    be able to read them. How can Mail recognize what
    language I am writing in and change to the right
    encoding automatically?
    The encodings being used by Mail are already "right" by international standards, but the software being used by your friends apparently requires something else. You can fix it for one of the languages with the info in this note, but the other you would still have to do manually:
    http://discussions.apple.com/thread.jspa?threadID=121808&tstart=60

  • ALL MY DESKTOP APPS CONVERTED TO PDF FILES.

    After sending an urgent email attachment in Adobe PDF to Government Offcom, all my Desktop applications in windows 7 64 bit have been converted to PDF files and cannot be opened.   The attachment used was sent to me by my Secretary remotely using an old MAC.
    I can return my laptop to normal operation by un installing my Adobe Reader 11 app, but the problem returns when I re Download Adobe Reader
    11 again.     After discussing this with Adobe Technical in London they advised me to raise this issue with your Adjudicators in this Forum. 
    Please assist asap as this is very urgent right now for several genuine reasons.
    Many thanks.   Derek Horder.

    See if anything in here helps: https://helpx.adobe.com/acrobat/kb/application-file-icons-change-acrobat.html

Maybe you are looking for