LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   running java based programs (https://www.linuxquestions.org/questions/slackware-14/running-java-based-programs-406252/)

linuxhippy 01-21-2006 02:20 PM

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?

kodon 01-21-2006 02:26 PM

are
/usr/lib/java/bin
and
/usr/lib/java/jre/bin
in your path?

guedellas 01-21-2006 02:27 PM

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/
export PATH


linuxhippy 01-21-2006 02:36 PM

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

gilead 01-21-2006 03:10 PM

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`?

linuxhippy 01-21-2006 07:51 PM

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

gilead 01-21-2006 11:27 PM

If you're running it from the directory where it was installed (ie where the jar files are), try `export CLASSPATH=.`

linuxhippy 01-22-2006 05:50 PM

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
.

justwantin 01-22-2006 11:45 PM

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.