Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error in creating jar files

 
Dhivya rajagopal
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1602
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the complete exception stack trace?
 
Dhivya rajagopal
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic