[01:13] <CMD_L1N3_> hello
[01:13] <CMD_L1N3_> i'm having some trouble with Bluej and Ubuntu 8.04
[05:41] <Bernmeister> Hi...recent convert to Ubuntu from Windows.  Written a couple of Java applications and am able to run them via a command line (terminal) but would like to "install" them as I would on Windows.  I'm finding it difficult to locate a tutorial which covers this...any ideas?
[05:45] <Bernmeister> I've already released a couple of Java apps to SourceForge...but I've only so far built Windows executables/installers.  Would like to eventually contribute these apps (if wanted that is) to Ubuntu, etc.
[05:47] <persia> Bernmeister, The "install" process is typically broken into two stages: "packaging" and "installation".  The general idea is to do as much work in packaging as possible so that the user does nothing special on installation, and it just works.
[05:48] <persia> For packaging, there's a distinction between the source package and the binary package.  The source package will contain all the .java files and instructions to build the binary package.  The binary package will contain a .jar of the .class files, and perhaps a launcher, if it's a GUI application.
[05:49] <Bernmeister> All makes sense so far.  I've already go my jar file (plus libs, etc) ready to go...I presume I need to go from this to a .deb right?
[05:49] <persia> Right, although you'll want to rely on system libs, etc. and just have your source .jar.
[05:50] <persia> The source .jar will be submitted to the buildds to generate a binary .jar for installation.
[05:50] <persia> I'm looking for a basic guide for packaging Java apps now, but I might end up giving up and just pointing you at an example package.
[05:51] <Bernmeister> I was looking at jdeb...hoping to just use ant to build and package...but it's not clear to me how to use it.  I know how to use ant...just don't understand the concepts that jdeb is trying to do for me...
[05:53] <persia> jdeb isn't in the repos, so while it might work for quick generation, I'm certain it won't work long-term if you want the packages in the repositories.
[05:55] <persia> Hmm.  The only page I can find that provides any hints is http://java.debian.net/building.html and it's not exactly a guide.
[05:57] <Bernmeister> Yeah, I've seen that...surely I'm not the first/only person to want to do this?  How hard is it going from .jar to .deb?  It was trivial on Windows...combination of ant and NSIS.
[05:58] <persia> It's fairly trivial to do quickly.  Doing it in a policy-compliant manner suitable for the buildds isn't that hard, but most of the documentation on packaging is focused on other languages, and I guess nobody wanted to duplicate that.
[05:59] <Bernmeister> But on the jdeb note: I thought all I want to do is release a .deb file right?  If so, what does it matter if I use jdeb (or whatever) to create that .deb file.  As long as I provide a deb to the repos that's all that counts right?   Or am I way off now...
[05:59] <persia> Take a look at the robocode source.  Seems reasonably clean to me.
[05:59] <persia> The repos don't accept binary uploads.
[06:00] <persia> You'd need to create a source package (.dsc, .orig.tar.gz, .diff.gz), and that source package would generate the binary package (.deb) on the buildds.
[06:05] <Bernmeister> So in short, there's no step-by-step guide on getting your Java app into Ubuntu?  Do you know who/where I can poke to go from here?  If anything I'd like to just build a deb to release for myself!
[06:05] <Bernmeister> Otherwise, I swear I'll go back to Windows ;-)
[06:14] <persia> In short, I can't find one.
[06:14] <persia> As I said before, I'd recommend grabbing the source of another package (e.g. robocode) and basing from that.
[06:15] <persia> The files you most likely have to modify are debian/control, debian/copyright, debian/rules, debian/changelog, and debian/watch.
[06:15] <persia> You'll want to replace/remove anything in debian/patches and anything clearly specific to the example package.
[06:23] <Bernmeister> Thanks for your help...I'll give it a (long) shot!
[06:24] <persia> Bernmeister, Please ask here if you get stuck, or if nobody is about, #ubuntu-motu may also have some answers.
[06:24] <persia> Best of luck.
[06:25] <Bernmeister> I just joined #ubuntu-motu now...194 people in it...might have more luck.  Thanks again.
[07:24] <Koon> cody-somerville: as member of motu-sru could you have a look at bug 179447 ? It needs SRU approval (and nomination acceptation), we still get duplicates for it in hardy.
[07:28] <persia> Koon, I've approved the nomination, although it still requires motu-sru to approve
[07:29] <Koon> persia: hopefully that will make it a little more visible, thanks
[07:30] <persia> No problem.
[07:31] <Koon> I'm a little unconvinced by how we handle SRU in launchpad. The nomination system is a little too much development-release oriented.
[07:32] <Koon> But hey, i'm also a little unconvinced by how sponsoring is handled (to me we should track it by status, not just by subscription)
[07:32] <persia> Yeah, well, the current nominations system is widely believed to be broken.  It assumes the number of bugs to be small, and a core set of developers to be reviewing the bugs.  This is fine for many projects, but doesn't scale to Ubuntu.
[07:33] <Koon> yes, I agree it's very adapted for smaller scale projects
[07:35] <persia> You may be interested in bug #179857
[07:35] <Koon> persia: what's your take about sponsoring ? To me New->Confirmed->InProgress->Confirmed+sponsor-sub just doesn't make sense. It would be more logical to have a "Fix proposed" after "In progress"
[07:35] <Koon> does sound like it, yes
[07:36] <persia> Unfortunately, we didn't get something in the 6-12 month timeframe, and so now don't scale at all well.
[07:37] <persia> There's a blueprint, and I know it's being discussed.
[14:03] <ccs> Enter text here...
[14:03] <ccs> z
[14:04] <persia> ?
[17:44] <Ste1> Hi
[17:44] <Ste1> I'm trying to install IntelliJ a java editor
[17:45] <Ste1> but I get an error that the java path is not valid.
[17:45] <Ste1> when I print the env vars I don't see JAVA_HOME in the list.
[17:46] <Ste1> i'm using ubuntu for 2 days.
[17:48] <Ste1> I tried following these suggestions
[17:48] <Ste1> http://ubuntuforums.org/archive/index.php/t-508343.html
[17:48] <Ste1> but really got lost.
[17:48] <Ste1> Do I have to manually set the path to java each time
[17:48] <Ste1> has java not been correctly installed.
[17:49] <persia> Some of the applications set JAVA_HOME in wrappers, but you can set it in your .bashrc, and it will stay.
[17:50] <Ste1> wow some applications you mean distributions? i'm using ubuntu
[17:50] <Ste1> ok, in .bashrc where do I find that file?
[17:52] <persia> It's in your home directory.  If it isn't there, you can create it.
[17:52] <persia> And no, I mean applications.  For instance, there might be some Java program that doesn't work with some specific JRE, so it wants a different JAVA_HOME than your normal one.
[17:53] <persia> Other applications will hunt down which JREs you have installed, and try to use the one they like best.
[17:53] <Ste1> ok
[17:53] <persia> We're working to unify everything, and just use OpenJDK, but it's not done yet (and probably won't be done for a while, although I think the majority of apps should just work for 9.04)
[17:57] <Ste1> In windows I could open the application(IntelliJ editor) and it let me choose a jre.
[17:57] <Ste1> after it opened
[17:59] <Ste1> i'll have to log off to apply the new text
[17:59] <Ste1> I added this line:
[17:59] <Ste1> # add extra paths
[17:59] <Ste1> export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.06/jre/bin/java
[18:07] <CMD_L1N3> hallo
[18:08] <CMD_L1N3> anyone use BlueJ ?
[18:09] <Ste1> Hi persia
[18:10] <Ste1> I get this error now
[18:10] <Ste1> stefan@stefan-desktop:~/java/idea-6197/bin$ ./idea.sh
[18:10] <Ste1> exec: 60: /usr/lib/jvm/java-6-sun-1.6.0.06/jre/bin/java/bin/java: not found
[18:10] <persia> Well, does that file exist?
[18:11] <persia> Also, with regard to the automatic choice of JRE being missing, that's more an issue with the application than with the operating system, as it would be the application launcher that was checking.
[18:11] <Ste1> ok
[18:13] <Ste1> The file doesn't excist there, but I pointed it to
[18:13] <Ste1> /usr/lib/jvm/java-6-sun-1.6.0.06/jre/bin/java
[18:14] <Ste1> I gues I have to drop the java/bin
[18:14] <Ste1> bin/java
[18:14] <Ste1> it's funny because this is helping me to learn linux by solving this problem
[18:15] <persia> That sounds right.  It's looking for the HOME.
[18:15] <persia> And then it adds the path inside the come.
[18:15] <Ste1> right
[18:16] <Ste1> should i append a / or not?
[18:16] <Ste1> i'll try
[18:23] <Ste1> Ok, so I'm one step further now it sais cannot find x in classpath
[18:23] <Ste1> please make sure JAVA_HOME points to JDK and not JRE path.
[18:23] <persia> Ste1, I don't think you need a final /
[18:23] <Ste1> srry?
[18:23] <Ste1> ah right
[18:23]  * persia is trying to multitask, not entirely effectively :)
[18:24] <Ste1> JAVA_PATH=/home/stefan/java/idea-6197/bin
[18:24] <Ste1> no
[18:24] <Ste1> JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.06/
[18:24] <persia> Do you have a JRE or JDK installed?
[18:24] <Ste1> i don't know :o
[18:24] <Ste1> lol
[18:24] <Ste1> that's bad.
[18:25] <Ste1> In the synaptec manager i clicked sun java and install
[18:25] <persia> I think that's just the JRE.  I think there's another package for the JDK.
[18:26] <persia> For the Sun Java6 binary package, it's sun-java6-jre vs. sun-java6-jdk
[18:26] <Ste1> ok, will check
[18:28] <Ste1> downloads jdk :)
[18:30] <Ste1> woot it starts
[18:30] <Ste1> thx for being patient with me
[18:31] <persia> Ste1, No problem.  I hope it works for you.
[18:31] <Ste1> what did *** mean with you are multitasking?
[18:32]  * persia used /me to indicate an action
[18:33]  * Ste1 i?
[18:33] <Ste1> ok then
[18:34] <Ste1> can i ask you more or...
[18:35] <persia> Sure, although if you want to ask about things not related to Java packaging, this might not be the best forum.  In any forum, I'll recommend asking generally, as someone usually is able to answer.
[18:36] <Ste1> ok my questions are very simple.
[18:36] <Ste1> and #ubuntu is just flooded with people
[18:37] <Ste1> ﻿ok for example i would like a shortcut for the ide on my desktop
[18:37] <Ste1> I copied idea.sh to the desktop but now I always get do you want to exe or view content.
[18:37] <Ste1> rather have the app start right away :p
[18:38] <persia> Well, if you're using nautilus, you can right-click and select Create Launcher, but I'm not sure for other environments, nor entirely sure what you put there.  I know it ends up being a .desktop file, but suspect that you don't want me to give you the .desktop file spec URL.
[18:40] <Ste1> I have nautilus
[18:40] <Ste1> I right click on idea.sh
[18:40] <persia> No, on the Desktop.
[18:40] <Ste1> and now I have a shortcut(it has a white arrow on the right)
[18:40] <Ste1> righht
[18:44] <Ste1> I typ exec /home/stefan/java/idea-6197/bin/idea.sh in the execute: textbox
[18:44] <Ste1> double click file or path doesn't excist, i copy the full path into nautilus and it does exist.
[18:45] <persia> Interesting.  I don't understand why that happens.
[18:56] <Ste1> when I type exec /home/stefan/java/idea-6197/bin/idea.sh in the console directly it does start :/
[18:56] <Ste1> the terminal i mean
[18:56] <persia> Is the script executable?
[18:57] <Ste1> yes
[18:57] <Gaurav__> Needed to access my nokia 5300 through cable but i am unable to do so that. any ideas??
[18:58] <Gaurav__> sorry that is nokia 5310
[18:58] <persia> Gaurav__, For that, I'm sure this isn't the best place to ask, and unfortunately don't know anywhere better than #ubuntu.
[18:58] <persia> s/better/more specific/
[18:58] <Ste1> i'll go there aswell
[18:58] <Ste1> thx for the help persia
[18:59] <persia> Ste1, Good luck.  Sorry I don't have the answer for the launcher.  It doesn't make sense that it doesn't work.