eclipse - java application is not running on jar after sorting in packages -


I have is an application that works more than a year,

My All classes Default_package,

Since this large (more than 30 classes) has been found, I have decided to separate it into separate packages.

I restructured, made changes and handled all the errors.

Now when I run it through eclipse, when I export it in a runny jar, then it is not working.

Methods I tried to export both: Remove required libraries .... and Package required library

Either ...

When I run it from the command prompt, I get the following error:

  E: \ Server 3.0 request; In java -jar request SrvV3DB1111.jar thread exception "AWT-EventQueue-0" java.lang on Dudug.RequestServer.ServerInfoPanel. NullPointerException. & Lt; Init & gt; (ServerInfoPanel.java:110) on dudug.RequestServer.RequestServerDB $ 1.run (request Java.awt.event.InvocationEvent.dispatch on java.awt.EventQueue.dispatchEventImpl (Unknown Source) java.awt.EventQueue (Unknown Source) $ 200 .access (unknown source) at java.awt. Java.awt.EventQueue at $ 3.run (unknown source) $ 3.run (unknown source) at java.security.AccessController. (unknown method) Javaksecurity Privileged on ProtectionDomain (Basic Method) $ 1.doIntersectionPrivilege (unknown source) java.awt on Java.awt.EventDispatchThread.pumpOneEventForFilters (unknown source) java.awt.EventDispatchThread.pumpEventsForFilter (unknown source) on Java.av.Avent Dispatches E. PumpEventsForHierarchy (Unknown Source) at INTQueue.dispatchEvent on JavakawtkEventDispatchThread (Unknown Source) (Source Unknown) (Unknown Source Java.awt.EventDispatchThread.run)  

< Strong> Please help !!!

/ Strong>

let me fool Feel it.

@Chasmo enlightened me that the number after the class name (ServerInfoPanel.java: 110 ) the problem line,

I checked there and I found this code:

  if (props.getProperty ( "offline dB"). equals ( "0")) dbOfflineMode.setBackground (green in color); Else dbOfflineMode.setBackground (Color.RED);  

I forgot to add "offline db" value to my propfile, and that was the problem.

Thanks @ Chesh


Comments