Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have made a Java application for Ubuntu in NetBeans and would like to submit it to the Ubuntu Software Center. But the problem is, when I get the upload form, they ask to choose a file. So what do I do now? (NetBeans projects are in a folder and not a file).

So what exactly do I have to upload? Do I just ZIP it and upload? Please help.

share|improve this question
add comment

2 Answers 2

up vote 10 down vote accepted
+50

In short, you need to package your application in the Debian packaging format. If you know how to package, simply upload a tarball or a zip file with the source package.

If you don't know how to package, you've got two options:

  • If your application is a commercial app, you can upload the .jar files and Canonical will package it for you
  • If your application is an open source app, you can contact the Ubuntu App Review Board via e-mail or IRC and they will help you getting started. alternatively, you can learn more about packaging on the Ubuntu Packaging Guide

This is also explained in:

And in more detail, in:

share|improve this answer
    
After I "Clean And Build" in NetBeans, a .jar file was created in the "dist" directory. So if I upload only that, is it valid, and will they package it for me (its a commercial app)? And is it free of charge? –  Roshnal Jan 12 '12 at 16:28
    
@Roshnal Yes, you should only need to upload the .jar file in the dist directory. And yes, your software will be packaged for you, free of charge! –  rigved Jan 15 '12 at 6:38
    
@Roshnal: "If your application is a commercial app, you can upload the .jar files and Canonical will package it for you". And yes, the service is free of charge. I'd recommend to upload the .jar file (or put it in a zip file or tarball and then upload), and if the packager needs more info, he'll get in touch with you via e-mail. –  David Planella Jan 15 '12 at 9:27
    
Thanks a lot for the answer! I was stuck till now and now know what to do exactly.. Thanks again! :) –  Roshnal Jan 15 '12 at 12:54
    
I said that the service is free, but to be more exact, I should have probably said that this service is accounted for in the transaction fee for each app sale (see developer.ubuntu.com/publish/commercial-software-faqs) –  David Planella Jan 15 '12 at 14:32
show 1 more comment

I do not develop in Java, but here are a few sites that might have the answer for you.

http://developer.ubuntu.com/

This would also be a good question to seek an answer for during Ubuntu Developer Week.

https://wiki.ubuntu.com/UbuntuAppDeveloperWeek

From my experience Java Applications get published as .jar files, but I am not sure how to make that happen under NetBeans.

I did find the following link which may help:

http://netbeans.org/kb/articles/javase-deploy.html#Exercise_1

share|improve this answer
    
Thanks for the links! I checked them out. And for creating .jar files, you should just right-click the project and select "Clean And Build" and a .jar file is created. –  Roshnal Jan 12 '12 at 16:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.