Topic
  • 1 reply
  • Latest Post - ‏2012-03-17T06:06:57Z by IdanAdar
SystemAdmin
SystemAdmin
106 Posts

Pinned topic Getting Exception when running setenv.bat file

‏2012-03-16T10:15:32Z |
Hi,
Getting following exception when i ran setenv.bat file.

C:\\Program Files\\Worklight\\server\\bin>setenv.bat

C:\\Program Files\\Worklight\\server\\bin>set HOSTNAME=A5MD14075

C:\\Program Files\\Worklight\\server\\bin>set WORKLIGHT_HOME=C:\\Program Files\\Workli
ght\\server\\bin\\..

C:\\Program Files\\Worklight\\server\\bin>set CATALINA_HOME=C:\\Program Files\\Worklig
ht\\server\\bin\\..\\..\\tomcat

C:\\Program Files\\Worklight\\server\\bin>set BUNDLED_JRE=C:\\Program Files\\Worklight
\\server\\bin\\..\\..\\jre

C:\\Program Files\\Worklight\\server\\bin>set JAVA=C:\\Program Files\\Java\\jdk1.6.0_26
\\bin\\bin\\java

C:\\Program Files\\Worklight\\server\\bin>IF NOT EXIST "C:\\Program Files\\Worklight\\s
erver\\bin\\..\\..\\jre" GOTO JRE_HOME_OK

C:\\Program Files\\Worklight\\server\\bin>set JRE_HOME=C:\\Program Files\\Worklight\\se
rver\\bin\\..\\..\\jre

C:\\Program Files\\Worklight\\server\\bin>set JAVA_HOME=

C:\\Program Files\\Worklight\\server\\bin>set JAVA=C:\\Program Files\\Worklight\\server
\\bin\\..\\..\\jre\\bin\\java

C:\\Program Files\\Worklight\\server\\bin>"C:\\Program Files\\Worklight\\server\\bin\\..\\
..\\jre\\bin\\java" -cp ..\\lib;..\\lib\\rssb-core.jar;..\\lib\\spring.jar;..\\lib\\common
s-logging.jar -Dworklight.home="C:\\Program Files\\Worklight\\server\\bin\\.." -Dloca
l.hostname=A5MD14075 -Dworklight.runtime.customization= com.worklight.util.Workl
ightJavaOptions options.bat
INFO: Default configuration loaded.
INFO: Project customization loaded from file 'C:\\Program Files\\Worklight\\server\\
bin\\..\\conf\\worklight.properties'
INFO: Runtime customization file not defined, using project level customization.

Exception in thread "main" java.io.FileNotFoundException: options.bat (Access is
denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at com.worklight.util.WorklightJavaOptions.main(WorklightJavaOptions.jav
a:122)

C:\\Program Files\\Worklight\\server\\bin>IF 1 NEQ 0 GOTO:EOF

Any help will be helpul.Thanks in advance

Regards
Sasil
  • IdanAdar
    IdanAdar
    40 Posts

    Re: Getting Exception when running setenv.bat file

    ‏2012-03-17T06:06:57Z  
    It would seem you do not have administrative permissions in Program Files.
    Try fixing that, or install for example in C:\\ instead.