Are you saying -cp is not supported on Windows/Cygwin?

Please take great care in this area.  The LFC build mechanism is  
significantly different between trunk and legal's due to the addition  
of multiple runtimes.  I would not expect a blind integration from  
trunk to legals to work.

On 2006-08-30, at 00:20 EDT, Benjamin Shine wrote:

>
> Zeroing in on this, the problem seems to be whether
> org.openlaszlo.sc.Main is in the classpath; this in turn depends on
> how we specify the classpath. As Max says, 1539 and earlier uses -cp,
> 1540 and later uses java.ext.dirs.
>
> Some digging indicates that using java.ext.dirs, as r1540 does, is
> only expected to work on windows. It demonstrably doesn't do what we
> want on the mac with java 1.5, where Max and I are seeing the problem.
>
> On the mac with java 1.5, pre-1540 buildlfc works.
> On the mac with java 1.5, 1540-and-later buildlfc fails.
> The relevant difference between 1539 and 1540, as Max says, is the
> use of java.ext.dirs (in 1540) vs. -cp (in 1539).
>
> "In this release the system-wide repository is supported only by Java
> Plug-in and only on Windows."
> from http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-
> guide/repository.html
>
> Using ant to build the lfc seems to avoid all these problems, because
> we specify the classpath differently in ant. That is, if we made
> "buildlfc" just call "ant build" in WEB-INF/lps/lfc that would
> probably work for all the architectures. Everyone has been using ant
> to build the lfc on all the platforms for a few weeks now, including
> in the nightly build.
>
> A smaller change would be to keep the java.ext.dirs fix for windows/
> cygwin, but to go back to a -cp solution for mac and linux.
>
> I will offer a changeset for review tomorrow.
>
>
> On Aug 29, 2006, at 9:14 AM, Max Carlson wrote:
>
>> Okay, I'll do some diagnostics.  I never tried the old version in
>> Cygwin, but I assume they worked, at least for buildlfc.  Henry,
>> did you
>> use buildlfc in cygwin before I checked in this change?
>>
>> Specifically, when I try to run buildlfc I get the following error:
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>
>> The older versions of the script were based on specifying a  
>> classpath,
>> while the new version uses java.ext.dirs.  I'll poke around a bit and
>> see if I can figure out why the new version is failing...
>>
>> -Max
>>
>> Jim Grandy wrote:
>>> Well, they worked unless you were using the default OpenLaszlo
>>> install
>>> on cygwin. I'm prompting you for enough details about the  
>>> breakage so
>>> that we can make a call whether to include this change in PR3 or  
>>> not.
>>> Saying they are broken doesn't really give enough detail to judge --
>>> more details in the bug report would be useful.
>>>
>>> Thanks,
>>>
>>> jim
>>>
>>> On Aug 28, 2006, at 10:19 PM, Max Carlson wrote:
>>>
>>>> To be clear, lzc and buildlfc used to work before the merge.
>>>>
>>>> -Max
>>>>
>>>> Jim Grandy wrote:
>>>>> I assume then that they are broken worse than before the merge?
>>>>> It's
>>>>> hard to tell from the bug :-)
>>>>> Thanks,
>>>>> jim
>>>>> On Aug 28, 2006, at 9:54 PM, Max Carlson wrote:
>>>>>> http://jira.openlaszlo.org/jira/browse/LPP-2576 is the bug
>>>>>> number -
>>>>>> lzc and buildlfc broken since merge from trunk (r1650)
>>>>>>
>>>>>> Sorry 'bout that.
>>>>>>
>>>>>> -Max
>>>>>>
>>>>>> Jim Grandy wrote:
>>>>>>> Bug number? You should also mention which revision you are
>>>>>>> backing
>>>>>>> out.
>>>>>>> On Aug 28, 2006, at 6:12 PM, Max Carlson wrote:
>>>>>>>> Change change.mpn1DMMUq.txt by
>>>>>>>> [EMAIL PROTECTED]
>>>>>>>> /Users/maxcarlson/openlaszlo/legals/ on 2006-08-28 18:10:21 PDT
>>>>>>>>
>>>>>>>> Summary: Back out changes merged from trunk - buildlfc works
>>>>>>>> again
>>>>>>>>
>>>>>>>> New Features:
>>>>>>>>
>>>>>>>> Bugs Fixed:
>>>>>>>>
>>>>>>>> Technical Reviewer: hminsky
>>>>>>>> QA Reviewer: jgrandy
>>>>>>>> Doc Reviewer: (pending)
>>>>>>>>
>>>>>>>> Documentation:
>>>>>>>>
>>>>>>>> Release Notes:
>>>>>>>>
>>>>>>>> Details:
>>>>>>>>
>>>>>>>>
>>>>>>>> Tests:
>>>>>>>>
>>>>>>>> Files:
>>>>>>>> M      WEB-INF/lps/server/sc/bin/lfcbuilder
>>>>>>>> M      WEB-INF/lps/server/bin/run-unit-tests
>>>>>>>> M      WEB-INF/lps/server/bin/lzc
>>>>>>>> M      WEB-INF/lps/server/bin/lzc.bat
>>>>>>>> M      WEB-INF/lps/server/bin/lzenv
>>>>>>>> M      WEB-INF/lps/server/bin/lzc.bat.proto
>>>>>>>> M      WEB-INF/lps/server/bin/lzdc.bat
>>>>>>>> M      WEB-INF/lps/server/bin/lzenv.bat
>>>>>>>> M      WEB-INF/lps/server/bin/lzdc.bat.proto
>>>>>>>> M      WEB-INF/lps/server/bin/lzo
>>>>>>>>
>>>>>>>> <patch.maxcarlson.ybnc.tgz>
>>>
>> _______________________________________________
>> Laszlo-dev mailing list
>> [email protected]
>> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>
> _______________________________________________
> Laszlo-dev mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to