This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Problem with Installation of Luntbuild Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Problem with Installation of Luntbuild" Watch "Problem with Installation of Luntbuild" New topic
Author

Problem with Installation of Luntbuild

Natalie Kopple
Ranch Hand

Joined: May 06, 2003
Posts: 325
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

Joined: May 06, 2003
Posts: 325
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

Joined: May 06, 2003
Posts: 325
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:
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

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?


JBoss In Action
Natalie Kopple
Ranch Hand

Joined: May 06, 2003
Posts: 325
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
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

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

Joined: May 06, 2003
Posts: 325
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

Joined: May 06, 2003
Posts: 325
I have figured it out. My batch file is working now:
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with Installation of Luntbuild
 
Similar Threads
Javac: File Not Found
Setting the classpath
Jar files
Error while trying to run Tomcat for servlets
Need Help With Batch File Scripting Language to Straighten Out PATH Problem in Windows Environment