[Logo] VUE Users Forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Groups] Back to home page 
[Login] Login 
If this is your first visit to the new VUE forums, you can login using the same username and password you currently use on VUE's website. If you need an account, please create one through VUE's website. If you have problems, please contact us via the contact form on http://vue.tufts.edu
Couldn't generate a runnable .jar file from VUE source code from GitHub  XML
Forum Index » Developers' Corner
Author Message
Apollia Pirandello


Joined: 01/06/2013 08:44:34
Messages: 10
Offline

Hi. I've been trying to generate a runnable .jar file from VUE's source code.

The command "ant all" generated a .jar file named "VUE-core.jar".

But when I type "java -jar VUE-core.jar" to run it, I get this error:

no main manifest attribute, in VUE-core.jar



To investigate, I unzipped the .jar file and looked inside the MANIFEST.MF file in the META-INF folder.

This is all the text that MANIFEST.MF contained:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.96
Created-By: 1.8.0_51-b16 (Oracle Corporation)



Judging by the "build.xml" file for Apache Ant in the VUE source code's "src" folder, there are supposed to be more details in MANIFEST.MF, but, I don't know how to make those details be added automatically.

(But, happily, at least I'm able to run VUE, just by typing "ant" while in the "src" folder. I discovered that by accident. :) I'm a Java newbie.)


Additional details. I'm using:

* The zip file of VUE's source code from:

https://github.com/VUE/VUE

(I just downloaded it via the link on that page, rather than by using console commands. I haven't gotten very acquainted with Git yet.)


* The official Java JDK version 8u51 from:

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html


* Apache Ant version 1.9.6 from:

http://ant.apache.org/bindownload.cgi


* Lucid Puppy Linux 5.2.8 version 004:

http://www.murga-linux.com/puppy/viewtopic.php?t=70855


Thanks for any help!

Best wishes,
Apollia

This message was edited 2 times. Last update was at 08/08/2015 23:39:41

Aaron Blanchard


Joined: 08/18/2015 21:17:21
Messages: 1
Offline

I had the same problem, and I discovered that that wasn't the finally built file.

try: VUE/VUE2/src/build $ java -jar VUE.jar
Apollia Pirandello


Joined: 01/06/2013 08:44:34
Messages: 10
Offline

Thank you, that worked! :)

Best wishes,
Apollia
 
Forum Index » Developers' Corner
Go to:   
Powered by JForum 2.1.8 © JForum Team