This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 256593 - netbeans startup script emits errors under Solaris11.2
Summary: netbeans startup script emits errors under Solaris11.2
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 8.0.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-14 00:03 UTC by ivan
Modified: 2016-02-25 16:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ivan 2015-11-14 00:03:10 UTC

    
Comment 1 ivan 2015-11-14 00:10:49 UTC
When I run netbeans 8.0.1 on Solaris 11.2 I get the following errors:

/usr/ucb/arch: Command not found
/usr/ucb/mach: Command not found
Usage: dirname [ path ]

/usr/ucb/arch isn't available on a stock S11.2. One has to get the ucb package.
But it would be nice if you could wean this script off of 'arch'.

Even after that I still get

Usage: dirname [ path ]

This one is a bit more mystifying. THe dirname use in the netbeans script seems OK:
+ PRG=./netbeans
+ [ -h ./netbeans ]
+ dirname ./netbeans
+ progdir=.

The error message seems to come after/from nbexec:

...
+ sh=/bin/bash
+ [ '' '=' yes ]
+ [ '' '=' yes ]
+ exec /bin/bash /export/home/opt/netbeans-8.0.1/platform/lib/nbexec --userdir /home/isoleima/.netbeans/8.0.1 --cachedir /home/isoleima/.cache/netbeans/8.0.1 --jdkhome '' --branding nb --clusters /export/home/opt/netbeans-8.0.1/nb:/export/home/opt/netbeans-8.0.1/ergonomics:/export/home/opt/netbeans-8.0.1/ide:/export/home/opt/netbeans-8.0.1/extide:/export/home/opt/netbeans-8.0.1/java:/export/home/opt/netbeans-8.0.1/apisupport:/export/home/opt/netbeans-8.0.1/webcommon:/export/home/opt/netbeans-8.0.1/websvccommon:/export/home/opt/netbeans-8.0.1/enterprise:/export/home/opt/netbeans-8.0.1/mobility:/export/home/opt/netbeans-8.0.1/profiler:/export/home/opt/netbeans-8.0.1/python:/export/home/opt/netbeans-8.0.1/php:/export/home/opt/netbeans-8.0.1/identity:/export/home/opt/netbeans-8.0.1/harness:/export/home/opt/netbeans-8.0.1/cnd:/export/home/opt/netbeans-8.0.1/dlight:/export/home/opt/netbeans-8.0.1/groovy:/export/home/opt/netbeans-8.0.1/extra:/export/home/opt/netbeans-8.0.1/javacard:/export/home/opt/netbeans-8.0.1/javafx: '-J-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade' '-J-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense' '-L-XX:MaxPermSize=384m' -J-Xmx1024m -J-client -J-Xss2m -J-Xms32m '-J-XX:PermSize=32m' '-J-Dapple.laf.useScreenMenuBar=true' '-J-Dapple.awt.graphics.UseQuartz=true' '-J-Dsun.java2d.noddraw=true' '-J-Dsun.java2d.dpiaware=true' '-J-Dsun.zip.disableMemoryMapping=true'
Usage: dirname [ path ]