History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-1428
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: -- --
Assignee: Frisco Del Rosario
Reporter: Oliver Steele
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

lzc.bat is busted in binary windows distro

Created: 25/Jan/06 06:31 AM   Updated: 09/Dec/06 10:04 AM
Component/s: Compiler
Affects Version/s: 3.1 (aka Denver), 3.1cr1, 3.1cr2
Fix Version/s: 3.3

Time Tracking:
Not Specified

Severity: Critical
Fixed in Change#: 42,298
Runtime: N/A


 Description  « Hide
lzc.bat fails under Windows:
> "$LPS_HOME/bin/lzc.bat"
The system cannot find the path specified.
Exception in thread "main" java.lang.NoClassDefFoundError: org/openlaszlo/compiler/Main

The problem seems to be that lzc.bat looks for lzenv.bat in LPS_HOME/WEB-INF/lps/server/bin/. This directory doesn't exist in the binary distribution.

lzc.bat also contains code that defaults LPS_HOME to lps-3.0b2, and lzenv.bat flat out sets LPS_HOME to c:\Program Files\Laszlo Presentation Server 3.0b2\Server\lps-3.0b2, so there's other problems too.

There's a separate JIRA request to move the bin directory in the depot and source distro to the same location it has in the binary distro, which would fix some of this.

Critical because this breaks http://ropenlaszlo.rubyforge.org/ and http://laszlo-plugin.rubyforge.org/ on Windows.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Oliver Steele - 25/Jan/06 08:53 AM
This is a duplicate of LPP-1378. (Not sure how to tell JIRA that.)

Jim Grandy - 28/Jan/06 09:26 PM
Duplicate of LPP-1378.

Cortlandt Winters - 12/Feb/06 12:07 PM
Hi All,

I'm afraid it's still broken. as of lps-3.2cr1

I was able to use lzc from within cygwin but not from the c: prompt.

I still got the above error
The system cannot find the path specified.
Exception in thread "main" java.lang.NoClassDefFoundError: org/openlaszlo/compiler/Main

I changed the LPS_HOME line in lzenv.bat to
set LPS_HOME=C:\lzCrSrc\lps-3.2cr1-src\lps-3.2cr1

And that solved the NoClassDefFoundError, but it just replaced it with

"The input line is too long.
:add
was unexpected at this time."

I'm not sure what the :add part of the message is for but apparently there is a 127 byte limit for each individual line of a batch file.

I think that in order to get ropenlaszlo and the laszlo-plugin to work the proper thing to do is to download ruby from cygwin and use it.

This link that I found explains it pretty well
http://www.codecomments.com/archive327-2005-11-704209.html

Having said that, if it's intended to be able to use lzc without downloading cygwin, then it's still a problem.

I'm thinking that it might be worth thinking about creating a simple self running executable exe that gives windows users a simpler way to configure and run the laszlo compiler, to set environment variables and run scripts. I am willing to do this, but would need better information on how lzc is called and what these various batch files are doing so that I know what the interface should look like. I will post a message to laszlo-dev about this.

Cortlandt Winters - 12/Feb/06 12:41 PM
on second thought, that's kind of what cygwin does doesn't it. nevermind that last thing.

Oliver Steele - 15/Feb/06 01:06 PM
Contrary, to LPP-501, this is not fixed. Visual inspection of the source files named in the description and user reports confirm this.

Jeff Schiller - 31/Mar/06 02:50 PM
My duplicate bug LPP-1912 has enumerated some issues and resolutions.

Jim Grandy - 13/Apr/06 02:24 PM
Frisco, can you look into whether this is in fact fixed in 3.2?

Jim Grandy - 13/May/06 12:45 AM
Reopening pending investigation. Also see LPP-2050 for a new report of breakage.

Frisco Del Rosario - 15/May/06 02:41 PM
I'm sorry -- I've been running it in cygwin, where it's working. It's still broken in Windows shells.

Amy Muntz - 16/May/06 10:44 AM
Yossie - please look at this today. Let me know if you can't. Code freeze is eod Tuesday. Thanks!

Yossie Silverman - 16/May/06 03:04 PM
remove a line from lzenv.bat which was the reason for this problem..