Io does not work outside IDE **Importing issues?**

I am new to javafx and was really enjoying writing a desktop app for local use. I have been using netbeans which I am also new at. I have ran into a snag and I'm getting quite frustrated with it. Reading and Writing files works just fine in a normal java program, the problem only arises with javafx. When I run the javafx program in Netbeans, everything works fine, the program is able to read from files and write to files without a problem. When I do a build then run the .jnlp, the program runs fine but will not read or write any files. I've been trying for long while and can not figure this out. I'd appreciate the help, I might be missing something entirely.
**UPDATE** It seems to be the case with other imported libraries? I just tried using "import javax.swing.JFileChooser;" and the dialog won't even pop up (it works fine in netbeans)
I have tried the following utilities, importing them as follows:
import java.io.PrintWriter;
import java.io.FileOutputStream;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.File;
import java.io.IOException;
import javax.swing.JFileChooser;
I imagine i just need to get what I'm doing wrong with using imported libraries.
Edited by: 839984 on Feb 25, 2011 10:51 PM

To find the console of java while you are running the java app from browser ; small java icon is displayed at right top corner (tray icon) on Mac OSX (right bottom tray icon on windows).Right click the icon and click on 'Open 1.6.x_x Console'.
But if you are running the java app from desktop then you can go to JAVA control panel >Advance Tab> Java Console (Tree) > Show Console (Radio Button)
Thanks.
narayan

