Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

←[34m prefix output to Windows Command Prompt #303

Closed
donpellegrino opened this issue Jan 18, 2016 · 3 comments
Closed

←[34m prefix output to Windows Command Prompt #303

donpellegrino opened this issue Jan 18, 2016 · 3 comments

Comments

@donpellegrino
Copy link

When running Protégé Version 5.0.0 (Build beta-21) on Microsoft Windows 7 64-bit, the run.bat file outputs to the command prompt dialog. Output is prefixed with "←[34m" on many lines. It appears that the console output is making use of an encoding that is not supported by Microsoft's command prompt (C:\windows\system32\cmd.exe). This makes the output difficult for a human to read.

@csnyulas
Copy link
Member

Hi Don,

There is a solution for this. Just install ANSICON on your Windows machine, and it will be as smart as any Unix-based platform (well, this is a bit of exaggeration, but at least your console will be able to
interpret ANSI color codes :) ):
https://www.liferay.com/web/igor.spasic/blog/-/blogs/enable-ansi-colors-in-windows-command-prompt

Csongor

@tudorache
Copy link
Member

Here is an example output from Windows console (Protege 5 b21 out of the box):


C:\Users\ttania\Desktop\Protege-5.0.0-beta-21>jre\bin\java -Xmx500M -Xms200M -DentityExpansionLimit=100000000 -Dlogback.configurationFile=conf/logback.xml -Dfile.encoding=utf-8 -Dorg.protege.plugin.dir=plugins -classpath bundles/guava.jar;bundles/logback-classic.jar;bundles/logback-core.jar;bundles/slf4j-api.jar;bin/org.apache.felix.main.jar;bin/protege-launcher.jar org.protege.osgi.framework.Launcher
�[34m********************************************************************************�[0;39m
�[34m**                                  Prot├⌐g├⌐                                   **�[0;39m
�[34m********************************************************************************�[0;39m
�[34m�[0;39m
�[34m----------------- Initialising and Starting the OSGi Framework -----------------�[0;39m
�[34mFrameworkFactory Class: org.apache.felix.framework.FrameworkFactory�[0;39m
�[34m�[0;39m
�[34mThe OSGi framework has been initialised�[0;39m
�[34m------------------------------- Starting Bundles -------------------------------�[0;39m
�[34mStarting bundle org.protege.common�[0;39m
�[34mStarting bundle org.eclipse.equinox.common�[0;39m
�[34mStarting bundle org.eclipse.equinox.supplement�[0;39m
�[34mStarting bundle org.eclipse.equinox.registry�[0;39m
�[34mStarting bundle org.protege.editor.core.application�[0;39m
�[34mStarting bundle org.apache.commons.io�[0;39m
�[34mStarting bundle com.google.guava�[0;39m
�[34mNot starting bundle com.google.inject.assistedinject explicitly because it is a fragment bundle.�[0;39m
�[34mNot starting bundle com.google.inject.multibindings explicitly because it is a fragment bundle.�[0;39m
�[34mStarting bundle com.google.inject�[0;39m
�[34mStarting bundle jul.to.slf4j�[0;39m
�[34mStarting bundle log4j.over.slf4j�[0;39m
�[34mStarting bundle ch.qos.logback.classic�[0;39m
�[34mStarting bundle ch.qos.logback.core�[0;39m
�[34mStarting bundle org.apache.servicemix.bundles.aopalliance�[0;39m
�[34mStarting bundle org.apache.servicemix.bundles.javax-inject�[0;39m
�[34mStarting bundle org.eclipse.equinox.common�[0;39m
�[34mStarting bundle org.eclipse.equinox.registry�[0;39m
�[34mStarting bundle org.eclipse.equinox.supplement�[0;39m
�[34mStarting bundle org.semanticweb.owl.owlapi�[0;39m
�[34mStarting bundle org.protege.common�[0;39m
�[34mStarting bundle org.protege.editor.core.application�[0;39m
�[34mStarting bundle org.protege.editor.owl�[0;39m
�[34mStarting bundle slf4j.api�[0;39m
�[34mStarting bundle cellfie�[0;39m
�[34mStarting bundle code-generation�[0;39m
�[34mStarting bundle existentialquery�[0;39m
�[34mStarting bundle uk.ac.manchester.cs.owl.explanation�[0;39m
�[34mStarting bundle org.protege.ontograf�[0;39m
�[34mStarting bundle org.coode.dlquery�[0;39m
�[34mStarting bundle org.semanticweb.hermit�[0;39m
�[34mStarting bundle org.coode.browser�[0;39m
�[34mStarting bundle org.coode.owlviz�[0;39m
�[34mStarting bundle org.protege.owl.rdf�[0;39m
�[34mStarting bundle org.protege.editor.owl.rdf�[0;39m
�[34mThe OSGi framework has been started�[0;39m
�[34m�[0;39m
�[34m------------------------------------ Prot├⌐g├⌐ -----------------------------------�[0;39m
�[34mProt├⌐g├⌐ Desktop�[0;39m
�[34mVersion 5.0.0, Build beta-21�[0;39m
�[34m�[0;39m
�[34m�[0;39m
�[34m----------------------------------- Platform -----------------------------------�[0;39m
�[34mJava: JVM 1.8.0_40-b26  Memory: 466M�[0;39m
�[34mLanguage: en, Country: US�[0;39m
�[34mFramework: Apache Software Foundation (1.7) �[0;39m
�[34mOS: windows8 (6.3)�[0;39m
�[34mProcessor: x86-64
�[0;39m
�[34m�[0;39m
�[34m------------------------------------ Plugins -----------------------------------�[0;39m
�[34mPlugin: Cellfie Protege 5.0+ Plugin (2.0.0.beta-6)�[0;39m
�[34mPlugin: OWL Code Generation Plug-in (2.0.0)�[0;39m
�[34mPlugin: Existential Query (2.0.0)�[0;39m
�[34mPlugin: Explanation Workbench (3.0.0)�[0;39m
�[34mPlugin: OntoGraf (2.0.2)�[0;39m
�[34mPlugin: DL Query (3.0.0)�[0;39m
�[34mPlugin: HermiT (1.3.8.413)�[0;39m
�[34mPlugin: OWLDoc (3.0.2)�[0;39m
�[34mPlugin: OWLViz (5.0.1)�[0;39m
�[34mPlugin: OWLAPI RDF Library (2.0.1)�[0;39m
�[34mPlugin: Protege SPARQL Plugin (2.0.1)�[0;39m
�[34m�[0;39m
�[34m   OWLAPI RDF Library Plugin has no plugin.xml resource�[0;39m
Jan 20, 2016 1:21:33 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
�[34mOWL API Version: 4.1.3.20151118-2017�[0;39m
�[31mCannot generate ontology catalog for ontology at http://www.semanticweb.org/ttania/ontologies/2016/0/untitled-ontology-2�[0;39m
�[34m------------------------------- Auto-update Check ------------------------------�[0;39m
�[34mAuto-update last performed: Wed Dec 31 16:00:00 PST 1969�[0;39m
�[34mAuto-update has not been performed today.  Running it.�[0;39m
�[34m�[0;39m
�[34m------------------------------ Running Auto-update -----------------------------�[0;39m
�[34m�[0;39m
�[34m--- Checking for updates to installed plugins ---�[0;39m
�[34m�[0;39m
�[34m--- Searching plugins to install ---�[0;39m
�[34mChecking https://raw.githubusercontent.com/protegeproject/autoupdate/master/update-info/5.0.0/plugins.repository�[0;39m
�[34m    Processing https://raw.githubusercontent.com/protegeproject/autoupdate/master/update-info/5.0.0/plugins.repository as a plugin registry�[0;39m
�[34m        Checking https://raw.githubusercontent.com/protegeproject/cellfie-plugin/master/update-info/protege-5/update.properties�[0;39m
�[34m            Processing https://raw.githubusercontent.com/protegeproject/cellfie-plugin/master/update-info/protege-5/update.properties as a plugin registry�[0;39m
�[34m        Checking https://raw.githubusercontent.com/co-ode-owl-plugins/change-tracker/master/update-info/protege-5/update.properties�[0;39m
�[34m        Checking https://raw.githubusercontent.com/protegeproject/dlquery/master/update-info/protege-5/update.properties�[0;39m
�[34m        Checking http://elk.semanticweb.org/maven/latest/elk-distribution/resources/p5.update.properties�[0;39m
�[34m        Checking https://raw.githubusercontent.com/protegeproject/existentialquery/master/update-info/protege-5/update.properties�[0;39m
�[34m        Checking https://bitbucket.org/dtsarkov/factplusplus/downloads/config.autoupdate.Protege-5.0.txt�[0;39m
�[34m        Checking http://jcel.sourceforge.net/update.properties�[0;39m
�[34m        Checking https://raw.githubusercontent.com/protegeproject/ontograf/master/update-info/protege-5/update.properties�[0;39m
�[34m        Checking https://raw.githubusercontent.com/protegeproject/owl-diff/master/update-info/protege-5/update.properties�[0;39m
�[34m        Checking https://raw.githubusercontent.com/co-ode-owl-plugins/owldoc/master/update-info/protege-5/update.properties�[0;39m
�[34m        Checking https://raw.githubusercontent.com/protegeproject/owlviz/master/update-info/protege-5/update.properties�[0;39m
�[34m        Checking https://raw.githubusercontent.com/Complexible/pellet/master/protege/plugin/plugins.repository�[0;39m
�[34m            Processing https://raw.githubusercontent.com/Complexible/pellet/master/protege/plugin/plugins.repository as a plugin registry�[0;39m
�[34m                Checking https://raw.githubusercontent.com/Complexible/pellet/master/protege/plugin/update.properties�[0;39m
�[34m        Checking https://raw.githubusercontent.com/protegeproject/sparql-query-plugin/master/update-info/protege-5/update.properties�[0;39m
�[34m        Checking https://raw.githubusercontent.com/protegeproject/swrltab-plugin/master/update-info/protege-5/update.properties�[0;39m
�[34m�[0;39m

@matthewhorridge
Copy link
Contributor

We're just missing a jar from the Windows class path that will fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants