++
решение проблемы совместимости с java 1.8._4xx
This commit is contained in:
@@ -158,13 +158,17 @@ public class Global {
|
||||
public static void NormalMode(int port) throws Exception {
|
||||
//-------------------------------->>
|
||||
mainModule = new MainModule();
|
||||
System.out.println("main module initialization..");
|
||||
mainModule.Init();
|
||||
System.out.println("DONE");
|
||||
//--
|
||||
CheckVisualiserDirectories();
|
||||
CreateLogAtComponentsPath();
|
||||
//-
|
||||
System.out.println("connection to visualiser_2..");
|
||||
visualizer_2 = new Visualizer_2(port);
|
||||
visualizer_2.Connect();
|
||||
System.out.println("DONE");
|
||||
visualizer_2.refreshPid();
|
||||
//если делать раньше, то не удастся убить сервер.
|
||||
if (Utils_.ContainsCyrillic(Utils_.getHomePath())) {
|
||||
@@ -173,16 +177,27 @@ public class Global {
|
||||
"Визуализатор завершает работу."); //
|
||||
FinishApplication();
|
||||
}
|
||||
System.out.println("messages server starting..");
|
||||
messagesServer = new MessagesServer();
|
||||
messagesServer.Start();
|
||||
System.out.println("DONE");
|
||||
components = new ComponentsSet();
|
||||
System.out.println("component initial versions checking..");
|
||||
components.initialVersionsCheck();
|
||||
System.out.println("DONE");
|
||||
System.out.println("geting component actual versions..");
|
||||
Global.mainModule.getPass(PassCode.GetComponentsActualVersions).Do();
|
||||
System.out.println("DONE");
|
||||
System.out.println("validation component actual versions..");
|
||||
components.validateStates();
|
||||
System.out.println("DONE");
|
||||
if (components.needChanges()) {
|
||||
System.out.println("components need changes!!");
|
||||
boolean flag = true;
|
||||
do {
|
||||
System.out.println("Show components window...");
|
||||
Global.mainModule.getUI().getComponentsWindow().ShowDialog("");
|
||||
System.out.println("DONE");
|
||||
if (flag = (!components.validateStates())) {
|
||||
if (!UI.Question("Обнаружены некорректные компоненты.Работа визуализатора невозможна.\n" +
|
||||
"Вернуться к окну компонент"
|
||||
@@ -278,6 +293,10 @@ public class Global {
|
||||
public static void Init(String... args) {
|
||||
System.out.println("VisualSapfor.jar started..");
|
||||
System.out.println("home directory is" + Utils_.Brackets(Utils_.getHomePath()));
|
||||
System.out.println("args size = " + args.length);
|
||||
for (int i = 0; i < args.length; ++i)
|
||||
System.out.println("args[" + i + "]=" + Utils_.DQuotes(args[i]));
|
||||
System.out.println("====");
|
||||
//--->
|
||||
try {
|
||||
SynchronizeProperties();
|
||||
|
||||
Reference in New Issue
Block a user