CentOS Installation Ganttproject

Source: Internet
Author: User
Tags ganttproject

reference to the http://gaoxingf.blog.51cto.com/612518/191288/;

My Java has already been installed.

Problem: Root #ganttproject hint org.bardsoftware.eclipsito.Boot loss. Run OK under window.

Resolution: Compare the files in the folder, there is a. bat under window, look at the path setting for Org.bardsoftware.eclipsito.Boot. and CentOS, with gedit view Ganttproject, See also some path settings,

#!/bin/bash
# Copyright BarD Software s.r.o
# This script launches Ganttproject. It can be symlinked and can is ran from
# any working directory

Script_file= "$"

Working_dir= "$ (PWD)"
# We want to find the directory where the real script file resides.
# If Real file is symlinked (possibly many times) then we need to follow
# symlinks until we reach the real script
# After the We run PWD to get directory path
CD "$ (dirname" $SCRIPT _file ")"
Script_file= "$ (basename" $SCRIPT _file ")"

While [-L "$SCRIPT _file"]; Do
Script_file= "$ (readlink" $SCRIPT _file ")"
CD "$ (dirname" $SCRIPT _file ")"
Script_file= "$ (basename" $SCRIPT _file ")"
Done

Gp_home= "$ (PWD)"

CD "$WORKING _dir"

# Create Log Directory
Gp_log_dir= "$HOME/.ganttproject.d"
# Check If log dir is present (or create it)
if [!-D $GP _log_dir]; Then
If [-e $GP _log_dir]; Then
echo "File $GP _log_dir exists and is not a directory" >&2
Exit 1
Fi
if! mkdir $GP _log_dir; Then
echo "Could not create $GP _log_dir directory" >&2
Exit 1
Fi
Fi

# Create unique name for log file
log_file= "$GP _log_dir/.ganttproject-" $ (date +%y%m%d%h%m%s) ". LOG"
If [-E "$LOG _file"] && [!-W "$LOG _file"]; Then
echo "Log file $LOG _file is not writable" >2
Exit 1
Fi

# Find usable Java executable
If [-Z "$JAVA _home"]; Then
java_command=$ (which Java)
If ["1" = "$?"]; Then
echo "No executable Java found. Please set java_home variable ">&2
Exit 1
Fi
Else
java_command= $JAVA _home/bin/java
Fi
if [!-e "$JAVA _command"]; Then
echo "$JAVA _command does not exist" >&2
Exit 1
Fi
if [!-X "$JAVA _command"]; Then
echo "$JAVA _command is not executable" >&2
Exit 1
Fi

Classpath= "$CLASSPATH: $GP _home/eclipsito.jar: $GP _home/lib/core: $GP _home"/** Modify here **/
Export CLASSPATH
Configuration_file=ganttproject-eclipsito-config.xml
Boot_class=org.bardsoftware.eclipsito.boot

java_args= "-xmx256m $BOOT _class $CONFIGURATION _file-log true-log_file $LOG _file"
If [-n] $ (echo \ "$*\" | sed-n '/\ (^\|\s\)-/{p;} ') "]; Then
"$JAVA _command" $JAVA _args "[Email protected]"
Else
"$JAVA _command" $JAVA _args "[email protected]" &
Fi

CentOS Installation Ganttproject

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.