Call Libgdx Gdx-tools in a Cygwin environment

Source: Internet
Author: User
Tags libgdx

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.