Skip to main content



      Home
Home » Newcomers » Newcomers » running an app with a Main class
running an app with a Main class [message #129999] Mon, 16 January 2006 14:29 Go to next message
Eclipse UserFriend
Originally posted by: mik100.aol.com

I am trying to run an app. with a Main class to test out some
functionality and I have run many before this one with complete success.
But this one is using some packages created from scratch and I am
recieving the error:
"Exception in thread "main" java.lang.IllegalArgumentException: cannot
instantiate class
com.redprairie.les.sal.dao.hibernate.LesSalHibernateDAOFacto ry:
java.lang.reflect.InvocationTargetException". I am not showing any real
errors and I do not know what a InvocationTargetException is. What the
some possibilities for why I would be recieving this error?
Re: running an app with a Main class [message #130053 is a reply to message #129999] Tue, 17 January 2006 00:54 Go to previous message
Eclipse UserFriend
It would be nice to see the code that is causing this error, along with a
full error stack trace.
Nonetheless, here's information about InvocationTargetException:
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/reflect/In vocationTargetException.html
From the information you've provided, it seems like some piece of code that
you are calling has a reference to that LesSalHibernateDAOFactory class, and
it cannot find it. It might be necessary to add some libraries to your
project's path.
Provide the code that's causing the problem and a stack trace, and maybe we
can provide more info.


"mike i" <mik100@aol.com> wrote in message
news:f50f86b3834f6b00c172ee51afc7b520$1@www.eclipse.org...
>I am trying to run an app. with a Main class to test out some functionality
>and I have run many before this one with complete success. But this one is
>using some packages created from scratch and I am recieving the error:
> "Exception in thread "main" java.lang.IllegalArgumentException: cannot
> instantiate class
> com.redprairie.les.sal.dao.hibernate.LesSalHibernateDAOFacto ry:
> java.lang.reflect.InvocationTargetException". I am not showing any real
> errors and I do not know what a InvocationTargetException is. What the
> some possibilities for why I would be recieving this error?
>
Previous Topic:Error "Required Java version:" vs. runtime environment?
Next Topic:deploy with oracle driver
Goto Forum:
  


Current Time: Fri Jul 18 18:34:28 EDT 2025

Powered by FUDForum. Page generated in 0.09699 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top