telosys-tools-bricks / telosys-cli

Telosys CLI - Command Line Interface
https://www.telosys.org/
GNU Lesser General Public License v3.0
166 stars 23 forks source link

tt on windows: class not found #10

Closed dmaglio closed 6 years ago

dmaglio commented 6 years ago
[ERROR] Terminal initialization failed; falling back to unsupported
java.lang.NoClassDefFoundError: Could not initialize class org.fusesource.jansi.internal.Kernel32
        at org.fusesource.jansi.internal.WindowsSupport.getConsoleMode(WindowsSupport.java:50)
        at jline.WindowsTerminal.getConsoleMode(WindowsTerminal.java:204)
        at jline.WindowsTerminal.init(WindowsTerminal.java:82)
        at jline.TerminalFactory.create(TerminalFactory.java:101)
        at jline.TerminalFactory.get(TerminalFactory.java:158)
        at jline.console.ConsoleReader.<init>(ConsoleReader.java:229)
        at jline.console.ConsoleReader.<init>(ConsoleReader.java:221)
        at jline.console.ConsoleReader.<init>(ConsoleReader.java:209)
        at org.telosys.tools.cli.TelosysCLI.<init>(TelosysCLI.java:46)
        at org.telosys.tools.cli.TelosysMain.main(TelosysMain.java:35)

←[36;1m
    ______     __
   /_  __/__  / /___  _______  _______
    / / / _ \/ / __ \/ ___/ / / / ___/
   / / /  __/ / /_/ (__  ) /_/ (__  )
  /_/  \___/_/\____/____/\__, /____/
                        /____/  3.0.0 CLI-012←[0m
Enter ? for help
←[32mtelosys>←[0mERROR : Unexpected exception null
[WARN] Task failed
java.lang.NoClassDefFoundError: Could not initialize class org.fusesource.jansi.internal.Kernel32
        at org.fusesource.jansi.internal.WindowsSupport.setConsoleMode(WindowsSupport.java:60)
        at jline.WindowsTerminal.setConsoleMode(WindowsTerminal.java:208)
        at jline.WindowsTerminal.restore(WindowsTerminal.java:95)
        at jline.TerminalSupport$1.run(TerminalSupport.java:52)
        at jline.internal.ShutdownHooks.runTasks(ShutdownHooks.java:66)
        at jline.internal.ShutdownHooks.access$000(ShutdownHooks.java:22)
        at jline.internal.ShutdownHooks$1.run(ShutdownHooks.java:47)

i have already installed visual c++ 2008 sp1. it's impossibile to made any operation, like update model or entity generation. only unprompted command like home definition

l-gu commented 6 years ago

What version of Windows are you using ? And Java version ( 32 or 64 bits ) ?

dmaglio commented 6 years ago

@l-gu windows 7 enterprise and java 1.8.152 jdk, always 32 bit

l-gu commented 6 years ago

Telosys-CLI has been tested under Windows with both Java 32 and 64 and it forks fine. The problem seems to be related to your Operating System : Java cannot work with native library (via JNI)
And the error is located in the "jansi-native" library used by the "jline" library used by "telosys-cli". So at our level we can't fix this problem :-(

dmaglio commented 6 years ago

solved if i run command prompt as administrator....