#1 qtjambi.version is not set!

closed
nobody
5
2013-04-15
2011-02-22
Anonymous
No

You'll find a description of the steps taken here: http://forums.gentoo.org/viewtopic-p-6582685.html?sid=f913692c6beb55cddaa16c513dc0ca11

but the problem is i get the error message:

/usr/share/nevernote/nevernote.sh
Exception in thread "main" java.lang.ExceptionInInitializerError: qtjambi.version is not set!
at com.trolltech.qt.Utilities.<clinit>(Utilities.java:79)
at com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:55)
at com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:60)
Could not find the main class: cx.fbn.nevernote.NeverNote. Program will exit.

Discussion

  • I posted on that thread that I'd try to run against the newer Jambi libraries. Did you try that?

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here


    Anonymous
    2011-02-26

    Yes, if i didn't run it against de newer jambi libraries, i got the same error of all the previous posts...

    I'm using qtjambi-macosx-intel-community-4.7.0-beta1 to run NeverNote 0.96 in a gentoo machine. Extracted the tar.gz version of nevernote

     
    Last edit: Anonymous 2013-11-21
  • I'm confused. What computer architecture are you using? As far as I know Jambi only has Intel / AMD platforms pre built for Linux.

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here


    Anonymous
    2011-02-27

    I'm using an i686 with a linux gentoo.
    The qt-jambi i'm using i've got it from https://sourceforge.net/projects/qtjambi/files/ and i picked up the link that say's get the latest version and downloaded qtjambi-linux32-community-4.7.0-beta.tar.gz. then i extracted the tar.gz ang got the qtjambi-4.7.0.jar and qtjambi-linux32-gcc-4.7.0.jar which i then copy to the nevernote/lib directory (/usr/share/nevernote/lib/ ).
    Then in nevernote directory i vi nevernote.sh where i edited the following lines:

    NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/qtjambi-4.7.0.jar
    NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/qtjambi-linux32-gcc-4.7.0.jar

    then sh nevernote.sh and i get the error:

    # sh nevernote.sh
    Exception in thread "main" java.lang.ExceptionInInitializerError: qtjambi.version is not set!
    at com.trolltech.qt.Utilities.<clinit>(Utilities.java:79)
    at com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:55)
    at com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:60)
    Could not find the main class: cx.fbn.nevernote.NeverNote. Program will exit.
    /usr/share/nevernote

     
  • Ok. It confused me when you said you were using the osx libraries. Those are for Mac systems.

    Let's start over.

    Uninstall NeverNote and delete /usr/share/nevernote
    Download the nevernote-0.97_i386.tar.gz file and unpack it. That should have everything you need.

    If it still fails, try downloading Jambi from SourceForge and running the samples provided. If you are unable to run the samples, then something is wrong with your setup that Jambi can't figure out.

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here


    Anonymous
    2011-03-01

    Did remove all the nevernote i had. downloaded an untar and install.sh - got the first error.
    Downloaded the last version of qtjambi, run the $/qtjambi.sh and used the demos/miniapps - (the tetrix did relaxed me a bit:) )
    Still nevernote.sh didn't run; put the new qtjambi-4.7.0.jar an qtjambi-linux32-gcc-4.7.0.jar in $nevernote/lib and add NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/qtjambi-4.7.0.jar
    NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/qtjambi-linux32-gcc-4.7.0.jar

    Got the late error again...

    I'll keep on trying, i'll try to install the qting-edge overlay, so to be able to comile the qtjambi locally (and probably will have to update all the qt as well :S ).
    I'll come back when i get this going...

    keep up the good work, and keep me posted :) thx

     
  • Steven Su
    Steven Su
    2011-08-10

    I got exactly the same error while installing nevernote v1.0 on OpenSUSE 64 bit v11.4 yesterday.

    Look into the error msg, it complained the qtjambi.version was not set on Utilities.java, line 79.

    Here is the utility.java:
    http://qt.gitorious.net/qt-jambi/mattr-qtjambi-4_7/blobs/fd537b8f2fb22eaed24843ad529f5fc4c9cfb2e1/src/java/qtjambi/com/trolltech/qt/Utilities.java

    if (VERSION_STRING == null)
    throw new ExceptionInInitializerError("qtjambi.version is not set!");

    Which means it did find the version.properties and qtjambi.version string only it was set to NULL.

    I'm not quite sure where version.properties it referred to ... Maybe in the jar file?

    I will check it after I back to home.

     
  • Steven Su
    Steven Su
    2011-08-10

    There is a version.properties file in qtjambi-4.6.3.jar:
    qtjambi.version = 4.6.3
    So we DO have correct qtjambi.version. Dont know why it complained version not set :(

     
  • suxm,

    Can you please try it with the version of Jambi that is packaged with NixNote? I haven't tested it with anything newer than 4.5 in a long time so I don' know if it will work. I konw there are additional classes that are needed in the nevernote.sh file, os you at least need to modify that. There could very well be other changes that I'm not aware of.

    I tried Jambi 4.7 briefly but I was never able to get it to start. I don't recall the error, but since 4.7 is still in beta I haven't taken the time to look into it.

    Also be sure that if you are running on a 64 bit system that you are also running a 64 bit java. I don't think this is the problem, but some people run into it.

     
  • Steven Su
    Steven Su
    2011-08-10

    Hi Baumgarr,

    I uninstalled the Nevernote v1.0 and tried v0.98 - it works now! It seems that all libraries included in this installation.
    The first time I executed it I got:
    Exception in thread "main" java.lang.NullPointerException
    at cx.fbn.nevernote.sql.NoteTable.getAllNotes(NoteTable.java:926)

    Then I commented out below lines to make sure 64 bit jar were called:
    #NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/qtjambi-linux32-4.5.2_01.jar
    #NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/qtjambi-linux32-gcc-4.5.2_01.jar

    And Nevernote start!

     
  • I'm glad you got it to work. It should figure out which libraries it needs. I've never had to comment them out, but I guess as long as it works that is all that matters.

    It strikes me as odd that 1.0 didn't start since they have the same version of Jambi.

    If you want to stick with 0.98 I recommend you delete your ~/.nevernote/db directory, or simply move it somewhere else. This will delete everything and the next time you start over. I don't recall if there were DB changes between 0.98 & 1.0, but if there were you may have problems going forward.

    If version 1.0 never started then the DB probably wasn't created. In that case you should be O.K.

     
  • I was curious if you are still having an issue with the latest release or if I can close this ticket.

    Thanks.

     
  • I did a google search & found a couple of examples of this where people were mixing various Jambi libraries.

    What version of Jambi do you have installed?

     
  • Sorry. Updated this ticket by mistake. Closing ticket.

     
    • status: open --> closed