Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse LibGDX folder sharing

(4/15/2014 Still no working answer to the question)

I used gdx-setup-ui.jar to create my Android/Desktop/HTML5 program which I imported into Eclipse.

myprogram
myprogram-android
myprogram-desktop
myprogram-html

My program runs fine on desktop and android, but when I run it as html I get an error if all of my classes are not in the same myprogram>src folder, if I put it in a sub folder in src then the html5 does not seem to access the class. If I take my classes out of the folder and put them in the root of myprogram>src they work. How can I fix this?

I also notice that when I do a symbolic link to the asset folder manually(without gdx-setup-ui.jar) my Java application will not find the pictures etc unless I physically copy the asset folder twice. I made sure the folder path was exactly the same and it still wouldn't detect it unless I made a second copy of the pictures. Strangely the gdx-setup-ui.jar does this symbolic copy and yet it works for some reason.

like image 805
CodeCamper Avatar asked Apr 16 '26 10:04

CodeCamper


1 Answers

This tutorial explains how to do it in Eclipse. And for completeness sake, here is how to do it using ant and IntelliJ. I hope this was useful. I will try the Eclipse one now...

like image 58
Lennart Rolland Avatar answered Apr 18 '26 23:04

Lennart Rolland



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!