[01:13] hello [01:13] i'm having some trouble with Bluej and Ubuntu 8.04 === LucidFox_ is now known as LucidFox [05:41] 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] 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] 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] 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] 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] Right, although you'll want to rely on system libs, etc. and just have your source .jar. [05:50] The source .jar will be submitted to the buildds to generate a binary .jar for installation. [05:50] 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] 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] 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] 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] 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] 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] 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] Take a look at the robocode source. Seems reasonably clean to me. [05:59] The repos don't accept binary uploads. [06:00] 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] 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] Otherwise, I swear I'll go back to Windows ;-) [06:14] In short, I can't find one. [06:14] As I said before, I'd recommend grabbing the source of another package (e.g. robocode) and basing from that. [06:15] The files you most likely have to modify are debian/control, debian/copyright, debian/rules, debian/changelog, and debian/watch. [06:15] You'll want to replace/remove anything in debian/patches and anything clearly specific to the example package. [06:23] Thanks for your help...I'll give it a (long) shot! [06:24] Bernmeister, Please ask here if you get stuck, or if nobody is about, #ubuntu-motu may also have some answers. [06:24] Best of luck. [06:25] I just joined #ubuntu-motu now...194 people in it...might have more luck. Thanks again. [07:24] 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:24] Launchpad bug 179447 in tomcat5.5 "Installation of tomcat5.5 fails if sun-java-jdk is not installed" [Medium,Fix released] https://launchpad.net/bugs/179447 [07:28] Koon, I've approved the nomination, although it still requires motu-sru to approve [07:29] persia: hopefully that will make it a little more visible, thanks [07:30] No problem. [07:31] 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] 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] 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] yes, I agree it's very adapted for smaller scale projects [07:35] You may be interested in bug #179857 [07:35] 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] Launchpad bug 179857 in malone "Package sponsorships involve awkward bugtracker machinations" [Undecided,New] https://launchpad.net/bugs/179857 [07:35] does sound like it, yes [07:36] Unfortunately, we didn't get something in the 6-12 month timeframe, and so now don't scale at all well. [07:37] There's a blueprint, and I know it's being discussed. [14:03] Enter text here... [14:03] z [14:04] ? === ma101 is now known as ma10 [17:44] Hi [17:44] I'm trying to install IntelliJ a java editor [17:45] but I get an error that the java path is not valid. [17:45] when I print the env vars I don't see JAVA_HOME in the list. [17:46] i'm using ubuntu for 2 days. [17:48] I tried following these suggestions [17:48] http://ubuntuforums.org/archive/index.php/t-508343.html [17:48] but really got lost. [17:48] Do I have to manually set the path to java each time [17:48] has java not been correctly installed. [17:49] Some of the applications set JAVA_HOME in wrappers, but you can set it in your .bashrc, and it will stay. [17:50] wow some applications you mean distributions? i'm using ubuntu [17:50] ok, in .bashrc where do I find that file? [17:52] It's in your home directory. If it isn't there, you can create it. [17:52] 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] Other applications will hunt down which JREs you have installed, and try to use the one they like best. [17:53] ok [17:53] 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] In windows I could open the application(IntelliJ editor) and it let me choose a jre. [17:57] after it opened [17:59] i'll have to log off to apply the new text [17:59] I added this line: [17:59] # add extra paths [17:59] export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.06/jre/bin/java [18:07] hallo [18:08] anyone use BlueJ ? [18:09] Hi persia [18:10] I get this error now [18:10] stefan@stefan-desktop:~/java/idea-6197/bin$ ./idea.sh [18:10] exec: 60: /usr/lib/jvm/java-6-sun-1.6.0.06/jre/bin/java/bin/java: not found [18:10] Well, does that file exist? [18:11] 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] ok [18:13] The file doesn't excist there, but I pointed it to [18:13] /usr/lib/jvm/java-6-sun-1.6.0.06/jre/bin/java [18:14] I gues I have to drop the java/bin [18:14] bin/java [18:14] it's funny because this is helping me to learn linux by solving this problem [18:15] That sounds right. It's looking for the HOME. [18:15] And then it adds the path inside the come. [18:15] right [18:16] should i append a / or not? [18:16] i'll try [18:23] Ok, so I'm one step further now it sais cannot find x in classpath [18:23] please make sure JAVA_HOME points to JDK and not JRE path. [18:23] Ste1, I don't think you need a final / [18:23] srry? [18:23] ah right [18:23] * persia is trying to multitask, not entirely effectively :) [18:24] JAVA_PATH=/home/stefan/java/idea-6197/bin [18:24] no [18:24] JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.06/ [18:24] Do you have a JRE or JDK installed? [18:24] i don't know :o [18:24] lol [18:24] that's bad. [18:25] In the synaptec manager i clicked sun java and install [18:25] I think that's just the JRE. I think there's another package for the JDK. [18:26] For the Sun Java6 binary package, it's sun-java6-jre vs. sun-java6-jdk [18:26] ok, will check [18:28] downloads jdk :) [18:30] woot it starts [18:30] thx for being patient with me [18:31] Ste1, No problem. I hope it works for you. [18:31] what did *** mean with you are multitasking? [18:32] * persia used /me to indicate an action [18:33] * Ste1 i? [18:33] ok then [18:34] can i ask you more or... [18:35] 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] ok my questions are very simple. [18:36] and #ubuntu is just flooded with people [18:37] ok for example i would like a shortcut for the ide on my desktop [18:37] I copied idea.sh to the desktop but now I always get do you want to exe or view content. [18:37] rather have the app start right away :p [18:38] 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] I have nautilus [18:40] I right click on idea.sh [18:40] No, on the Desktop. [18:40] and now I have a shortcut(it has a white arrow on the right) [18:40] righht [18:44] I typ exec /home/stefan/java/idea-6197/bin/idea.sh in the execute: textbox [18:44] double click file or path doesn't excist, i copy the full path into nautilus and it does exist. [18:45] Interesting. I don't understand why that happens. [18:56] when I type exec /home/stefan/java/idea-6197/bin/idea.sh in the console directly it does start :/ [18:56] the terminal i mean [18:56] Is the script executable? [18:57] yes [18:57] Needed to access my nokia 5300 through cable but i am unable to do so that. any ideas?? [18:58] sorry that is nokia 5310 [18:58] 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] s/better/more specific/ [18:58] i'll go there aswell [18:58] thx for the help persia [18:59] Ste1, Good luck. Sorry I don't have the answer for the launcher. It doesn't make sense that it doesn't work.