We help IT Professionals succeed at work.
Get Started

Packaging application runnable jar?

AndyC1000
AndyC1000 asked
on
115 Views
Last Modified: 2015-04-22
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
Comment
Watch Question
Sr. Software engineer
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE