Recommended Posts

when I install Java packages what is there location as I am trying to install BubbleUPnP Server and I need to edit the launch.sh file to point to the java location.

 

I have done this so far

BubbleUPnP Server files on root of flash drive installed Java packages edited launch.sh file

#!/bin/sh

 

HOMEDIR="$(dirname ${0})"

cd ${HOMEDIR}

 

if [ "x$JAVA_HOME" != "x" ]; then

    JAVA="$JAVA_HOME/bin/java"

else

    JAVA="java"

fi

 

 

# to make sure ffmpeg is found and used if present in start directory

export PATH=.:${PATH}

 

# -Xss256k: thread stack size. 256K reduces per-thread memory usage and may prevent "java.lang.OutOfMemoryError: unable to create new native thread" on some systems

# -Djava.awt.headless=true: required for image transcoding to work on headless systems (eg no X-Window libraries)

 

exec "${JAVA}" -Xss256k -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Dfile.encoding="UTF-8" -jar BubbleUPnPServerLauncher.jar $* /usr/lib/java/jre/lib/i386/java -jar BubbleUPnPServer.jar

 

but when I run launch.sh I get this error in unraid

root@Tower:/boot# ./launch.sh

Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/java/jre/lib/i386/libnio.so: libgio-2.0.so.0: cannot open shared object file: No such file or directory

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)

at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1872)

at java.lang.Runtime.loadLibrary0(Runtime.java:849)

at java.lang.System.loadLibrary(System.java:1088)

at sun.nio.fs.UnixNativeDispatcher$1.run(UnixNativeDispatcher.java:561)

at sun.nio.fs.UnixNativeDispatcher$1.run(UnixNativeDispatcher.java:559)

at java.security.AccessController.doPrivileged(Native Method)

at sun.nio.fs.UnixNativeDispatcher.<clinit>(UnixNativeDispatcher.java:559)

at sun.nio.fs.UnixFileSystem.<init>(UnixFileSystem.java:67)

at sun.nio.fs.LinuxFileSystem.<init>(LinuxFileSystem.java:39)

at sun.nio.fs.LinuxFileSystemProvider.newFileSystem(LinuxFileSystemProvider.java:44)

at sun.nio.fs.LinuxFileSystemProvider.newFileSystem(LinuxFileSystemProvider.java:37)

at sun.nio.fs.UnixFileSystemProvider.<init>(UnixFileSystemProvider.java:56)

at sun.nio.fs.LinuxFileSystemProvider.<init>(LinuxFileSystemProvider.java:39)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

at java.lang.Class.newInstance(Class.java:379)

at sun.nio.fs.DefaultFileSystemProvider$1.run(DefaultFileSystemProvider.java:52)

at sun.nio.fs.DefaultFileSystemProvider$1.run(DefaultFileSystemProvider.java:43)

at java.security.AccessController.doPrivileged(Native Method)

at sun.nio.fs.DefaultFileSystemProvider.createProvider(DefaultFileSystemProvider.java:42)

at sun.nio.fs.DefaultFileSystemProvider.create(DefaultFileSystemProvider.java:70)

at java.nio.file.FileSystems$DefaultFileSystemHolder.getDefaultProvider(FileSystems.java:108)

at java.nio.file.FileSystems$DefaultFileSystemHolder.access$000(FileSystems.java:89)

at java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:98)

at java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:96)

at java.security.AccessController.doPrivileged(Native Method)

at java.nio.file.FileSystems$DefaultFileSystemHolder.defaultFileSystem(FileSystems.java:95)

at java.nio.file.FileSystems$DefaultFileSystemHolder.<clinit>(FileSystems.java:90)

at java.nio.file.FileSystems.getDefault(FileSystems.java:176)

at sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:490)

at sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:481)

at java.security.AccessController.doPrivileged(Native Method)

at sun.util.calendar.ZoneInfoFile.<clinit>(ZoneInfoFile.java:480)

at sun.util.calendar.ZoneInfo.getTimeZone(ZoneInfo.java:663)

at java.util.TimeZone.getTimeZone(TimeZone.java:566)

at java.util.TimeZone.setDefaultZone(TimeZone.java:663)

at java.util.TimeZone.getDefaultRef(TimeZone.java:630)

at java.util.Calendar.getInstance(Calendar.java:996)

