Skip to main content

Please review fix for 6466752

3 replies [Last post]
ersh
Offline
Joined: 2006-10-18
Points: 0

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bkurotsu
Offline
Joined: 2004-12-13
Points: 0

Oh! Of course you are right - I should not send e-mails when so tired.

Fix looks fine then! Thanks!

bkurotsu
Offline
Joined: 2004-12-13
Points: 0

Hi. The fix is ok when operating from a jar, but does not work if a unpacked jar or raw build classes/ directory is used. Fix should include an attempt to do the basic search of the classpath.

Example of what does not work:
> cd JTHarness-build/classes
> java -jar com.sun.javatest.tool.Main -version
Unable to access jarfile com.sun.javatest.tool.Main

ersh
Offline
Joined: 2006-10-18
Points: 0

No, it works, you mistaken typing the command:

~/tmp> java -cp ~/wrk/jt422/ersh/cr_6466752/JTHarness-build/classes/:/opt/lib/jhall.jar com.sun.javatest.tool.Main -version
JT Harness, version 4.1.2 dev b00
Installed in /local_homes/ersh/wrk/jt422/ersh/cr_6466752/JTHarness-build/classes
Running on platform version 1.5.0_09 from /opt/jdk1.5.0_09/jre.
Built with Java(TM) 2 SDK, Version 1.5.0_09 on August 9, 2007.
Copyright (C) 1996-2007 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.