Last change
on this file since 22181 was 22181, checked in by sjm84, 14 years ago |
Adding a class to check if a specified directory contains a JDK
|
File size:
375 bytes
|
Line | |
---|
1 | package org.greenstone.admin.guiext.mat;
|
---|
2 |
|
---|
3 | import java.io.File;
|
---|
4 |
|
---|
5 | public class Checker
|
---|
6 | {
|
---|
7 | public boolean JVMCheck(Object value)
|
---|
8 | {
|
---|
9 | try{
|
---|
10 | File javac = new File(((String)value) + File.separator + "bin" + File.separator + "javac");
|
---|
11 |
|
---|
12 | if(javac.exists()){
|
---|
13 | return true;
|
---|
14 | }
|
---|
15 | else{
|
---|
16 | return false;
|
---|
17 | }
|
---|
18 | }
|
---|
19 | catch(Exception ex){
|
---|
20 | }
|
---|
21 | return false;
|
---|
22 | }
|
---|
23 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.