Re: help:Exception in thread "main" java.lang.NoClassDefFoundError: Application

Georg von Bülow <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
The MacOSClassPath.txt should contain your myApp.jar, while the Application.class is defined in # ApplicationClass == Application (if necessary, i.e. Application is not in the default package, the full package name of the class should appear here). Anyway, as you already wrote that you could run your WOApplication through Terminal, the file should be O.K.

If you want to run from Eclipse, check the following in your run configuration:

1) the main class on the first tab has to be set to your Application.class

2) on "Arguments", set Working Directory to Other: ${workspace_loc:myApp/dist/MyApp.woa}

Besides, it´s useful to make a clean and refresh before running.

Hope that helps,
Georg

Hi,

The principal class setting in the app. shows no error.

Btw,one strange thing i noticed is the MacOSClassPath.txt at the
/Library/WebObjects/Applications/MyApp.woa/Contents/MacOS/MacOSClassPath.txt
contains only the default stuff i.e i mean that it is supposed to contain
the classpath of the app.

I guess it should also contain the classpath of the application. So, the
problem can be narrowed to the classpath is not being read while the
application is installed.

ideas????

thrinath.j

Sacha Michel Mallais wrote:

On Nov 14, 2006, at 10:34 PM, ThrinathJ wrote:

I am trying to run a simple WOApplication. The exception at the
console level is

"Exception in thread "main"
java.lang.NoClassDefFoundError:
Application".

I am running this app on MacOSX, WO 5.3.2, eclipse 3.2, java1.4.

The build path is configured to /Library/WebObjects/Applications/.

What does the Principal Class setting in the Build Properties ->
WOLips build panel say?

sacha

_______________________________________________
WebObjects-dev mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-dev

--
\o/ Georg von Bülow, Moleque de Idéias Educação e Tecnologia Ltda
| Phone: 55-21-2710-0178 E-mail: [email protected]
/ \ http://www.moleque.com.br Niterói - Rio de Janeiro - Brasil

_______________________________________________
WebObjects-dev mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.