• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with Installation of Luntbuild

 
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Installation is normally an easy task. However, I am stuck and do not know what went wrong.

I downloaded the "luntbuild" ZIP file and unzipped it to the "C:\Program Files\luntbuild" directory. So far so good.

I have JDK in my system path; i.e., the value of the environmental PATH variable has .............;C:\Program Files\Java\jdk1.6\bin

I have replaced the $INSTALL_PATH in the web.xml file, which is under the C:\Program Files\luntbuild\web\WEB-INF directory. I have tried the replacement C:\Program Files\luntbuild and I have also tried C:/Program Files/luntbuild

I am opt to use the standalone. However, I am unable to use the "start shell" in the luntbuild\bin directory to launch the luntbuild.

I tried the other way: I went to the luntbuild directory using DOS and issued

java –jar luntbuild-standalone.jar localhost 8080

I got the "main class of the standalone cannot be found".

Can anybody tell me what I did wrong?
 
Natalie Kopple
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, the error that is displayed in DOS window is "Exception in thread main java.lang.NoClassDefFoundError: 0jar" when I use the DOS command.


It does not work either if I try to lauch using the shell script. The luntbuild.bat file looks like:


Can anybody help? Thank you.
 
Natalie Kopple
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have managed to launch the luntbuild by typing in a DOS window.

Now, I wonder why I cannot launch the luntbuild by clicking on the shell script? The shell script looks like:
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sometimes spaces in paths can cause weird problems (though looking at the text of your batch file I don't think this is the case).

You might want to echo out the command you are running. If I would have written this bat file, the last line would be replaced by these three lines:



You said it doesn't work by double-clicking. Does it work if you open a command prompt and then run the bat file form there? Try first from the same directory, and then from another directory.

Oh, and I assume that luntbuild-standalone.jar is at %INSTALL_PATH%. And you mentioned INSTALL_PATH in the context of web.xml, but did you also set it in your Windows properties?
 
Natalie Kopple
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply.

The shell script file (i.e., luntbuild.bat) is in the C:\...\luntbuild\bin directory and the luntbuild-standalone.jar is in the C:\...\luntbuild directory; therefore, there is a problem to run the shell script from the command prompt.

As to set window properties, do you mean to set the $INSTALL_PATH as a value of the CLASSPATH environment variable?

I wonder if the in the shell script causes the problem. How should I modify that line in the shell script?

Thanks.
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

As to set window properties, do you mean to set the $INSTALL_PATH as a value of the CLASSPATH environment variable?


No. I mean did you set it as a system property in Windows. From a command prompt, if you enter "set install", what do you get?

Also, I should have seen this before, the line:



should really be


 
Natalie Kopple
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks again for your reply.

I typed "set install" from a command prompt, I got "Environment variable install not defined". What should I do?
 
Natalie Kopple
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have figured it out. My batch file is working now:
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Natalie Kopple wrote:I typed "set install" from a command prompt, I got "Environment variable install not defined". What should I do?


Right-click on Computer, click Properties and then Advanced system properties, and then click the Environment Variables dialog. Click New under User variables and enter INSTALL_PATH in Variable Name and the path where the luntbuild was installed in Variable Value.

That will make the setting permanent. You can make a temporary setting by entering the following at a command prompt before running the bat file:

set INSTALL_PATH=xxx

where xxx is the path where luntbuild is installed.

It looks like what you did to "fix" the problem is to change the cd command to go to the parent directory, apparently you are running this bat file from a subdirectory of the install path!
reply
    Bookmark Topic Watch Topic
  • New Topic