Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-15-2009, 01:14 PM   #1
LQ Newbie
Registered: Aug 2008
Posts: 3

Rep: Reputation: 0
java problem - gcaldaemon

I'm trying to install and run gcaldaemon. I'm having trouble getting the program to find java. I've gotten help finding the path to java, and making it work once [detailed below], but I can't seem to make the path to java permanent, so each time I restart, or even after I've started gcaldaemon [] it loses the path to java and I get an error.

I knew that there was a problem early on because one of the first instructions for installing gcaldaemon is to confirm java. When I typed "java -version" and it returns:

andre@andre-laptop:~$ java -version
The program 'java' can be found in the following packages:
* gij-4.3
* java-gcj-compat-headless
* openjdk-6-jre-headless
* cacao
* gij-4.2
* jamvm
* kaffe
Try: sudo apt-get install <selected package>
bash: java: command not found

I had installed sun-java6-bin, -jre, and -plugin via synaptic.

Next, I confirmed that package "sun-java6-bin" properly installed:
dpkg -l sun-java6-bin
which shows
andre@andre-laptop:~$ dpkg -l sun-java6-bin
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
ii sun-java6-bin 6-13-1 Sun Java(TM) Runtime Environment (JRE) 6 (ar

Then, to find the file "java" in the bin directory:
andre@andre-laptop:~$ dpkg -L sun-java6-bin |grep bin/java$




Then, to set the PATH I ran:
andre@andre-laptop:~$ /usr/lib/jvm/java-6-sun- -version

java version "1.6.0_13"

Java(TM) SE Runtime Environment (build 1.6.0_13-b03)

Java HotSpot(TM) Server VM (build 11.3-b02, mixed mode)

andre@andre-laptop:~$ export PATH=$PATH:/usr/lib/jvm/java-6-sun-

At which point, the command “java -version” works, returning:

andre@andre-laptop:~$ java -version

java version "1.6.0_13"

Java(TM) SE Runtime Environment (build 1.6.0_13-b03)

Java HotSpot(TM) Server VM (build 11.3-b02, mixed mode)


And at this point I could run the gcaldaemon pieces that I was trying to do in the installation and set-up [so, first running “”, and later “”], but they only run once, and then I can't even get 'java -version' to return anything other than the original error that I got at the top, and when running the it gets started, but then when it trys to execute one of the commands it gets a java error

so, running “” returns:

andre@andre-laptop:/usr/local/sbin/GCALDaemon/bin$ ./

INFO | GCALDaemon V1.0 beta 16 starting...

INFO | RSS/ATOM feed converter enabled.

INFO | Local time zone is Central Standard Time.

INFO | HTTP server starting on port 9090...

WARN | Set the 'http.allowed.hostnames' parameter to limit remote access.

INFO | HTTP server started successfully.

INFO | Start listening file /usr/local/sbin/GCALDaemon/google.ics...

INFO | File listener started successfully.

INFO | Offline file synchronization enabled.

INFO | LDAP server disabled.

INFO | Gmail notifier disabled.

INFO | Sendmail service disabled.

INFO | Mail terminal disabled.

WARN | Received file from Google:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" ""><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8">

<title>Calendar Error</title>

<style type="text/css">

body,td,div,.p,a,font,span {font-family: arial,sans-serif}

.bubble {background-color:#C3D9FF}

.tl {background-image: url(/calendar/images/corner_tl_gmail.gif);

background-position:top left;background-repeat:no-repeat}

.tr {background-image: url(/calendar/images/corner_tr_gmail.gif);

background-position:top right;background-repeat:no-repeat}

.bl {background-image: url(/calendar/images/corner_bl_gmail.gif);

background-position:bottom left;background-repeat:no-repeat}

.br {background-image: url(/calendar/images/corner_br_gmail.gif);

background-position:bottom right}

.tl, .tr, .bl, .br {background-repeat:no-repeat}


<body bgcolor="#ffffff" style="margin-top:2px; "><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0"><tr valign="top"><td width="1%"><a href=""><img border="0" width="143" height="59" align="left" vspace="10" alt="Google Calendar" src="/calendar/images/calendar_sm2_en.gif"></a></td>

<td width="99%" bgcolor="#ffffff" valign="top"><table width="100%" cellpadding="1"><tr valign="bottom"><td><div align="right">&nbsp;</div></td></tr>

<tr><td nowrap><table width="100%" align="center" cellpadding="0" cellspacing="0" style="margin-bottom:5px;background:#C3D9FF"><tr><td class="bubble tl" width="4"></td>

<td class="bubble" rowspan="2" style="font-family:arial;text-align:left;font-weight:bold;padding:3px,0px;"><b>Calendar Error</b></td>

<td class="bubble tr" width="4"></td></tr>

<tr><td class="bubble bl" width="4"></td>

<td class="bubble br" width="4"></td></tr></table></td></tr></table></td></tr></table>


<table width="94%" border="0" align="center" cellpadding="5" cellspacing="0"><tr valign="top"><td>Calendar Error</td></tr>



<table width="95%" align="center" cellpadding="3" cellspacing="0" style="margin-bottom:5px;background:#C3D9FF"><tr><td class="bubble tl" width="4"></td>

<td class="bubble" rowspan="2" style="font-family:arial;text-align:center;"><font size="-1" color="#666">&copy;2009

Google -

<a href="">Google Home</a></font></td>

<td class="bubble tr" width="4"></td></tr>

<tr><td class="bubble bl" width="4"></td>

<td class="bubble br" width="4"></td></tr></table></body></html>

So, this is where I'm stuck. My guess is that I've failed to do something that allows gcaldaemon to find java permanently, but I'm not sure.

Advice? Other info that would be needed to diagnose my situation?
Old 06-15-2009, 03:38 PM   #2
Registered: Apr 2004
Distribution: slackware/FreeBSD/Vector
Posts: 291

Rep: Reputation: 52
I'm no programmer, but when I have trouble getting a program to find another program I just create symlinks using the ln -s command on the directory you want to link over. I'm not familiar with the directory locations, but a simple fix would be to symlink the actual location of the java bin with the location the gcaldaemon is wanting.
Old 06-16-2009, 07:49 AM   #3
LQ Newbie
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
thanks for the suggestion. someone else responded with this advice, which worked for me:

So all you will need to do is add the following line anywhere in that file using your favorite text editor, and save it. To test it, open up a new terminal and run 'java -version', and see if the output is as you expect.

export PATH=$PATH:/usr/lib/jvm/java-6-sun-

So your file might look like this...

# my favorite aliases
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

#export path for gcaldaemon
export PATH=$PATH:/usr/lib/jvm/java-6-sun-
Old 06-19-2009, 08:27 AM   #4
LQ Newbie
Registered: Jun 2009
Location: Alliance College
Distribution: Ubuntu 9.04 64bit
Posts: 3

Rep: Reputation: 0
I'm new to LinuxQuestions and am hoping to get some help on a java program that looks similar to the above problem.

Trying to launch Lasyk's My Theme Creator linux distro. Unzipped file to yield 2 items: mTC.jar and lib folder. Notes say to keep lib folder with mTC.jar in same directory. Must have java 1.5 or greater. Terminal readout follows:

chris@hpdv5k:~$ java -version
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)

chris@hpdv5k:~$ cd /home/chris/MCDApps/MTC
chris@hpdv5k:~/MCDApps/MTC$ java -jar mTC.jar
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no jdic in java.library.path
at java.lang.ClassLoader.loadLibrary( :1709)
at java.lang.Runtime.loadLibrary0(
at java.lang.System.loadLibrary(
at org.jdesktop.jdic.browser.internal.WebBrowserUtil$ Source)
at Method)
at org.jdesktop.jdic.browser.internal.WebBrowserUtil. loadLibrary(Unknown Source)
at org.jdesktop.jdic.browser.internal.WebBrowserUtil. getDefaultBrowserPath(Unknown Source)
at org.jdesktop.jdic.browser.BrowserEngineManager.sel ectEngine(Unknown Source)
at org.jdesktop.jdic.browser.BrowserEngineManager.get ActiveEngine(Unknown Source)
at mTC.LSKInterface.initLSKComponents(LSKInterface.ja va:2447)
at mTC.LSKInterface.<init>(
at mTC.LSKInterface$
at java.awt.event.InvocationEvent.dispatch(Invocation
at java.awt.EventQueue.dispatchEvent( 597)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(
at java.awt.EventDispatchThread.pumpEventsForFilter(E
at java.awt.EventDispatchThread.pumpEventsForHierarch y(
at java.awt.EventDispatchThread.pumpEvents(EventDispa
at java.awt.EventDispatchThread.pumpEvents(EventDispa

"no jdic in java.library.path" seems to be problem. A solution proposed by a java forum said "For solaris/unix/linux, put folder contains into the LD_LIBRARY_PATH"

Only 3 exist on my puter in the following folders:
/usr/lib/jni, /usr/lib/frostwire and /home/chris/MCDApps/MTC/lib/linux/x86

My Theme Creator will not even launch. I don't want to screw anything up. I can't help thinking that the mtc lib must somehow be moved to the /usr/lib/... folder.

Anyone got any suggestions?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I log in as root? Unpacking Gcaldaemon trekfan7 Linux - Newbie 12 01-06-2009 12:29 PM
Attempting to install Gcaldaemon trekfan7 Linux - Newbie 0 03-05-2008 08:24 PM
GCALDaemon Help zoso375 Linux - Software 1 11-05-2007 03:52 AM
LXer: Syncing magic with GCALDaemon LXer Syndicated Linux News 0 03-05-2007 05:16 AM
problem with java JIV Linux - General 2 08-18-2003 04:41 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration