#Build JAR from sources

32 messages · Page 1 of 1 (latest)

brave saddle
tacit merlinBOT
#

This post has been reserved for your question.

Hey @brave saddle! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

brave saddle
lapis mesa
#

open cmd and navigate to the directory where your source files are located!

#

and thn
javac MyClass.java

brave saddle
#

I have to build full project

#

not a single file

lapis mesa
#

exactly

brave saddle
#

so

#

I need to do this with every file in the src directory?

lapis mesa
#

javac -d build/classes src/com/example/MyClass.java

#

in yo project directory

#

i mean directory that contains the src directory and the build.xml file!

#

thn

brave saddle
#

Check github repository

#

There's no xml files

#

Only java files

#

2 jar libraries

#

and .g4 file

lapis mesa
#

aaah

#

javac -d build/classes src/com/example/MyClass.java

#

thn

#

jar cf myjar.jar -C build/classes .

#

thn

#

jar cfm myjar.jar manifest.txt -C build/classes .

brave saddle
#

i don't have manifest.txt

lapis mesa
brave saddle
#

ok

#

thx