at java.util.Formatter$FormatSpecifier.printDateTime(Formatter.java:2781)

at java.util.Formatter$FormatSpecifier.print(Formatter.java:2695)

at java.util.Formatter.format(Formatter.java:2494)

at java.util.Formatter.format(Formatter.java:2423)

at java.lang.String.format(String.java:2790)

at java.util.logging.SimpleFormatter.format(SimpleFormatter.java:161)

at java.util.logging.StreamHandler.publish(StreamHandler.java:196)

at java.util.logging.ConsoleHandler.publish(ConsoleHandler.java:105)

at java.util.logging.Logger.log(Logger.java:616)

at java.util.logging.Logger.doLog(Logger.java:641)

at java.util.logging.Logger.log(Logger.java:664)

at java.util.logging.Logger.info(Logger.java:1182)

at com.bubblesoft.bubbleupnpserver.launcher.Main.main(Main.java:103)

running shutdown hook...

root@Tower:/boot#

 

Link to comment

Thank you installed as you suggested now have this seems to have gone a step further

 

root@Tower:~# cd /boot

root@Tower:/boot# ./launch.sh

Jan 07, 2015 8:15:54 PM com.bubblesoft.bubbleupnpserver.launcher.Main main

INFO: data dir: /boot

Jan 07, 2015 8:15:55 PM com.bubblesoft.bubbleupnpserver.launcher.Main main

INFO: first time setup: downloading BubbleUPnPServer.jar, please wait...

Jan 07, 2015 8:16:05 PM com.bubblesoft.bubbleupnpserver.launcher.Main main

INFO: downloaded BubbleUPnPServer.jar successfully

Exception in thread "main" java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at com.bubblesoft.bubbleupnpserver.launcher.Main.main(Main.java:126)

Caused by: java.security.ProviderException: Could not initialize NSS

at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:223)

at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:103)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:224)

at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:206)

at java.security.AccessController.doPrivileged(Native Method)

at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:206)

at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:187)

at sun.security.jca.ProviderList.loadAll(ProviderList.java:281)

at sun.security.jca.ProviderList.removeInvalid(ProviderList.java:298)

at sun.security.jca.Providers.getFullProviderList(Providers.java:176)

at java.security.Security.insertProviderAt(Security.java:362)

at java.security.Security.addProvider(Security.java:409)

at com.bubblesoft.bubbleupnpserver.server.Main.<init>(SourceFile:140)

at com.bubblesoft.bubbleupnpserver.server.Main.main(SourceFile:164)

at com.bubblesoft.bubbleupnpserver.server.Main.mainLauncher(SourceFile:170)

... 5 more

Caused by: java.io.IOException: nssLibDir must be a directory:/usr/lib/seamonkey

at sun.security.pkcs11.Secmod.initialize(Secmod.java:188)

at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:218)

... 23 more

running shutdown hook...

 

Link to comment

Thanks gfjardim have installed link now get this can you help

 

Tower login: root

Linux 3.9.11p-unRAID.

root@Tower:~# cd /boot

root@Tower:/boot# ./launch.sh

Jan 08, 2015 9:05:02 AM com.bubblesoft.bubbleupnpserver.launcher.Main main

INFO: data dir: /boot

Exception in thread "main" java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at com.bubblesoft.bubbleupnpserver.launcher.Main.main(Main.java:126)

Caused by: java.security.ProviderException: Could not initialize NSS

at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:223)

at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:103)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:224)

at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:206)

at java.security.AccessController.doPrivileged(Native Method)

at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:206)

at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:187)

at sun.security.jca.ProviderList.loadAll(ProviderList.java:281)

at sun.security.jca.ProviderList.removeInvalid(ProviderList.java:298)

at sun.security.jca.Providers.getFullProviderList(Providers.java:176)

at java.security.Security.insertProviderAt(Security.java:362)

at java.security.Security.addProvider(Security.java:409)

at com.bubblesoft.bubbleupnpserver.server.Main.<init>(SourceFile:140)

at com.bubblesoft.bubbleupnpserver.server.Main.main(SourceFile:164)

at com.bubblesoft.bubbleupnpserver.server.Main.mainLauncher(SourceFile:170)

... 5 more

Caused by: java.io.IOException: NSS initialization failed

at sun.security.pkcs11.Secmod.initialize(Secmod.java:223)

at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:218)

... 23 more

running shutdown hook...

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.