سؤال

I am trying to install openfire in windows8 and its showing the following error.Can Any body please tell me how to solve this issue?

java.io.FileNotFoundException: ..\lib\commons-el.jar (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 org.jivesoftware.openfire.starter.ServerStarter.unpackArchives(ServerStarter.java:171)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:90)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
    at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)
java.io.FileNotFoundException: ..\lib\hsqldb.jar (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 org.jivesoftware.openfire.starter.ServerStarter.unpackArchives(ServerStarter.java:171)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:90)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
    at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)
java.io.FileNotFoundException: ..\lib\jasper-compiler.jar (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 org.jivesoftware.openfire.starter.ServerStarter.unpackArchives(ServerStarter.java:171)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:90)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
    at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)
java.io.FileNotFoundException: ..\lib\jasper-runtime.jar (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 org.jivesoftware.openfire.starter.ServerStarter.unpackArchives(ServerStarter.java:171)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:90)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
    at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)
java.io.FileNotFoundException: ..\lib\jtds.jar (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 org.jivesoftware.openfire.starter.ServerStarter.unpackArchives(ServerStarter.java:171)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:90)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
    at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)
java.io.FileNotFoundException: ..\lib\mysql.jar (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 org.jivesoftware.openfire.starter.ServerStarter.unpackArchives(ServerStarter.java:171)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:90)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
    at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)
java.io.FileNotFoundException: ..\lib\openfire.jar (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 org.jivesoftware.openfire.starter.ServerStarter.unpackArchives(ServerStarter.java:171)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:90)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
    at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)
java.io.FileNotFoundException: ..\lib\postgres.jar (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 org.jivesoftware.openfire.starter.ServerStarter.unpackArchives(ServerStarter.java:171)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:90)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
    at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)
java.io.FileNotFoundException: ..\lib\servlet.jar (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 org.jivesoftware.openfire.starter.ServerStarter.unpackArchives(ServerStarter.java:171)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:90)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
    at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)
java.io.FileNotFoundException: ..\lib\slf4j-log4j12.jar (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 org.jivesoftware.openfire.starter.ServerStarter.unpackArchives(ServerStarter.java:171)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:90)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
    at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)
java.io.FileNotFoundException: C:\Program Files (x86)\Openfire\bin\..\plugins\admin\webapp\WEB-INF\lib\admin-jsp.jar (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 org.jivesoftware.openfire.starter.ServerStarter.unpackArchives(ServerStarter.java:171)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:101)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
    at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)
java.io.FileNotFoundException: C:\Program Files (x86)\Openfire\bin\..\plugins\admin\webapp\WEB-INF\lib\commons-fileupload.jar (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 org.jivesoftware.openfire.starter.ServerStarter.unpackArchives(ServerStarter.java:171)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:101)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
    at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)
java.io.FileNotFoundException: C:\Program Files (x86)\Openfire\bin\..\plugins\admin\webapp\WEB-INF\lib\commons-io.jar (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 org.jivesoftware.openfire.starter.ServerStarter.unpackArchives(ServerStarter.java:171)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:101)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
    at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)
java.io.FileNotFoundException: C:\Program Files (x86)\Openfire\bin\..\plugins\admin\webapp\WEB-INF\lib\dwr.jar (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 org.jivesoftware.openfire.starter.ServerStarter.unpackArchives(ServerStarter.java:171)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:101)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
    at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)
java.lang.ClassNotFoundException: org.jivesoftware.openfire.XMPPServer
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:111)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
    at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)

Note: I am downloading from this site and choosed windows platfporm and after that I downloaded openfire_3_9_1.exe Includes Java JRE (recommended)

هل كانت مفيدة؟

المحلول

According to the Openfire forums, the accepted answer is:

close it all down, then right-click --> run as administrator

Additionally, it is best practice to not use the exe but instead install it as a service as SnakeDoc recommended. You can do that by running openfire-service /install from the commandline in Openfire's bin directory. You can also view Openfire's documentation on how to install the service

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top