LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-21-2006, 02:20 PM   #1
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Rep: Reputation: 47
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?
 
Old 01-21-2006, 02:26 PM   #2
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
are
/usr/lib/java/bin
and
/usr/lib/java/jre/bin
in your path?
 
Old 01-21-2006, 02:27 PM   #3
guedellas
Member
 
Registered: Dec 2005
Location: Espaņa
Distribution: Fedora Core 8 + Debian 4.0 + Vista
Posts: 61

Rep: Reputation: 15
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
 
Old 01-21-2006, 02:36 PM   #4
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
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
 
Old 01-21-2006, 03:10 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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`?
 
Old 01-21-2006, 07:51 PM   #6
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
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
 
Old 01-21-2006, 11:27 PM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
If you're running it from the directory where it was installed (ie where the jar files are), try `export CLASSPATH=.`
 
Old 01-22-2006, 05:50 PM   #8
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
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
.

Last edited by linuxhippy; 01-22-2006 at 05:52 PM.
 
Old 01-22-2006, 11:45 PM   #9
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 878

Rep: Reputation: 120Reputation: 120
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.

Last edited by justwantin; 01-22-2006 at 11:46 PM.
 
  


Reply



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
windows java based app running on fedora core 3? linuxmandrake Linux - Software 2 06-18-2005 11:10 AM
running windows based programs in linux gambit Linux - Newbie 3 05-17-2004 08:49 PM
need help on running windows-based programs nrjeromene Linux - Newbie 6 01-14-2004 09:23 PM
kde-based programs D - E - A - D broxys Linux - Software 24 08-03-2003 09:26 PM
Problems on running java programs indro Linux - General 1 07-19-2001 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:51 AM.

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