1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.jdiagnose.library;
17
18 import org.jdiagnose.DiagnosticException;
19 import org.jdiagnose.DiagnosticUnit;
20
21 /***
22 * User: jamie
23 * Date: Jun 4, 2004
24 * Time: 10:58:12 AM
25 */
26 public class JDKDiagnostic extends DiagnosticUnit {
27
28 public JDKDiagnostic() {
29
30 }
31
32 public JDKDiagnostic(String name) {
33 super(name);
34 }
35
36 public void diagnoseJavac() throws DiagnosticException {
37 try {
38 Class.forName("com.sun.tools.javac.Main");
39 } catch (ClassNotFoundException e) {
40 throw new DiagnosticException("com.sun.tools.javac.Main could not be found");
41 }
42 }
43
44 }