Menu

Error installing :Exception in thread "main"

Help
2008-05-19
2012-11-22
  • Nobody/Anonymous

    Get the following:

    host:/home/time # ./Install.sh
    Exception in thread "main" java.awt.HeadlessException:
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
            at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
            at java.awt.Window.<init>(Window.java:407)
            at java.awt.Frame.<init>(Frame.java:402)
            at java.awt.Frame.<init>(Frame.java:367)
            at javax.swing.JFrame.<init>(JFrame.java:163)
            at installers.InstallerMain.MainLICENSE(InstallerMain.java:102)
            at installers.InstallerMain.main(InstallerMain.java:538)
    command not found2:
    command not found3:
    command not found4:
    command not found5:
    command not found6:

    Can anyone Help?

    Ygg

     
    • Paul Jones

      Paul Jones - 2008-05-20

      You are installing on a Linux distribution that does not have X. Our Java installer needs X windows to run.

      It is possible to install Web Time Entry manually without X Windows (and of course Tomcat does not need X to run) but it is NOT an easy task for Linux newbies.. So.. If you are up to it, here is what you need to do.

      1- First you need to create a database for the application - then Run the SQL Create Tables script found within the ./Install/ folder on the database you just created (you may need to add a line 'use timeentry;' to the sql script file) Just run the correct script for the platform you are using.   So...... MySql would be something like this:

      $ mysqladmin -uroot create timeentry

      $ mysql timeentry -uroot -e"GRANT ALL ON timeenty.* TO username@localhost IDENTIFIED BY 'password'

      $ mysql < ./Install/CreateTables-MySQL.sql 

      2- Unzip Tomcat found in the zip file ../Install/Install.zip. Save the jakarta-tomcat-5.5.7 folder to someplace in your file system.

      3- Edit file /jakarta-tomcat-5.5.7/webapps/ROOT/WEB-INF/ConfigFile1.xml in your favorite text editor. Review the file very closely. Change the <Dirver> tag if you are not using MySQL to the correct JDBC class name. Change the <URL> tag as needed to point to the data-source you created above. Change ALL THE file paths to point to the location you placed the jakarta-tomcat-5.5.7 folder. If you get ANY of them wrong, web time entry will not work!  Look at your changes very closely! 

      4- Edit file /jakarta-tomcat-5.5.7/webapps/ROOT/WEB-INF/web.xml. Again, change ALL THE file paths to point to the location you placed the jakarta-tomcat-5.5.7 folder. And Again, if you get any of them wrong, web time entry will not work!

      5- Set your JAVA_HOME environment variable to point to your JDK. Something like:

      $ SET JAVA_HOME=/usr/local/java/jdk1.6/ (or whatever)

      6- chmod on Tomcat for all Tomcat executables:

      $ chmod a+x ./jakarta-tomcat-5.5.7/bin/*.sh

      7- Try Starting Tomcat 

      $ ./jakarta-tomcat-5.5.7/bin/startup.sh

      And that should do it! If things don't work you can; 1- look at the Tomcat logs to see what is up OR 2 - better yet, Install X and use the GUI installer (its really easy to use!)

      See Ya and good luck!
      Paul.

       

Log in to post a comment.