hello,
I build a Java Applicaiton to a executable application1.exe file using JBuilderX. I got following message when I am running applicaton1.exe under Windows XP dos command mode:
------------------------------
java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Unknown Source)
at java.util.Properties.load0(Unknown Source)
at java.util.Properties.load(Unknown Source)
at com.cete.dynamicpdf.Document.<init>(Unknown Source)
at testapplication.Frame1.jButton1_actionPerformed(Frame1.java:56)
at testapplication.Frame1_jButton1_actionAdapter.actionPerformed(Frame1java:85)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Souce)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
E
--------------------------------------------------
This error occurs when the program runs to the following line:
---------------------------------------
Document document = new Document();
---------------------------------------
Should I add any property file in my application.jar's META-INF directory or any other directory? Or should I add any additional settings when I build my Java Application to a executable file?
I have already added the DynamicPDF.jar in my application1.jar associated to the application1.exe.
NullPointException error in Java Application
Re: NullPointException error in Java Application
Support · Sep 27, 2007Hello,
Can you please try keeping our DynamicPDF.jar file separate and include it in your classpath rather than associating it with your application's jar file. Use our jar file as independent library jar file. This will likely solve the problem.
Thanks,
ceTe Software Support Team