• Post Reply Bookmark Topic Watch Topic
  • New Topic

standalone *.jar using javaw will not throw exceptions  RSS feed

 
Steve Howerton
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello,
I have an app that runs good in the NETBEANS ide. When I run it as a stanalone exec.jar and place the executable in the project folder or when I place the executable on the thumb drive it runs with anomolies.
When I run the app from a thumb drive it will not throw my exceptions
I am using Netbeans ide.
It will create the frame.ser and save it in my dir and it will write my XML properly but it will not do both. If it actually writes my XML it will stop before it adds the default close operation "X" in the upper right corner.
When running the app from the thumb drive it does not complete the JInternalFrame and it reads the frame.ser yet it will not open. I must be encountering a loadXMLResource problem.

What is it about a standalone exec .jar using dependencies that does not want to properly serialize a JInternalFrame to a dir on the thumb drive and open it?
My app is using the variable:

and the XML.xml file is in the userdir at:


I also use a properties sheet



As I mentioned. When I run the app as a standalone on the thumb drive. It will not throw any of my exceptions: exeception example to follow.

thanks









ModelResourcesXML.xml








 
Steve Howerton
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello again.

I have another app that I am having the same problem with. This one has the apache dery imbedded database. Along with no exceptions the app creates my db folder but it does not know how to put the necessary db in the created dir. It to is loading xml to use properties. Netbeans has the derby.jar
file added in the library





 
Ivan Jozsef Balazs
Rancher
Posts: 999
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javaw runs without a controlling DOS box.

An idea (I did not try it however) could be to wrap your real main into a wrapping method in order to catch there eventual exceptions and to show them in a GUI window popped up for this purpose.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!