A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Engineering
»
General Computing
Author
Need Help With Batch File Scripting Language to Straighten Out PATH Problem in Windows Environment
Natalie Kopple
Ranch Hand
Joined: May 06, 2003
Posts: 320
posted
May 24, 2011 13:41:15
0
I have a batch file called the luntbuild.bat and it looks like:
@echo off cd /D "%INSTALL_PATH%" if "%1" == "" ( set host=localhost ) else ( set host="%1" ) if "%2" == "" ( set port=8888 ) else ( set port="%2" ) set APP=java -jar luntbuild-standalone.jar %host% %port% %3 echo %APP% %APP%
And I ran the luntbuild.bat in the command prompt:
C:\Program Files
\luntbuild\bin
>luntbuild<ENTER>
I got:
Unable to access jarfile luntbuild-standalone.jar
Note that the luntbuild-standalone.jar is in the C:\Program Files
\luntbuild
directory. It is not in the "bin' sub-directory.
I think the problem has something to do with the %INSTALL_PATH%. How should I modify the scripting language to straighten it out?
Thanks for your help.
Natalie Kopple
Ranch Hand
Joined: May 06, 2003
Posts: 320
posted
May 24, 2011 14:15:06
0
I have figured it out. My batch file is working now:
@echo off cd /D.. "%INSTALL_PATH%" if "%1" == "" ( set host=localhost ) else ( set host="%1" ) if "%2" == "" ( set port=8888 ) else ( set port="%2" ) set APP=java -jar luntbuild-standalone.jar %host% %port% %3 echo %APP% %APP%
Peter Johnson
author
Bartender
Joined: May 14, 2008
Posts: 5533
I like...
posted
May 25, 2011 20:39:00
0
Please don't double-post!
http://www.coderanch.com/t/538304/tools/Installation-Luntbuild
JBoss In Action
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Need Help With Batch File Scripting Language to Straighten Out PATH Problem in Windows Environment
Similar Threads
JBOSS AS5 fails to start with jdk6
Setting the classpath
Problem with Installation of Luntbuild
maven java:compile
Running JBoss-5.1.0.GA as a service on Red Hat?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter