aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes error in creating jar files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "error in creating jar files" Watch "error in creating jar files" New topic
Author

error in creating jar files

Dhivya rajagopal
Ranch Hand

Joined: Dec 15, 2010
Posts: 42
Hi, I have created swing program in net beans . and also i have created jar file using build button. jar file was created in the specific path. when i double click the jar file, it displays
" A java exception has occurred"
can you please tell me why it is occurred and how to resolve it
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1479
    
    6

What is the complete exception stack trace?


Swastik
Dhivya rajagopal
Ranch Hand

Joined: Dec 15, 2010
Posts: 42
Hi Dey, after clicking the build project button, it displays the following

init:
Deleting: C:\Documents and Settings\Admin\My Documents\NetBeansProjects\com.Loginform\build\built-jar.properties
deps-jar:
Updating property file: C:\Documents and Settings\Admin\My Documents\NetBeansProjects\com.Loginform\build\built-jar.properties
Warning: login.form modified in the future.
Warning: login.java modified in the future.
Compiling 1 source file to C:\Documents and Settings\Admin\My Documents\NetBeansProjects\com.Loginform\build\classes
Note: C:\Documents and Settings\Admin\My Documents\NetBeansProjects\com.Loginform\src\login.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Warning: modified in the future.
compile:
Copying 1 file to C:\Documents and Settings\Admin\My Documents\NetBeansProjects\com.Loginform\build
Nothing to copy.
Building jar: C:\Documents and Settings\Admin\My Documents\NetBeansProjects\com.Loginform\dist\com.Loginform.jar
To run this application from the command line without Ant, try:
java -jar "C:\Documents and Settings\Admin\My Documents\NetBeansProjects\com.Loginform\dist\com.Loginform.jar"
jar:
BUILD SUCCESSFUL (total time: 0 seconds)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error in creating jar files