running java based programs
I just re-installed Slack 10.2 on an old lappy. I had an offline web page spider on there called Sunrise (it makes pdb files which plucker on your pda can read). It's free at sourceforge. The program needs java 1.5 or greater to work. Slack 10.2 has jre-1.5.04 installed. I get this error from CLI now (it worked before a re-install):
sunrise-desktop.sh: line 1: java: command not found How can I get this program to work? |
are
/usr/lib/java/bin and /usr/lib/java/jre/bin in your path? |
maybe you have to add the JAVA_PATH to your path in your ~/.bashrc or the shell you're using.
Code:
set PATH=/usr/bin/:[lot of stuff here]:/usr/java/jre-1.5.04/bin/ |
That error was a path problem (added to ~/.bash_profile). Now I get a different error:
Exception in thread "main" java.lang.NoClassDefFoundError: com/distantchord/sunrise/apps/Desktop |
Sounds like your classpath isn't set up correctly - what's in the install docs for Sunrise about path/classpath? What do you get if you type `echo $CLASSPATH`?
|
There isn't much to read with sunrise-it was developed for Win and now they put it out temporarily to the Linux world as a teaser to get people interested in free offline pda reading with their software before they charge money. I don't get anything in my terminal when I type:
echo $CLASSPATH The link for sunrise on Linux is: http://prdownloads.sourceforge.net/s...ar.gz?download |
If you're running it from the directory where it was installed (ie where the jar files are), try `export CLASSPATH=.`
|
Didn't work, I still get:
Exception in thread "main" java.lang.NoClassDefFoundError: com/distantchord/sunrise/apps/Desktop Also, I get this now: bash-3.00$ echo $CLASSPATH . |
I use a java based program, Moneydance, for personal finance management. I just create a sym link to the required java. I'm at work but I think it would have been something like "ln -s /usr/lib/jre jre". Might have the jre wrong though, might be something else.
|
All times are GMT -5. The time now is 10:12 AM. |