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:
jason@long.name 2013-05-21 13:37:44 +00:00
parent 88fc2ae4bb
commit 682c9964a5

View file

@ -118,9 +118,13 @@ public class TranslationTool extends JFrame
String selCountry = localeParts.length >= 2 ? localeParts[1] : "";
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
{
String javaPath = "java";
String javaPath = javaExe.toString();
String classPath = stringsModel.workingDirectory.toString()
+ System.getProperty("path.separator")
+ getMicropolisJarFile().toString();