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 205543

Summary: --help does not work when netbeans.user is missing
Product: platform Reporter: Masaki Katakai <masaki>
Component: Launchers&CLIAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: normal CC: anebuzelsky
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Masaki Katakai 2011-11-25 01:20:36 UTC
"netbeans.user points to a non-existent directory." is displayed instead of help
when NetBeans user directory does not exist.

Product Version: NetBeans IDE 7.1 RC1 (Build 201111232200)

$ /tmp/mkatakai/netbeans-7.1rc1/bin/netbeans  -help
Usage: /tmp/mkatakai/netbeans-7.1rc1/bin/../platform/lib/nbexec {options} arguments

General options:
  --help                show this help 
  --jdkhome <path>      path to Java(TM) 2 SDK, Standard Edition
  -J<jvm_option>        pass <jvm_option> to JVM

  --cp:p <classpath>    prepend <classpath> to classpath
  --cp:a <classpath>    append <classpath> to classpath
netbeans.user points to a non-existent directory.
$

Once NetBeans is started - ~/.netbeans/7.1rc1 is created, it's working properly
without this message.
Comment 1 Jaroslav Tulach 2011-12-30 07:15:05 UTC
ergonomics#1fda7f41f64f
Comment 2 Quality Engineering 2012-01-01 15:57:20 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/1fda7f41f64f
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #205543: We don't really need real userdir to print help