summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2007-01-17 22:58:29 +0000
committerTom Tromey <tromey@redhat.com>2007-01-17 22:58:29 +0000
commitf68220f479f486297119adc8188d2c02e8401642 (patch)
tree3a64560f84c4971a9ae38e3aa936c5bee176605c /tools
parent10cbda5b72088586de14196a88a2a095f3b0528d (diff)
downloadclasspath-f68220f479f486297119adc8188d2c02e8401642.tar.gz
* tools/gnu/classpath/tools/javah/PathOptionGroup.java
(PathOptionGroup): Set default boot class path.
Diffstat (limited to 'tools')
-rw-r--r--tools/gnu/classpath/tools/javah/PathOptionGroup.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/gnu/classpath/tools/javah/PathOptionGroup.java b/tools/gnu/classpath/tools/javah/PathOptionGroup.java
index 4287354ae..efb5f7a70 100644
--- a/tools/gnu/classpath/tools/javah/PathOptionGroup.java
+++ b/tools/gnu/classpath/tools/javah/PathOptionGroup.java
@@ -1,5 +1,5 @@
/* PathOptionGroup.java - handle classpath-setting options
- Copyright (C) 2006 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -89,6 +89,11 @@ public class PathOptionGroup
{
super("Class path options");
+ // Use the VM's built-in boot class path by default.
+ String boot = System.getProperty("sun.boot.class.path");
+ if (boot != null)
+ setPath(bootclasspath, boot);
+
add(new Option("classpath", "Set the class path", "PATH")
{
public void parsed(String path) throws OptionException