• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

error in creating jar files

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 2270
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the complete exception stack trace?
 
Dhivya rajagopal
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic