#51 new
ayanto

Can not open piggydb-standalone.jar with double click

Reported by ayanto | June 29th, 2013 @ 06:59 PM

I'm on Ubuntu 12.04 system. Default app for open this file is OpenJDK Java 7 Runtime installed via Ubuntu Software Center.

--> echo $JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64/bin

--> echo $PATH /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

--> /usr/share/applications/defaults.list application/x-jar=openjdk-7-java.desktop
application/x-java-archive=openjdk-7-java.desktop
application/x-java-jnlp-file=icedtea-netx-javaws.desktop

Anywhere I put piggydb-standalone (6.12 version) folder, piggydb.log say:

ERROR 2013/06/29 20:01:00 java.io.FileNotFoundException: /home/m/launcher.properties (No such file or directory)
java.io.FileNotFoundException: /home/m/launcher.properties (No such file or directory)
at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:138) at marubinotto.piggydb.standalone.Settings.(Settings.java:23) at marubinotto.piggydb.standalone.PiggydbServer.loadSettings(PiggydbServer.java:118) at marubinotto.piggydb.standalone.PiggydbServer.launch(PiggydbServer.java:77) at marubinotto.piggydb.standalone.PiggydbServer.main(PiggydbServer.java:48)

Command line:
--> cd ~/home/.../piggydb-standalone --> java -jar piggydb-standalone.jar works fine, but for unknow reason to me open in Chromium (Firefox is my default web browser)

Some help?
Thanks

Comments and changes to this ticket

  • marubinotto

    marubinotto July 1st, 2013 @ 10:22 AM

    The error message says that launcher.properties is missing. This file should be in the piggydb-standalone dicretory. Did you copy piggydb-standalone.jar to the directory '/home/m'?

  • ayanto

    ayanto July 2nd, 2013 @ 05:28 PM

    I did something wrong because I answer here yesterday to your question.

    No, I don't copy jar file out. I just download piggydb-standalone.zip, run “extract here” and double-click over piggydb-standalone.jar, getting the message you know in piggydb.log. Same thing anywhere is placed the folder.

    The application only run correctly from terminal changing to its directory or if I put all the content folder in /home/m/. But this way I don't think is very clean.

    I turn to Ubuntu from Windows one month or so ago and I expected piggydb worked in the same way as it did in Windows XP, starting application from menu (gnome-shell without animations).

    Because I thought the problem was system path I try everything I found with web browser, changing .profile, creating a .bash_profile file or proving with export classpath. No success.

    Thanks for your help

  • marubinotto

    marubinotto July 4th, 2013 @ 03:39 AM

    Thank you for the detailed info.

    The standalone package looks for launcher.properties from the current working directory. That's why it works when you launch piggydb via command line. I think the reason that double-click doesn't work is some path problem as you pointed out.

    It is a platform-dependent issue, so I don't have much knowledge about it. A workaround would be to copy only the launcher.properties file to /home/m.

  • ayanto

    ayanto July 4th, 2013 @ 08:30 AM

    I didn't make anything wrong. The question was that lighthouseapp administrators take me for a spammer and comments or emails disappear. They say me I've marked now as trust.

    The workaround you propose don't work, because the error is now:

    java.io.FileNotFoundException: /home/m/webapp
    
    I just learned that linux scripts and batch files DOS/Wndows can have similar functions. So, I did a simple script piggydb.sh
    #!/bin/sh
    cd ~/bin/piggydb-standalone
    java -jar piggydb-standalone.jar
    
    make it executable and run from Applications Menu gnome-shell.

    I was tired after browser dozens of pages with apparently similar java problems to execute jar files in Ubuntu, but not exactly this one, where every one gave a different solution, and no one fix the error. I need learn more about Linux and that imply time.

    Thanks for your time

  • ayanto

    ayanto July 4th, 2013 @ 08:31 AM

    • no changes were found...

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Piggydb is a Web notebook application that provides you with a platform to build your knowledge personally or collaboratively.

Shared Ticket Bins

People watching this ticket

Referenced by

Pages