• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Wonder tutorial, part 1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wonder tutorial, part 1


  • Subject: Re: Wonder tutorial, part 1
  • From: Chuck Hill <email@hidden>
  • Date: Sat, 27 Dec 2008 16:41:14 -0800

Please keep replies on the list.

The code below looks correct. The source of your problems is someplace else.

Chuck

On Dec 27, 2008, at 4:12 PM, Sanford Selznick wrote:

At 4:02 PM -0800 12/27/08, Chuck Hill wrote:
On Dec 27, 2008, at 4:00 PM, Sanford Selznick wrote:
At 3:43 PM -0700 12/26/08, Sanford Selznick wrote:

Half way through the "WebObjects, WOLips and Wonder tutorial, part 1" I'm getting the following error:

Turns out I chose the wrong main class when running the app from Eclipse:


I had: com.mycompany.Application

That is the correct class.
I needed: er.extensions.ERXApplication

That is _not_ the correct class. Application should extend ERXApplication.

My code does extend it, though. I just started learning Java this week.


Do I need to specify that I'm extending ERXApplication someplace other than Application.java?

Per the example:

<P1B2D5CE7.png>

---- Application.java:

// Generated by the WOLips Templateengine Plug-in at Dec 22, 2008 1:28:07 PM
package com.selznick.supersecret.app;


import com.webobjects.foundation.NSLog;

import er.extensions.ERXApplication;

public class Application extends ERXApplication {
   public static void main(String[] argv) {
                ERXApplication.main(argv, Application.class);
   }

       public Application() {
          NSLog.out.appendln("Welcome to " + name() + " !");
              /* ** put your initialization code in here ** */
        }
}
----

Thank you,
  Sanford

-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Wonder tutorial, part 1
      • From: Sanford Selznick <email@hidden>
References: 
 >Wonder tutorial, part 1 (From: Sanford Selznick <email@hidden>)
 >Re: Wonder tutorial, part 1 (From: Sanford Selznick <email@hidden>)
 >Re: Wonder tutorial, part 1 (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Wonder tutorial, part 1
  • Next by Date: Re: WOX status??
  • Previous by thread: Re: Wonder tutorial, part 1
  • Next by thread: Re: Wonder tutorial, part 1
  • Index(es):
    • Date
    • Thread