• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 92
  • Last Modified:

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
0
AndyC1000
Asked:
AndyC1000
  • 3
  • 2
  • 2
1 Solution
 
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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
zzynxSoftware 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
 
zzynxSoftware engineerCommented:
Thanx 4 axxepting
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now