• 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
java.lang.NoClassDefFoundError: com.webobjects.foundation.NSTimeZone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

java.lang.NoClassDefFoundError: com.webobjects.foundation.NSTimeZone


  • Subject: java.lang.NoClassDefFoundError: com.webobjects.foundation.NSTimeZone
  • From: "Ren, Kevin" <email@hidden>
  • Date: Thu, 20 Mar 2008 16:52:29 +1300
  • Thread-topic: java.lang.NoClassDefFoundError: com.webobjects.foundation.NSTimeZone

Title: java.lang.NoClassDefFoundError: com.webobjects.foundation.NSTimeZone

Hi,

I want to test my new installed WO541/WOLips, so following the tutorial created project and component with NSTimestamp.

In HTML
<webobject name = "ApplicationName"></webobject>
        <webobject name = "Now"></webobject>
        <webobject name = "Greeting"></webobject>

In WOD
ApplicationName : WOString {
        value = application.name;
}

Now : WOString {
        value = now;
        dateformat = "%m/%d/%y";
}

Greeting : MyComponent {
       
}

In Java
public NSTimestamp now(){
                return new NSTimestamp(2008,1,1,1,0,0,NSTimeZone.getDefault());
        }
OR
public NSTimestamp now(){
                return new NSTimestamp();
        }

When I run app, got error
Exception in thread "main" java.lang.NoClassDefFoundError: com.webobjects.foundation.NSTimeZone
   at java.lang.Class.initializeClass(libgcj.so.81)
   at com.webobjects.foundation.NSTimestamp.<clinit>(NSTimestamp.java:1481)
   at java.lang.Class.initializeClass(libgcj.so.81)
   at com.webobjects.foundation.NSLog$PrintStreamLogger.<init>(NSLog.java:1917)
   at com.webobjects.foundation.NSLog.<clinit>(NSLog.java:670)
   at java.lang.Class.initializeClass(libgcj.so.81)
   at com.webobjects.foundation._NSUtilities.<clinit>(_NSUtilities.java:196)
   at java.lang.Class.initializeClass(libgcj.so.81)
   at com.webobjects.appserver.WOApplication.<clinit>(WOApplication.java:322)
   at java.lang.Class.initializeClass(libgcj.so.81)
   at java.lang.Class.initializeClass(libgcj.so.81)


Anyone know what's problem?

Thanks

kevin

 

"This communication is confidential and may contain privileged and/or copyright material. If you are not the intended recipient you must not use, disclose, copy or retain it. If you have received it in error please immediately notify me by return email, delete the emails and destroy any hard copies. ANZ National Bank Limited does not guarantee the integrity of this communication, or that it is free from errors, viruses or interference."

 _______________________________________________
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: java.lang.NoClassDefFoundError: com.webobjects.foundation.NSTimeZone
      • From: Andrew Lindesay <email@hidden>
  • Prev by Date: RE: Questions after new install WO541
  • Next by Date: RE: Questions after new install WO541{SOLVED?}
  • Previous by thread: RE: Questions after new install WO541
  • Next by thread: Re: java.lang.NoClassDefFoundError: com.webobjects.foundation.NSTimeZone
  • Index(es):
    • Date
    • Thread