Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: Pentaho not starting due to Classes not found

  1. #1
    Join Date
    Mar 2015

    Unhappy Pentaho not starting due to Classes not found

    Hi all,

    When I try to startup pentaho, it does not startup due to the following error which is produced by the debugger:


    WARNING: Using java from path
    DEBUG: _PENTAHO_JAVA=java.exe

    C:\Pentaho1\data-integration6>"java.exe" "-Xms1024m" "-Xmx4096m" "-XX:MaxPermSize=512m""-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2""-Djava.library.path=libswt\win64" "-DKETTLE_HOME=""-DKETTLE_REPOSITORY=" "-DKETTLE_USER=""-DKETTLE_PASSWORD=" "-DKETTLE_PLUGIN_PACKAGES=""-DKETTLE_LOG_SIZE_LIMIT=" "-DKETTLE_JNDI_ROOT=" -jarlauncher\pentaho-application-launcher- -lib..\libswt\win64 /levelebug
    Invalid entry, ignoring 'C:\Pentaho1\data-integration6\launcher\..\classes'
    Exception in thread "main" java.lang.NoClassDefFoundErrorrg/eclipse/swt/widgets/Control
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
    at java.lang.Class.privateGetMethodRecursive(Unknown Source)
    at java.lang.Class.getMethod0(Unknown Source)
    at java.lang.Class.getMethod(Unknown Source)
    at org.pentaho.commons.launcher.Launcher.main(

    Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Control
    at Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 6 more

    Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m;support was removed in 8.0


    Does anyone know how to solve this issu? Thanks in advance.

  2. #2
    Join Date
    Aug 2015


    step1 : check whether you have mentioned Java path in your environment variables or not ?
    hope you are using Windows... then check from command prompt
    cmd -> echo %path%

    step2 : if you are able to see java path then check it is okay.
    step3 : have you maintain different java versions then you should point to Pentaho home path to your java(only one java path)

  3. #3
    Join Date
    Mar 2015


    That would be this setup:

    Set Windows PENTAHO_JAVA_HOME Variable

    1. From the Start menu, right-click Computer, then select Properties from context menu.
    2. Click Advanced System Settings. The System Properties window appears.
    3. In the System Properties window, click the Advanced tab, then click Environment Variables.
    4. To set the PENTAHO_JAVA_HOME variable do this.

    1. In the System Variable section, click New.
    2. In the window that appears, type PENTAHO_JAVA_HOME in the name field.
    3. In the value field, enter the directory where your Oracle JDK or Oracle JRE is stored. For example your Java JRE is in the Program Files\Java\jre7 directory, type this.
    C:\Program Files\Java\jre7
    4. Click OK.

    1. Click Apply Changes.
    2. Log out, then log back in.
    3. To verify that the variables have been properly set, open a Command window and type this.



    However in my Java folder I have:

    C:\Program Files\Java\jre1.8.0_77
    C:\Program Files\Java\jdk1.8.0_77\jre

    Which one should I choose in this case to set as my path? And what exactly do you mean with step 3?
    Would it also matter whetere I have the Java JDK or JRE installed, ? Because I do have a computer that runs the exact pentaho, but without the variable setup.
    Last edited by Dutchsky; 04-19-2016 at 05:11 AM.

  4. #4
    Join Date
    Aug 2015


    step 3 means, if in spoon.bat file your java is pointing to other version apart from your jre1.8.0_77 then you need to manually set latest java path. if it is already in comment then you can ignore it.

    and my suggestion is better to install java 1.7 if possible.
    are there any reason to use 1.8 version ?

    Thank you

  5. #5
    Join Date
    Mar 2015


    I have added the variable, did not work. CMD echo%path% did work. Then I changed the path directly in the spoon.bat file to the JAVA jre location, did also not work. As option I used the jdk, did also not work. Pretty clueless now. The reason I use the latest Java version is due company policy. Because this Java does seem to work on the other computer with the exact same Pentaho version.

    Anything other I could do other than install a different Java?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.