Similar Messages

  • Reading message from MQ- works in WSAD (IDE) but does not work outside WSAD

    Read from MQ:
    Same code works within WASD but does not work outside WSAD.

    PDL - thanks for the suggestions - here are the results:
    A button on the form that executes "this.print();" works fine.
    Changing "this" to "event.target" results in the same error.
    document.getElementById("PDFObj").Print(); works fine.
    However, the reason that I'm using ".postMessage([message])" instead of ".Print()" is because I actually have a toolbar that has save, print, zoom in, zoom out, page up, page down, etc.... I simplified the switch statement in the post above to only include print, but in reality has a case for each of the functions above. The postMessage call is triggering the error, since the catch statement is printing out the error message above. Any idea why this would work with Professional but not Reader.

  • I-5 vibration function does not work - any ideas?

    i-Phone 5 vibration function does not work - any ideas why?

    I am having similar issues.  I took to Apple Genius Bar today and of course it would not do it. His suggestion was to restore iOS 6 and see what happens.  I'm currently restoring and I'll see what happens

  • I have a MacBook, made in 2010. I can't get the eject function to work. I have a DVD in now and want to eject it and put another one in. Command-E, dragging it to the trash or Find-Eject does not work. Ideas?

    I have a MacBook, made in 2010. I can't get the eject function to work. I have a DVD in now and want to eject it and put another one in. Command-E, dragging it to the trash or Find-Eject does not work. Ideas?

    Hi there. Hear are some other options . Hold down for click on the track pad while restarting and keep it down all the way thru boot. Or use right click on a mouse. If it's stuck, sometimes sticking a business card in top edge of slot while trying the eject option can work.

  • My iphone 4s will not connect to networks.  the button is greyed out and cannot turn o.  I have reset the network settings and it still does not work - any ideas?

    My iphone 4s will not connect to networks.  the button is greyed out and cannot turn on.  I have reset the network settings and it still does not work - any ideas?

    Thank you I tried the reset again did not fix- I think I am down to calling Apple and paying for a tech - phone company says it is a software problem.  I just updated to 8.1.3  - I thought the update might fix it.

  • JasperReports does not work outside Netbeans

    Hi guys,
    Background story: application with a couple of forms, the data can be stored and saved from a sqlite database. In the end the forms need to be saved as a PDF.
    Netbeans 6.7, JasperReports 4.0.2.
    Libraries in my Classpath: Commons-beanutils, Commons collections, commons digester, commons javaflow, commons logging, iText, Jasperreports
    I tried to use JasperReports for this matter. It runs perfectly when in Netbeans, and my PDF is generated.
    However, when I try to run the compiled .jar file from windows explorer... the whole JasperReports part does not work at all.
    I made a simple example showing my problem. It produces a nice 1 line PDF when in netbeans, but outside Netbeans, nothing again.
    Could you give me some advice on this? Or maybe an alternative for JasperReports?
    Thanks alot,
    Elwin
    package jasperreportsproject2;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import net.sf.jasperreports.engine.*;
    import net.sf.jasperreports.engine.export.*;
    import java.util.*;
    * @author Elwin
    public class Main {
         * @param args the command line arguments
        public static void main(String[] args) {
            String fileName = "test1.jrxml";
            String outFileName = "test.pdf";
            HashMap hm = new HashMap();
                // Fill the report using an empty data source
            try {
                JasperPrint print;
                JasperReport jasperreport;
                jasperreport = JasperCompileManager.compileReport(fileName);
                print = JasperFillManager.fillReport(jasperreport, hm, new JREmptyDataSource());
                // Create a PDF exporter
                JRExporter exporter = new JRPdfExporter();
                // Configure the exporter (set output file name and print object)
                exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, outFileName);
                exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
                // Export the PDF file
                exporter.exportReport();
                } catch (JRException ex) {
                Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
    }The xml file used to build the report
    Test1.jrxml
    <?xml version="1.0" encoding="UTF-8"?>
    <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="HelloWorld" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="30" bottomMargin="30">
         <property name="ireport.zoom" value="1.0"/>
         <property name="ireport.x" value="0"/>
         <property name="ireport.y" value="0"/>
         <detail>
              <band height="200" splitType="Stretch">
                   <staticText>
                        <reportElement x="0" y="0" width="500" height="20"/>
                        <textElement/>
                        <text><![CDATA[Hello Report World!]]></text>
                   </staticText>
              </band>
         </detail>
    </jasperReport>

    Another for xsql:
    Producing PDF Output with the FOP Serializer
    at
    http://www.stanford.edu/dept/itss/docs/oracle/10gR2/appdev.102/b14252/adx_j_xsqladv.htm
    NA
    http://nickaiva.blogspot.com

  • Command_link does not work outside of form

    if command_link is outside of form, it is rendered without a warning notes, but does not work correctly.

    Sorry, you did not get my point again.
    Currently, I check how JSF RI helps developer to recognize his/her mistakes.
    In case of command_link outside of the form, RI says "Everything is all right. Spend the next couple minutes (couple hours or days, depends of developer qualification) to find this trick.

  • HT1695 the internet on my iphone 4s does not work outside of my house

    My iphone 4s only connects to the internet in my house, it does not work if I am anywhere else. Everyone else who has an iphone can, how can I make mine work??

    Same. Reset Network -> not solved.
    Restore twice -> not solved.
    I take to genius bar. The STAFF tell me i need take the responsibility on updating the system. Haha.
    I NEED TAKE MY risk on updating to ios6.
    As my iphone4s is out of warranty, the staff told me need to paid 1560HKD to repair.
    I using ios 5 without ANY PROBLEM just because i need install new apps which require ios6.1
    Now the other iphone4s (I got 2 total, one self one my wife) not planning to upgrade, or will not interest iphone 5, who knows if update ios 7 will got something else error and told me is personal fault.

  • My ipod touch is not turning on, i tried to reset it holding home button   power but that does not work, any idea?

    my ipod touch is not working , i tried to rest it holding the power button and home for a while but that does not help..
    any idea ?

    Connect the iPod to its syncing computer.  Let it charge for 1/2 hour .  If iTunes sees the iPod restore it via iTunes
    Next see if placing the iPod in recovery mode will make it visible in iTunes so you can restore the iPod.  For recovery mode see:
    iPhone and iPod touch: Unable to update or restore
    Also see:
    iPod touch: Hardware troubleshooting

  • Installed Adobe Photoshop CS6 on MacBook Pro OS 10.7.5, now my DVD player does not work. Ideas?

    I installed Adobe Photoshop CS6 on MacBook Pro, OS 10.7.5. Now my DVD player will not work. Any ideas?

    Problem solved. Yes, it was a coincidence. The problem had to do with my DVD preferences, not the Adobe installation. Thanks for your reply.

  • How can I run two different versions of Firefox, the latest does not work with an important site I need to use?

    With the latest version of Firefox I cannot send "Quick Mails" to my students using the college's ANGEL system. I had to uninstall it and go to an earlier version. I prefer the newest rev.
    Any way to run two different versions. It does not have to be simultaniously. Seems to be a problem on both my Mac and XP systems.
    Thanks,
    Kim

    Currently I don't think there is a way to run two version of firefox at the same time. But you can install Firefox Beta or Aurora instead (which is build for future release for firefox) and help test it! Here's the link:
    http://www.mozilla.org/en-US/firefox/channel/

  • I'm trying to play a video but it does not work or load up, issue? No video with supported format or MIME type found issue in Firefox 28.0 Windows vista

    no playback of videos -latest flash player installed and updated add-ons but it still dosn't work. only youtube works but no other site.

    Will you not post the link to the video like I requested, or at least let us know if you can play the videos on the pages I linked to? It would prevent more random guesswork.
    Firefox doesn't try to play files it can't handle. When coming across a direct link to a file that could be handled by a plug-in, but that plug-in isn't installed, Firefox would display a download prompt.<br>
    That's not the issue here, where there's an unsupported format error. That suggests an MP4 file that can't be played. Even if a plug-in that can handle MP4 files were installed, Firefox probably wouldn't use it due to bug 861090.
    Firefox has supported HTML5 H.264 video on Windows Vista since version 22.0. There's no point in installing the very old — and likely abandoned — Windows Media Player plug-in.

  • Flex Application does not work outside of the default dir

    Hi,
    I have developed a flex application which calls a http
    service and displays the contents in a text area.
    This works fine when I execute it from the flex builder or
    from the directory where the flex builder stores it.
    If I copy the files to any other dir or the server, after
    making http call no result is displayed in the text area.
    Is there any thing else i need to do other building
    application in flex builder for deployment.
    Please help,
    Thanks in advance,
    Chintan

    "rtalton" <[email protected]> wrote in
    message
    news:gjlmvm$hrv$[email protected]..
    > Stubborn, aren't we? Ok, let me try again:
    > You only use "loadPolicyFile" to load a non-default
    policy file. remove
    > that
    > line from your code.
    > Also you do not need this line:
    > flash.system.Security.allowDomain("*");
    > ...in your code. Remove it. This is used when you have
    two SWFs on two
    > different servers. You do not.
    >
    > Again, read this page:
    >
    >
    http://livedocs.adobe.com/flex/3/html/help.html?content=deployingoverview_12.htm
    > l
    >
    > Your answer is there.
    > Hint: all you need is to *properly* deploy a
    cross-domain policy file.
    > Really.
    > I'm being very honest here. Have I ever lied to you
    before? No, I haven't.
    > So
    > you're buying the first round tonight after work, ok?
    Some people will do anything for a date ;-)

  • Break statement does not work outside of switch or loop?

    I was just messing around in Xcode and I discovered that, when I tried to use the break statement to exit a block of code, I got an error ("break statement not within loop or switch"). I thought the break statement was supposed to be able to be used to exit any block of code at any time, so I opened my Mac OS X Programming book by Wrox (a bit outdated, uses older version of Xcode/Interface Builder, but applicable enough), and the book confirmed that I should be able to use the break statement within any block of code, not just switch/case construction and loops. I assume something has changed in the newer version of Xcode since this book has been published, but I'm curious, so can anyone explain this to me? Thanks!

    Yeah, that seems to be the case, and that's the only way I've ever used "break," but I did think it could be used to exit any block of code, especially having read it in the book I have. The book is Mac OS X Programming by Wrox, and on page 175 in the "The C Language" chapter, it says:
    "break" is not only useful for "switch" and "while" statements; it can actually be used anytime you want to escape a block of code enclosed in braces. Execution is immediately transferred to the closing brace, and continues from there."
    Anyways, I guess it is possible that in some older standard of C the "break" statement was allowed in these cases, since I can't imagine the book being out and out wrong, but you're right, it certainly seems to be -- interesting...

  • Does anyone have an iPhone that does not work outside one country, a valid roaming sim will not work in a second country, neither will a new sim from that country

    I first thought this was a network lock snag,
    Could only resolve when travelling,
    Now I have been told apple don't know why their phone doesn't work

    When go with a service that service provider locks the phone until the contract agreement is fullfilled. Even if you don't have a contract you still need to contact the first service provider and request to have the phone unlocked.

Maybe you are looking for

  • Delete file from iTunes Library and Computer

    I convert a lot of my own TV shows for playback on iPad/iPod touch. Once I have watched the show I delete it from my library. It used to be that when I deleted from my library, I would get a message asking if I wanted to delete from library only or f

  • Session Bean trying to send a message to Websphere MQ5.3

    Hello all, I use WSAD5.1 and Websphere MQ 5.3. Websphere MQ is installed on a Solaris box with a Queue Manager configured and several queues created on it. The WSAD, is running on a different machine. I have written a session bean with a method, putM

  • Anyone know how to make a personal template for iWeb 2.0?

    Seems things changed in the content folder and descriptions for the previous version are unusable. I don't understand why there isn't a chapter in the manual for this! Isn't it un-Applish to not let the mac users roam free with their creativeness- or

  • C++ key iteration

    Hi, I realise you're still finalising the documentation and various areas may be a little sparse at the moment. With this in mind I was wondering if you could help me out the manipulation of some of your classes. I want to iterate over all the keys i

  • Scheduling Process chains

    I want to stop the scheduling of the process chains for two days in a week. Presently the chains are running daily and i need to stop the loading for two days in a week.