Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6819257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:17:03+00:00 2026-05-26T21:17:03+00:00

I am trying to run a command java -jar ccu-historian.jar as launch item When

  • 0

I am trying to run a command

java -jar ccu-historian.jar 

as launch item

When I run the command on the commandline everything is working

When I try to run it as launchAgent via

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.bob.ccuhistorian</string>
<key>RunAtLoad</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/java</string>
<string>-jar</string>
<string>/Users/user/Applications/ccuhistorian/ccu-historian.jar</string>
</array>
</dict>
</plist>

I get the error message that it cannot run

13.11.11 15:15:34   com.bob[1445]   15:15:34|SEVERE |Exception: Can't access configuration file ccu-historian.config

the file is in the same folder and I tried changing via chmod 777 – no change, and it can be read when calling from the command line – what am I doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:17:04+00:00Added an answer on May 26, 2026 at 9:17 pm

    I found a working solution:

    writing a bash-script

    #!/bin/bash
    cd /Users/user/Applications/ccuhistorian/
    /usr/bin/java -jar ccu-historian.jar
    

    and calling

    /path/to/script.sh
    

    as only parameter to the XML is working, but shouldn’t be there a more elegant solution?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to run this dreadfully simple command in Bash java -cp nasa-top-secret.jar
I'm trying to run a .jar file with the command java -jar Filename.jar, but
I am trying to run a java based tool using a command line syntax
I'm trying to run a sample Java application from the command promopt but I'm
I'm trying to run a java process via Powershell in Windows XP. Here's the
I'm using Java 1.6 , Eclipse , Windows 7. I'm trying to run commands
Trying to run the following command in php to run powershell command... the following
I'm trying to run a shell command using the backtick operators, but the fact
I am trying to run the wsdl2java command on a WSDL file that was
I'm trying to run an interactive command through paramiko. The cmd execution tries to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.