translation-tool: allow Test to work even if java not in path
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@672 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
88fc2ae4bb
commit
682c9964a5
1 changed files with 5 additions and 1 deletions
|
@ -118,9 +118,13 @@ public class TranslationTool extends JFrame
|
||||||
String selCountry = localeParts.length >= 2 ? localeParts[1] : "";
|
String selCountry = localeParts.length >= 2 ? localeParts[1] : "";
|
||||||
String selVariant = localeParts.length >= 3 ? localeParts[2] : "";
|
String selVariant = localeParts.length >= 3 ? localeParts[2] : "";
|
||||||
|
|
||||||
|
File javaExe = new File(System.getProperty("java.home"));
|
||||||
|
javaExe = new File(javaExe, "bin");
|
||||||
|
javaExe = new File(javaExe, "java");
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
String javaPath = "java";
|
String javaPath = javaExe.toString();
|
||||||
String classPath = stringsModel.workingDirectory.toString()
|
String classPath = stringsModel.workingDirectory.toString()
|
||||||
+ System.getProperty("path.separator")
|
+ System.getProperty("path.separator")
|
||||||
+ getMicropolisJarFile().toString();
|
+ getMicropolisJarFile().toString();
|
||||||
|
|
Reference in a new issue