Cannot run CompendiumNG

About CompendiumNG Forums Installation Installation Windows Cannot run CompendiumNG

This topic contains 3 replies, has 2 voices, and was last updated by  roald 1 year, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #675

    roald
    Spectator

    After installing either version 2.1.4 or the recent development version (without error messages), I get the following error screen after running either “CompendiumNG.bat” or “CompendiumNG-portable.bat”:
    Java Virtual Machine Launcher
    Could not find the main class:
    com.compendium.ProjectCompendium. Program will exit

    I have different Java versions installed, which is needed as our financial systems require the old Java versions :(
    Installed Java versions:
    Java Version 7 Update 67 (=most recent version)
    Java(TM) 6 Update 31
    Java(TM) 6 Update 31 (64-bit)

    What I already tried:
    Adding this line to the .BAT file:
    PATH=c:\WINDOWS\system32;C:\WINDOWS\SysWOW64;%APPDATA%;%PATH%
    did not do the trick.

    Also changing this line
    start /b javaw -Dlogback.configurationFile=”C:\Users\roagra\apps\CompendiumNG\logback.xml” -Dcompendiumng.config.dir=”%USERPROFILE%\compendiumng_config” -Ddir.data=”%USERPROFILE%\compendiumng_data” -Xmx512m -jar CompendiumNG.jar %1 %2 %3 %4 %5 %6 %7 %8 %9
    to this
    start /b “C:\Program Files (x86)\Java\jre7\bin\javaw.exe” -Dlogback.configurationFile=”C:\Users\roagra\apps\CompendiumNG\logback.xml” -Dcompendiumng.config.dir=”%USERPROFILE%\compendiumng_config” -Ddir.data=”%USERPROFILE%\compendiumng_data” -Xmx512m -jar CompendiumNG.jar %1 %2 %3 %4 %5 %6 %7 %8 %9
    does not solve it.

    #676

    roald
    Spectator

    BTW: OS is Windows 7 Enterprise, SP1, 64 bits

    #689

    maiklos
    Keymaster

    I assume that your issue is the path to java runtime (java.exe and javaw.exe)

    if you have path like this:

    PATH=c:\WINDOWS\system32;C:\WINDOWS\SysWOW64;%APPDATA%;%PATH%

    then java which is copied into c:\Windows\system32 will be always found first – which I assume is java 6. Compendium need java 7 – java 6 is officially EOL.

    You can have only one java runtime on path (strictly speaking you can have as many as you want but only the first will be used).

    I see 2 possibilities:
    a) modify your financial system startup script so it uses java6
    b) modify compendium script to use java 7 and let java 6 be the default.

    choice a) is IMO better one since it is basically your financial system what is broken here (no offence – interestingly many banking or financial system made in java are strictly bound to some old unsupported version of java). However since I don’t know too much about your financial system I can’t give you exact instructions how to do it.

    choice b)
    1) identify where is your java7 javaw.exe located
    2) modify compendium startup script to use absolute path to javaw.exe
    disclaimer: it will probably bind your startup script to your particular system/configuration and as a result it will become effectively “unportable”

    • This reply was modified 1 year, 7 months ago by  maiklos.
    #724

    roald
    Spectator

    Is your second suggestion not what I had already tried, as described in my question?

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.