HDFView-2.11-win32-vs2012: Incorrect parsing of filename argument(s) in hdfview.bat


#1

Greetings,

hdfview.bat on Windows fails to parse file name argument(s). When opening a
file from Explorer or from the command-line, HDFView launches, but the
specified file(s) is (are) not opened. I believe the issue derives from a
syntax error in the batch file, specifically the following line of <HDFView
install directory>/2.11.0/bin/hdfview.bat:

start "HDFView" "%JAVABIN%\javaw.exe" -Xmx1024M
-Djava.library.path="%INSTALLDIR%\lib" -Dhdfview.root="%INSTALLDIR%" -jar
"%INSTALLDIR%\lib\jhdfview.jar" $*

Shouldn't the "$*" be a "%*"? Making this substitution rectified this issue
for me.

Best,
Russell

···

--
Russell Anderson
School of Physics
Monash University
Victoria 3800, Australia


#2

Russell,

I thought I had fixed that! Yes it should be '%*' '$*' is for linux scripts. I
will fix that again.

Allen

···

On Wednesday, January 28, 2015 12:25:44 PM Russell Anderson wrote:

Greetings,

hdfview.bat on Windows fails to parse file name argument(s). When opening a
file from Explorer or from the command-line, HDFView launches, but the
specified file(s) is (are) not opened. I believe the issue derives from a
syntax error in the batch file, specifically the following line of <HDFView
install directory>/2.11.0/bin/hdfview.bat:

start "HDFView" "%JAVABIN%\javaw.exe" -Xmx1024M
-Djava.library.path="%INSTALLDIR%\lib" -Dhdfview.root="%INSTALLDIR%" -jar
"%INSTALLDIR%\lib\jhdfview.jar" $*

Shouldn't the "$*" be a "%*"? Making this substitution rectified this issue
for me.

Best,
Russell


#3

Kindly fix the hdfview.bat file. I am unable to see HDFView-3.1.0
start “HDFView” “%JAVABIN%\javaw.exe” %JAVAOPTS% -Xmx1024M -Djava.library.path="%INSTALLDIR%\lib;%INSTALLDIR%\lib\ext" -Dhdfview.root="%INSTALLDIR%" -cp "%INSTALLDIR%\lib\;%INSTALLDIR%\lib\extra\slf4j-nop-1.7.25.jar" hdf.view.HDFView %