Application compiles and builds on Netbeans but not as an independent jar file?

Is it possible that your application compiles and builds flawlessly in Netbeans but when you build it and run it outside of Netbeans you get heaps of Exceptions??!  (keeping in mind that the all the libraries and dependencies are ported along with the actual jar file).
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I've already covered this in your previous (still open) question. Why did you open a new one?
Pramod KumarCommented:
If you are getting error outside related with: missing classes, then surely there are some library missing.
I can put more comment if i know exact issue you are getting.
snajalmAuthor Commented:
With this one, what I got was that the Netbeans does not take the VMOptions in the compile time and therefore one would need to either hard code these parameters inside the application or create a configuration file that would pass the parameters to the application!  In my case these few lines of code solved my issue,

Properties systemProps = System.getProperties();
systemProps.put("", "jssecacerts");

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
snajalmAuthor Commented:
I found the answer to the question by googling around!
>>In my case these few lines of code solved my issue

That's not a good way of doing things btw
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.