Buildingįrom the root of the repository (the folder where pom.xml is) run: Support is integrated into Eclipse, but it can be used without an IDE, so you can build the game without Eclipse.Īll build information is provided in pom.xml. Maven is a Java build system that can be used to build applications. If the appearance of the console changes, then you've succeeded. Run "lxrun /install" in Command Prompt, type "y" to continue, after that - enter some username and password.Fortunately, the basic setup can be done with just one command. If result contains the phrase "Windows Subsystem for Linux has no installed distributions", then you have to install Linux distribution.If it's active, try to execute "bash" in Command Prompt.In "Turn Windows features on or off", check if Windows Subsystem for Linux is activated.The GIT plugin of Eclipse tries to run the "bash" command, and if you hadn't installed Windows Subsystem for Linux properly, it may cause problems with import. If you don't do this, you will have to do it manually in Windows File Explorer. Make sure you select "Delete Project Contents on Disk".In the Package Explorer, right click the project, and click "Delete".Make note of the directory it is reporting as not being empty. This is most likely because you have already have an outdated build open as a project. This is the same error as "Some or all projects cannot be imported as they already exist in the workspace" "C:\Users\git\liliths-throne-public is not an empty directory." Try exporting again, but in the Launch Configuration there should be a new one added.The program should now launch, you can play like this, or close it now.Another Window will open, there will be one matching item called "Main - " Select this and click "OK".A Wizard will open, click "Search" next to the "Main Class" Box.Choose "Java Application", and click "OK".In the left column, select "Run/Debug Settings".Select the Project in the Package Explorer.First close the Export wizard, and click on the icon in the top of the left pane.jar! Help No Launch Configuration OR "Could not find main method from given launch configuration." OR "No resources selected" error. # IMPORTANT If you're building through github, you'll need to place the 'liliths-throne-public-dev/res' folder in the same directory as the exported. Possibly you may have to, then try again steps 10-15.Extract it and follow instructions in eclipse.If this does not list a JDK 1.8 system library, download the JDK from the above oracle link.You should now be able to run the exported.A warning may pop up saying "JAR export finished with warnings", this is fine. jar file, this should be where you normally run the game from. Choose "Main - LilithsThrone" under Launch Configuration (IF THERE ARE NO OPTIONS, READ HELP BELOW).Open "Java", and then choose "Runnable JAR File".The project name should update, you can change it if you want. Browse to the folder where you unzipped the files, and select it.Uncheck "Use default location", and click browse. Extract the zip, you should have a folder "liliths-throne-public-dev" now.You should now have a "liliths-throne-public-dev.zip", save this somewhere, for example C:\JavaCode.
0 Comments
Leave a Reply. |