I have a java program which can download data from MySQL and write them in a chosen file format e.g. TXT. Here is the txt writer:
This writer is called in a JCombobox actionperformed as in an other java file:
I would like to show the progress of the writer with JprogrssBar, but I do not know how should
I measure the writer progress (i.e. the integer value for set the JprogressBar value). Could someone suggest me a solution?
I use NetBeans 8.1 for developing a Java project. I use InMemoryJavaCompiler in two classes. When I run the project under NetBeans it works correctly. I created a .jar file from the project with When I try to run the .jar file the program does not work. It generates a NullPointerException regarding InMemoryJavaCompiler:
I tried to add and move up the from in NetBeans and built again the program but it doses not help. On my computer, the java path is.
Could someone suggest me a solution to fix the nullpointerexception error?
Here is the ComPiler.java class where I used InMemoryJavaCompiler:
and here is the part of the code where I called the ComPiler Class:
I receive the following error:
I wrote a Java project in NetBeans IDE. This project contains two abstract Java Classes which are compiled with InMemoryJavaCompiler.
When I run the code in the IDE it works. I produced a .jar file from this project with build packing and clear and build.
When I run the .jar file I receive a NullPointerException error when I use the abstract classes.
Could someone suggest some solution?
Thank you for your help in advance!
The name of the BLOB column in SQL is "IMAGE" and the Table name is "IMAGES" because some .png images are stored as a binary large object.
I tried to create PDF in the same way as you suggested. I just commented out the "For PDF writing" part because the part of the code after "else" is the same as
you suggested. It creates PDF but when I open it I got the same format error.