To launch the tools provided in Gdx-tools by executing shell scripts, such as I need to start particle-editor in Gdx-tools, I have taken the GDX official documentation and executed the command in Cygwin:
java -cp gdx.jar:gdx-natives.jar:gdx-backend-lwjgl.jar:gdx-backend-lwjgl-natives.jar:gdx-tools.jar com.badlogic.gdx.tools.particleeditor.ParticleEditor
But as a result, the prompt "error: The main class could not be found or could not be loaded"
The Linux command does not work in the Cygwin environment, but does not know what to do on the Linux system, so far there has been no contact with the Linux system, but in the Windows DOS window, execute the command provided in the document, but there is no problem. Although the problem can be solved, no shell script can be, but, not my purpose, so on the internet a pass to find, a morning passed, or did not find a solution, the noon sleep a wake up, continue to make, use "scientific Internet" way with Google a search, the problem solved (this time on the TM Baidu, Bing Search 360 Search first scold again).
Solution:
JAVA-CP ' cygpath-wp Gdx.jar:gdx-natives.jar:gdx-backend-lwjgl.jar:gdx-backend-lwjgl-natives.jar: Gdx-tools.jar ' com.badlogic.gdx.tools.particleeditor.ParticleEditor
(Note where yellow is highlighted)
Although the problem is solved, but there is a question, the above solution of the specific reason is what (English is not good, not very understand, the following provides the relevant links, ask God counseling)?
Reference Address:
Http://www.coderanch.com/t/501233/java/java/Running-java-classpath-cygwin
Https://github.com/libgdx/libgdx/wiki/2D-Particle-Editor
http://www.inonit.com/cygwin/faq/(this address is not accessible in the country)
Call Libgdx Gdx-tools in a Cygwin environment