I am trying to make a jar but what I seen after extracting jar there was nothing inside folders.only images are present .I am using my SQL as a database and I am using net beans for it.my project is not over.but I completed some module so want to see it.please help me out what will be the problem.I did exactly the same what youtube video showed me confi n building on clicking hammer like symbol
How do you export jar file? With netbeans, when you click Clean An Build or Build icon - yes, that should be the hammer icon - it automatically creates a dist folder where you should find a lib subfolder with all library jars within, a myproject.jar file which includes all your own project classes, and a readme file which tells you how to launch your program with command from your OS shell.
Just try first with a simple project to verify if what I wrote above is right for you - I am not sure but I suppose that behaviour may be overridden by custom settings in netbeans.
yes the same thing is happening with me there are only folders which i have made in netbeans but when i check it for class files after extracting jar there is nothing inside it.i have attchached jar sir please go through it and let me what should i do,i am really cracked my brain to do so but nothing is working out,you are senoir please let me know how should i over come this sitaution.i have attached the screenshot also of my build config.
ant -f E:\\NetBeansProject\\JavaApplication1 -Dnb.internal.action.name=rebuild clean jar
Updating property file: E:\NetBeansProject\JavaApplication1\build\built-clean.properties
Deleting directory E:\NetBeansProject\JavaApplication1\build
Created dir: E:\NetBeansProject\JavaApplication1\build
Updating property file: E:\NetBeansProject\JavaApplication1\build\built-jar.properties
Created dir: E:\NetBeansProject\JavaApplication1\build\classes
Created dir: E:\NetBeansProject\JavaApplication1\build\empty
Created dir: E:\NetBeansProject\JavaApplication1\build\generated-sources\ap-source-output
Compiling 31 source files to E:\NetBeansProject\JavaApplication1\build\classes
Copying 17 files to E:\NetBeansProject\JavaApplication1\build\classes
Copied 4 empty directories to 2 empty directories under E:\NetBeansProject\JavaApplication1\build\classes
Created dir: E:\NetBeansProject\JavaApplication1\dist
Copying 1 file to E:\NetBeansProject\JavaApplication1\build
Copy libraries to E:\NetBeansProject\JavaApplication1\dist\lib.
Building jar: E:\NetBeansProject\JavaApplication1\dist\JavaApplication1.jar
To run this application from the command line without Ant, try:
java -jar "E:\NetBeansProject\JavaApplication1\dist\JavaApplication1.jar"
BUILD SUCCESSFUL (total time: 5 seconds)
When I am double clicking it nothing is happening in jar how can it work it does not have class files and everything for running this application.
I had given my whole month to complete this project now I am stuck here please give me suggestion sir how can I run it.
Until and unless class files are not coming into my project nothing will happen
At first glance, given elements you provided, I don't see anything wrong with your project. Of course, from a screenshot it's hard - at least for me to guess what really is wrong.
What about if you create another project, a simple helloworld which Netbeans creates from scratch from you, and try to build it ? You should get a working jar.
When you get a workinng jar, i.e a jar that executes your new simple test program by command line, I would verify options one by one to see what are the differences.. if any.
Another question: you should find not only a "dist" folder in your project. After build process, you should get a "build" folder with classes subfolder within. Is that right ? How many classes do you find there ?
I had over come to this problem,the problem is with my layouts some layout is override the properties of netbeans that is why it happened i changed the whole lay out and now i am able to fix it and making jar thatnks for your concern.