[Solved] 3rd party Jars with latest WO?

Will Scheidegger <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Hm... it _was_ me!

The Java class I introduced which used the new 3rd party jar was  
added to the wrong target! Stupid!... o.k. it was late last night,  
but that's a lousy excuse.
Sorry for the wast of bandwidth.

-Will

On 11.09.2007, at 09:08, Will Scheidegger wrote:

> I compared two jar-frameworks I'm using in this project (one  
> working and the new one not). They were identical. Then I had a  
> close look at the output of the  build process. First things look ok:
>
> JAVA_FRAMEWORK_JARS='/System/Library/Frameworks/ 
> JavaFoundation.framework/Resources/Java /System/Library/Frameworks/ 
> JavaEOControl.framework/Resources/Java /System/Library/Frameworks/ 
> JavaEOAccess.framework/Resources/Java /System/Library/Frameworks/ 
> JavaWebObjects.framework/Resources/Java /System/Library/Frameworks/ 
> JavaWOExtensions.framework/Resources/Java /System/Library/ 
> Frameworks/JavaXML.framework/Resources/Java /System/Library/ 
> Frameworks/JavaJDBCAdaptor.framework/Resources/Java /Library/ 
> Frameworks/FFWOUtilities.framework/Resources/Java /Library/ 
> Frameworks/WOOgnl.framework/Resources/Java /Library/Frameworks/ 
> FFStatelessListDetail.framework/Resources/Java /Library/Frameworks/ 
> POIJars.framework/Resources/Java /Library/Frameworks/ 
> FrontBasePlugIn.framework/Resources/Java /Library/Frameworks/ 
> XStreamJars.framework/Resources/Java /Library/Frameworks/ 
> QuartzJars.framework/Resources/Java'
>
> and
>
> LINKED_CLASS_ARCHIVES=:/System/Library/Frameworks/ 
> JavaFoundation.framework/Resources/Java:/System/Library/Frameworks/ 
> JavaEOControl.framework/Resources/Java:/System/Library/Frameworks/ 
> JavaEOAccess.framework/Resources/Java:/System/Library/Frameworks/ 
> JavaWebObjects.framework/Resources/Java:/System/Library/Frameworks/ 
> JavaWOExtensions.framework/Resources/Java:/System/Library/ 
> Frameworks/JavaXML.framework/Resources/Java:/System/Library/ 
> Frameworks/JavaJDBCAdaptor.framework/Resources/Java:/Library/ 
> Frameworks/FFWOUtilities.framework/Resources/Java:/Library/ 
> Frameworks/WOOgnl.framework/Resources/Java:/Library/Frameworks/ 
> FFStatelessListDetail.framework/Resources/Java:/Library/Frameworks/ 
> POIJars.framework/Resources/Java:/Library/Frameworks/ 
> FrontBasePlugIn.framework/Resources/Java:/Library/Frameworks/ 
> XStreamJars.framework/Resources/Java:/Library/Frameworks/ 
> QuartzJars.framework/Resources/Java
>
> But when Xcode wants to compile the java files, it starts looking  
> in "WebServerResources/Java" for jars!?
>
> classpath="/Users/will/Documents/CVSProjects/coachrentWOFB/build/ 
> coachrent.build/Development/Web Server.build/JavaClasses:/System/ 
> Library/Frameworks/JavaFoundation.framework/WebServerResources/ 
> Java:/System/Library/Frameworks/JavaEOControl.framework/ 
> WebServerResources/Java:/System/Library/Frameworks/ 
> JavaEOAccess.framework/WebServerResources/Java:/System/Library/ 
> Frameworks/JavaWebObjects.framework/WebServerResources/Java:/System/ 
> Library/Frameworks/JavaWOExtensions.framework/WebServerResources/ 
> Java:/System/Library/Frameworks/JavaXML.framework/ 
> WebServerResources/Java:/Library/Frameworks/FFWOUtilities.framework/ 
> WebServerResources/Java:/Library/Frameworks/WOOgnl.framework/ 
> WebServerResources/Java:/Library/Frameworks/ 
> FFStatelessListDetail.framework/WebServerResources/Java:/Library/ 
> Frameworks/POIJars.framework/WebServerResources/Java:/Library/ 
> Frameworks/FrontBasePlugIn.framework/WebServerResources/Java:/ 
> Library/Frameworks/XStreamJars.framework/WebServerResources/Java:/ 
> Library/Frameworks/QuartzJars.framework/WebServerResources/Java 
> $frameworkjars:"`/usr/bin/javaconfig  DefaultClasspath`
>
> I copied the jar in my jar framework from Resources/Java to  
> WebServerResources/Java... and my project compiled fine! Well, this  
> explains why the project would not build so far... but it does not  
> explain
>
> a) why it worked with the first (old) jar framework since this  
> framework does not have it's jar in WebServerResources/Java
> b) why Xcode is looking in WebServerResources/Java in the first place
>
> Any ideas anyone?
>
> Regards,
> Will
>
> On 11.09.2007, at 08:23, Cornelius Jaeger wrote:
>
>> hi will
>>
>> i had to add an empty text file so that Xcode picked up the  
>> framework, i don't know why but that made it work.
>> actually, i think i added an KeyValueCodingProtectedAccessor.java  
>> but i think an empty text file will do the trick
>>
>> regards
>>
>> Cornelius
>>
>>
>> On 10.09.2007, at 20:33, Will Scheidegger wrote:
>>
>>> I've used the Framework solution before to use 3rd party jars  
>>> with my wo apps. But now that I want to do the same thing with a  
>>> new Jar, I fail no matter what approach I'm taking. I've tried  
>>> both these solutions:
>>>
>>> http://en.wikibooks.org/wiki/Programming:WebObjects/ 
>>> Web_Applications/Development/Third_Party_Jars
>>>
>>> Can anyone tell me if it's just me or if this really does not  
>>> work anymore? Thanks!
>>>
>>> -Will
>>> _______________________________________________
>>> WebObjects-dev mailing list
>>> [email protected]
>>> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
>>
>
> _______________________________________________
> 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.