problem in creating jar in netbeans

  • (2 Pages)
  • +
  • 1
  • 2

15 Replies - 649 Views - Last Post: 03 July 2015 - 01:42 PM Rate Topic: -----

#1 rohtashrathore  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 11-June 15

problem in creating jar in netbeans

Posted 25 June 2015 - 10:39 AM

i have created one small project which includes database and now i want to make a jar of it now the problem which i am facing is the jar is creating through clean and build but when i extract it nothing is into empty folder only the pictures are there,and rest folders are empty i am pasting here the everything which i got in console,

Updating property file: E:\NetBeansProject\JavaApplication1\build\built-clean.properties
Deleting directory E:\NetBeansProject\JavaApplication1\build
clean:
init:
deps-jar:
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 30 source files to E:\NetBeansProject\JavaApplication1\build\classes
Copying 15 files to E:\NetBeansProject\JavaApplication1\build\classes
Copied 4 empty directories to 2 empty directories under E:\NetBeansProject\JavaApplication1\build\classes
compile:
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\Inventory.jar
To run this application from the command line without Ant, try:
java -jar "E:\NetBeansProject\JavaApplication1\dist\Inventory.jar"
jar:
BUILD SUCCESSFUL (total time: 47 seconds)


Is This A Good Question/Topic? 0
  • +

Replies To: problem in creating jar in netbeans

#2 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3464
  • View blog
  • Posts: 15,676
  • Joined: 20-September 08

Re: problem in creating jar in netbeans

Posted 25 June 2015 - 10:52 AM

Please post the output of the following:

jar tf E:\NetBeansProject\JavaApplication1\dist\Inventory.jar

Was This Post Helpful? 1
  • +
  • -

#3 rohtashrathore  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 11-June 15

Re: problem in creating jar in netbeans

Posted 25 June 2015 - 11:02 AM

I am sorry it was netbeans i mistakenly typed eclipse and Goose sir do you want tht jar file which is created? i have attached jar sir
Was This Post Helpful? 0
  • +
  • -

#4 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3464
  • View blog
  • Posts: 15,676
  • Joined: 20-September 08

Re: problem in creating jar in netbeans

Posted 25 June 2015 - 12:01 PM

No - i want you to post the output of the command i posted
Was This Post Helpful? 0
  • +
  • -

#5 rohtashrathore  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 11-June 15

Re: problem in creating jar in netbeans

Posted 25 June 2015 - 12:09 PM

Microsoft Windows [Version 6.1.7601]
Copyright © 2009 Microsoft Corporation. All rights reserved.

C:\Users\rohtash>jar tf E:\NetBeansProject\JavaApplication1\dist\Inventory.jar
META-INF/
META-INF/MANIFEST.MF
ERP/
ERPDao/
ERPModels/
ERP/images/
ERP/Bundle.properties
ERP/build.properties
ERP/images/Actions-list-add-icon.png
ERP/images/Add.png
ERP/images/Dj-View-icon.png
ERP/images/Double-J-Design-Ravenna-3d-Save.ico
ERP/images/Folder-Add-icon.png
ERP/images/Gakuseisean-Ivista-2-Misc-Delete-Database.ico
ERP/images/Group-icon.png
ERP/images/Misc-Delete-Database-icon.png
ERP/images/delete-icon.png
ERP/images/logo.png
ERP/images/pencil-icon.png
ERP/images/social-facebook-box-blue-icon.png
ERP/images/twitter-icon.png

C:\Users\rohtash>
Was This Post Helpful? 0
  • +
  • -

#6 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3464
  • View blog
  • Posts: 15,676
  • Joined: 20-September 08

Re: problem in creating jar in netbeans

Posted 25 June 2015 - 01:07 PM

That's not going to do anything - it's just a lot of images
Was This Post Helpful? 0
  • +
  • -

#7 rohtashrathore  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 11-June 15

Re: problem in creating jar in netbeans

Posted 25 June 2015 - 01:24 PM

Yes sir,
Now how should I do anything my project is working fine in net beans .the problem is only on creating jar how can I include class files.I have to much expectation from you people .because you are much more seniors then me
Was This Post Helpful? 0
  • +
  • -

#8 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3464
  • View blog
  • Posts: 15,676
  • Joined: 20-September 08

Re: problem in creating jar in netbeans

Posted 25 June 2015 - 02:23 PM

Quote

i have created one small project which includes database


What do you mean by "includes database"? Which one?
Was This Post Helpful? 0
  • +
  • -

#9 rohtashrathore  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 11-June 15

Re: problem in creating jar in netbeans

Posted 25 June 2015 - 02:29 PM

View Postg00se, on 25 June 2015 - 02:23 PM, said:

Quote

i have created one small project which includes database


What do you mean by "includes database"? Which one?

Hi sir thanks for your reply here I mean that I am using my SQL database and till now I hard coded path after finalisation of module I will change it properties till now it is running in local host.
It is not just simple swing application it has all features I used bean classes and now want to wrap all into jar sir how should I do .what should I do
Was This Post Helpful? 0
  • +
  • -

#10 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3464
  • View blog
  • Posts: 15,676
  • Joined: 20-September 08

Re: problem in creating jar in netbeans

Posted 25 June 2015 - 02:55 PM

You can't do that with MySql. How are you going to move a whole RDBMS around in a jar?
Was This Post Helpful? 0
  • +
  • -

#11 rohtashrathore  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 11-June 15

Re: problem in creating jar in netbeans

Posted 25 June 2015 - 03:00 PM

View Postg00se, on 25 June 2015 - 02:55 PM, said:

You can't do that with MySql. How are you going to move a whole RDBMS around in a jar?

I will use my sqlite later on but my first problem is until and unless the class files will not come into the jar nothing will workout ,how can I do this sirsir

What I will do I will make .db in sqlite and provide this path to my application then it will work standalone aop
Was This Post Helpful? 0
  • +
  • -

#12 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3464
  • View blog
  • Posts: 15,676
  • Joined: 20-September 08

Re: problem in creating jar in netbeans

Posted 25 June 2015 - 03:04 PM

I don't really use SQLLite but you can use an embedded DB such as HSQL.

I don't know what's gone wrong with your jarring - Netbeans is meant to export the whole app into the dist directory, so i don't know why it hasn't. If you can zip the whole project and post it somewhere - i'll look at it

This post has been edited by g00se: 25 June 2015 - 03:05 PM
Reason for edit:: Clarification

Was This Post Helpful? 1
  • +
  • -

#13 rohtashrathore  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 11-June 15

Re: problem in creating jar in netbeans

Posted 25 June 2015 - 03:12 PM

View Postg00se, on 25 June 2015 - 03:04 PM, said:

I don't really use SQLLite but you can use an embedded DB such as HSQL.

I don't know what's gone wrong with your jarring - Netbeans is meant to export the whole app into the dist directory, so i don't know why it hasn't. If you can zip the whole project and post it somewhere - i'll look at it

OK please give me your emailid I will give you siurce
Was This Post Helpful? 0
  • +
  • -

#14 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3464
  • View blog
  • Posts: 15,676
  • Joined: 20-September 08

Re: problem in creating jar in netbeans

Posted 25 June 2015 - 03:18 PM

No - i don't want it mailed thanks. Put it somewhere i can download it
Was This Post Helpful? 1
  • +
  • -

#15 rohtashrathore  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 11-June 15

Re: problem in creating jar in netbeans

Posted 28 June 2015 - 07:39 AM

hi G00se i have solved the issue the problem was with my layout is it being overriddn the ant property
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2