Allright ptw, thanks I have no idea what is going on backstage, but also in my opinion, setting lps-home path by users seems better. So you will may struggle with the paths of lps. Regards
2010/5/4 P T Withington <[email protected]>: > Filed as LPP-8959 lzc ignores LPS_HOME on Cem's behalf. > > On 2010-05-04, at 08:15, P T Withington wrote: > >> lzc is just a shell script that tries to automatically figure out LPS_HOME. >> Looks like it's logic is a little twisted: >> >>> myhome=`dirname "$0"` >>> if [ -e "$myhome/../Server" ]; then >>> case "$myhome" in >>> /*) ;; >>> *) myhome=`pwd`/"$myhome" ;; >>> esac >>> LPS_HOME=`find "$myhome/../Server" -name lps-'*'|head -1` >>> fi >> >> At the very least, I wonder why it goes through all this effort if LPS_HOME >> is already set? >> >> I think we should just delete all that and require LPS_HOME to be set. >> >> Henry (cc-ed) was the last to touch this in r12136 [make lzenv lzc Solaris >> compatible (gah)] >> >> On 2010-05-04, at 04:03, cem sonmez wrote: >> >>> cc'ing to laszlo-user >>> same issue repeats on my machine. >>> I have been facing this problem for a long time, so I had to use >>> developer console and using it to generate application objects since >>> that time. >>> Regards >>> >>> 2010/5/3 Brian Hartman <[email protected]>: >>>> Hi, Everyone. >>>> >>>> I have 4.7.2 running. I've confirmed that Tomcat is running on my system, >>>> but when I try to compile a project with lzc, I get the following error: >>>> >>>> ./lzc: line 24: >>>> /home/bhartman/lps-4.7.2/bin/./../Server/tomcat-5.0.24/work/LPS/localhost/lps-4.7.2/WEB-INF/lps/server/bin/lzenv: >>>> No such file or directory >>>> Exception in thread "main" java.lang.NoClassDefFoundError: >>>> org/openlaszlo/compiler/Main >>>> Caused by: java.lang.ClassNotFoundException: org.openlaszlo.compiler.Main >>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202) >>>> at java.security.AccessController.doPrivileged(Native Method) >>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:190) >>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:307) >>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) >>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:248) >>>> Could not find the main class: org.openlaszlo.compiler.Main. Program will >>>> exit. >>>> >>>> I've set my variables as follows: >>>> >>>> JAVA_HOME = /usr/lib/jvm/java-6-sun >>>> LPS_HOME = /home/bhartman/lps-4.7.2/ >>>> >>>> Starting up Tomcat works fine, and I can view the example applications >>>> without a problem. I just can't compile an application. >>>> >>>> Any help would be greatly appreciated! >>>> >>>> Thanks >>>> >>>> -- >>>> Brian Hartman >>>> http://brianswebpagehome.com >>>> http://24hourforums.com >>>> http://www.texttospeechnow.com >>>> http://www.doggie-shirts.com >>>> >>>> >>> >>> >>> >>> -- >>> Cem SONMEZ >>> >> > > -- Cem SONMEZ
