java


How to export a java project from eclipse that contains all libraries required to compile?


For a project I completed a game in Java on Eclipse using LibGDX. I now need to turn in the source code to my professor. When I export the project and try opening it on a new computer, about a dozen libraries are missing.
I would like to export my entire project so that when the project is opened in eclipse, it will still compile. Is there any way to do this? I know that runnable jars come with the .jar files of the dependencies and no source code, but I need both.
Thanks in advance
Libgdx required number of dependent jars so it's hard to manually add all jars into project.
Make your project gradle based so that When you import your project through gradle into another System then gradle do most of your task* for you.
*gradle try to find dependent jars in file system if already exist then link with your project if not then it download from given repository and link them in your project. Make sure your system is connected with internet when you build your project.
I highly encourage to use Android Studio or IntelliJIDEA.
On window, by default all jars are stored inside
C:\Users\User_name\.gradle\caches\modules-2\files-2.1
In Mac OSX
/Users/User_name/.gradle/caches/modules-2/files-2.1
When you want to deploy or packaging for the desktop run this command on your IDE terminal.
gradlew desktop:dist
You can use maven or gradle to build your project, take a look of one of the tool and it's won't take you too much time. these tool could help you define your own way for build
A much easier way you could use "fat jar". this is an old tool for build a jar with all lib you need and could be run in any place.

Related Links

Android javax.io.IOException: last block incomplete in decryption
How would I match names to memberships in organizations using HashMaps in Java?
Error when i try to execute selendroid command
JDBC login with Jpype
Change a button background while its background is in an animation?
Hibernate : Not able to create table
How to set capacity for Java DelayQueue
Desktop java app copy and transfer android data via USB
How to change one half of a split pane while keeping the other the same when an action occurs in javafx
Node Creation in Magnolia CMS
Repainting Frame erases previously drawn shape
Android unit tests - How to test a service using ServiceTestCase
Get all declared subclasses at runtime in Java?
Count string beginning by x, and store in Array Android Studio
IllegalAccessError when instantiating HttpSolrServer
Read file and identify a String between parenthesis

Categories

HOME
gitlab
rsync
dxl
flyway4
in-app-purchase
uber-api
swagger-ui
gnupg
numeral.js
apache-cayenne
windows-phone-7
systemc
aurigma
pythonanywhere
facebook-instant-articles
lcd
android-widget
applozic
typo3-6.2.x
compatibility
libuv
subdomains
c++-amp
unboundid
fog
mmenu
environment-modules
sequential
host
lto
impersonation
trim
nxlog
convertapi
executenonquery
azure-application-gateway
komodoedit
boost-multi-index
tizen-native-app
imanage
webdriverjs
smart-table
pintos
root-framework
wdf
firmata
libpng
rotativa
probability-density
database-optimization
multi-level
login-control
pickadate
jfugue
ios8-today-widget
msys
collapse
jmeter-maven-plugin
wordml
spidermonkey
purge
wyam
varargs
map-projections
ionic
sniffer
device-orientation
facebook-graph-api-v2.4
java-metro-framework
bitcoinj
flask-cors
terminfo
typeof
uitouch
commoncrypto
google-cloud-save
odata4j
ora-00911
buster.js
gwt-rpc
android-hardware
subscript
appender
calling-convention
floating
h.323
user-friendly
photoshop-cs4
genealogy

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile