Packaging application runnable jar?

Dear all,

I've completed stage 1 of an application using Eclipse.  At this stage no user interface just a number of arguments in the run configuration.  Can I create a runnable jar considering users will need to change the arguments? Or should I create a batch file to run from command line?

I've tried to export a runnable jar however I get export errors and compile warnings for java classes that are in a different package to the main.  As well as this message - Class files on classpath not found or accessible for a class file.

Tried creating a batch file to run the app from the command line, I haven't created one before.

"C:\Program Files\Java\jre1.8.0_25\bin\javaw.exe" -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:60141 -Dfile.encoding=Cp1252 -classpath "C:\Testing_ALP\AppliancePlatform\bin;C:\Kepler SR1\eclipse\plugins\org.junit_4.11.0.v201303080030\junit.jar;C:\Kepler SR1\eclipse\plugins\org.hamcrest.core_1.3.0.v201303031735.jar" java au.lw.platform.model.HalfHourlyApplianceModel C:\Testing_ALP\AppliancePlatform\data\test.csv C:\Testing_ALP\AppliancePlatform\output\ 0.003 2 4 13/03/2014 12/03/2015 1000

Open in new window


Thanks
AndyC1000Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AndyC1000Author Commented:
I watched the you tube video earlier when I first tried to export the runnable jar there are export errors and compile warnings for java classes that are in a different package to the main.

I've compiled the code from the command line and there are errors that the packages don't exist.  Even though they do.
0
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

zzynxSr. Software engineerCommented:
In case you didn't get the message: CEHJ wants you to post the errors you get.
0
AndyC1000Author Commented:
The message was "Exported with compile warnings somepackage/class.java" I assumed it was an error.
0
CEHJCommented:
Yes, you don't export to jar before the application even compiles ;)
0
zzynxSr. Software engineerCommented:
Thanx 4 axxepting
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.