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 138638 - --laf Nimbus is ignored as last parameter
Summary: --laf Nimbus is ignored as last parameter
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-30 15:31 UTC by Lukas Hasik
Modified: 2008-12-22 11:59 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 Lukas Hasik 2008-06-30 15:31:00 UTC
nb65 M1, jdk 6u10

-when I run IDE with command line switch -laf on the last position then the switch is not recognized
e.g.:
F:\netbeans\NetBeans 6.5 M1-0630\bin>nb.exe --userdir f:\netbeans\userdir\nb65-m1-063-nimbus --jdkhome "c:\Program
Files\Java\jdk1.6.0_10\" --laf Nimbus

OTOH, when it is at different position it works correctly
e.g.
F:\netbeans\NetBeans 6.5 M1-0630\bin>nb.exe --userdir f:\netbeans\userdir\nb65-m1-063-nimbus --laf Nimbus --jdkhome
"c:\Program Files\Java\jdk1.6.0_10\"
Comment 1 t_h 2008-07-01 13:03:33 UTC
If I use fully qualified name com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel it works for me without any dependence on
position of parameter. If I use short name (--laf Nimbus) it does not work at all (it does not depend on position of
parameter as well). I checked the parameters which are passed to java.exe and it is sent correctly as "--laf" "Nimbus",
so it seems it is not problem of launcher.
Comment 2 mslama 2008-07-28 20:47:54 UTC
It works fine on Linux. All parameters are passed to org.netbeans.core.startup.CLIOptions and there 'short' L&F IDs are
translated to full L&F class name (fully qualified). I will check on Windows.
Comment 3 mslama 2008-09-25 14:16:32 UTC
I cannot reproduce on Win2K. Closing.