Opnefire not installing in windows 8

Hi All

This is my 1st question in this site.Actually I am trying to install openfire in my windows8,it got installed but open fire is not starting.I am getting the following error

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)


1 Like

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

1 Like

Thank you very much.I have also posted this question in stackoverflow.So if you account there also then please there too.I will accept http://stackoverflow.com/questions/22927726/error-in-installing-openfire-in-wind ows8

Do you really want to run a server component as adminstrator?

I really don’t recommend doint so. Instead, fix the file permissions.

Hi,

Can you please tell me how to fix the file permissions?

Also please tell me why you do not recommend this

The problem is not really about permissions, but about the way you are running Openfire. Using it via launcher is ok for initial setup and testing. But you should really install it as a service and use it this way. http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/install- guide.html

Windows Service part

Fixing permissions in the Program files folder on Windows is not the way either. Service usage is the correct way. But Openfire is using a flawed design by still saving config and database in the Program files folder (Win 95 style…). That is causing this problem for those who don’t know how UAC works.

I tried that way too but getting errors

Please see the screenshotUntitled.jpg

There were no errors when installing the service? What if you start it in the Services window (Computer > Manage > Services and Applications)? Maybe event viewer has more information on this error.

no there were no errors when installing openfire.I was getting errors only when I run it

I do not have openfire in windows services

Please see my services screenshotUntitled.jpg

UAC in windows 8 isn’t the same as with windows 7. Even if you turn it off, you’re not really turning it off. try installing openfire to c:\openfire instead of the program files folder.

1 Like

maybe a ticket should be filed for openfire to move those components to %APPDATA% or something? Or install like Speedy suggested under the root of the drive?

Thanks Speedy, this was the best solution for me. (installing to c:\Openfire and not into program files)

I was installing it on a managed PC in a corporate environment and also I only wanted to run Openfire now and again so a service was no good and also my users didn’t have admin rights.

No wonder you get 1060 error when you are trying to run a service which you haven’t installed yet I gave you a link and it is as straightforward as it can be…

  • openfire-service /install – installs the service.
  • openfire-service /start – starts the service.

Of course these commands should be run in C:\Programs files\Openfire\bin folder.

Jason wrote:

maybe a ticket should be filed for openfire to move those components to %APPDATA% or something? Or install like Speedy suggested under the root of the drive?

I thought about it, but i’m not sure how hard it is and what exactly should be changed. Also i’m not sure where it should store settings when running as a service by SYSTEM user. Installing into C or any other folder is a workaround, but not a solution. It is just not right installing apps into root on Windows (on Linux too i think ) and apps should store their settings in the %APPDATA% anyway.

it should probably be confirmed this is a problem on Server 2012 (most similar to windows 8), since that’s a more reasonable target for openfire than a locked-down windows 8 workstation is likely to be.

it may need to be tested, but another option may be to remove the system attrib from c:\program files\openfire