Re: File Upload: missing symbol errors
Re: File Upload: missing symbol errors
- Subject: Re: File Upload: missing symbol errors
- From: Chuck Hill <email@hidden>
- Date: Mon, 05 Jan 2004 20:24:28 -0800
Doh! I read EOUtilities. Twice! Must drink more coffee...
That functionality has been moved to a new class. Use NSPathUtilities
instead:
theFileName = NSPathUtilities.lastPathComponent(theFileName);
Chuck
At 08:47 PM 05/01/2004 -0700, King Chung Huang wrote:
>The only NSUtilities I know of is in
>com.webobjects.foundation._NSUtilities. Try changing your NSUtilities
>to _NSUtilities.
>
>King Chung Huang
>Learning Commons
>University of Calgary
>On Jan 5, 2004, at 7:11 PM, Randall Perry wrote:
>
>> Thanks.
>>
>> I added import java.io.*, deleted and reimported JavaEOAccess
>> framework, and
>> am left with 1 error:
>>
>> Main.java:26: cannot resolve symbol : variable NSUtilities
>>
>>
>> Here's the line of code using it:
>> theFileName = NSUtilities.lastPathComponent(theFileName);
>>
>>
>> on 1/5/04 8:42 PM, Chuck Hill at email@hidden wrote:
>>
>>> NSUtilities is in com.webobjects.eoaccess. Is that framework part of
>>> your project?
>>>
>>> The others are in java.io which are you not importing.
>>> import java.io.*;
>>>
>>> Chuck
>>>
>>> Randall Perry wrote:
>>>
>>>> Am trying to build the FileUpload project from Chapter 12 of the
>>>> WebObjects
>>>> Visual Quickpro Guide. Am using latest Xcode 1.1, WO 5.2, Java 1.4.1.
>>>>
>>>> These are the imported classes in main.java:
>>>> import com.webobjects.foundation.*;
>>>> import com.webobjects.appserver.*;
>>>> import com.webobjects.eocontrol.*;
>>>> import com.webobjects.eoaccess.*;
>>>>
>>>>
>>>> Get the following errors on build. Anyone succesfully built this?
>>>>
>>>> Main.java:24: cannot resolve symbol : variable NSUtilities
>>>> Main.java:27: cannot resolve symbol : class File
>>>> Main.java:27: cannot resolve symbol : class File
>>>> Main.java:28: cannot resolve symbol : class File
>>>> Main.java:28: cannot resolve symbol : variable File
>>>> Main.java:28: cannot resolve symbol : class File
>>>> Main.java:32: cannot resolve symbol : class FileOutputStream
>>>> Main.java:32: cannot resolve symbol : class FileOutputStream
>>>> Main.java:35: cannot resolve symbol : class IOException
>>>>
>>>>
>>>> Notice Apple's FileUpload example builds and runs ok, but they have
>>>> an
>>>> included package:
>>>> package webobjectsexamples.fileupload;
>>>>
>>>>
>>
>> --
>> Randall Perry
>> sysTame
>>
>> Xserve Web Hosting/Co-location
>> Website Development/Promotion
>> Mac Consulting/Sales
>>
>> http://www.systame.com/
>> _______________________________________________
>> webobjects-dev mailing list | email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>> Do not post admin requests to the list. They will be ignored.
>_______________________________________________
>webobjects-dev mailing list | email@hidden
>Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>Do not post admin requests to the list. They will be ignored.
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.