PDA

View Full Version : New Debian-Linux User problem.


rsharpe
02-19-2008, 02:13 PM
So I did manage to get the server running in the terminal. I can see that it is working atleast the Tivo sees the server and lists it in "now playing".

I can't figure out what else I have to do to get the gui working though. I am sure this is just me being a newb to linux. Can someone please give the the fix for this?

NJLTServer:/usr/share/galleon/bin# sh gui.sh
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(lib gcj.so.70)
at java.awt.Window.<init>(libgcj.so.70)
at java.awt.Frame.<init>(libgcj.so.70)
at java.awt.Frame.<init>(libgcj.so.70)
at javax.swing.SwingUtilities$OwnerFrame.<init>(libgcj.so.70)
at javax.swing.SwingUtilities.getOwnerFrame(libgcj.so.70)
at javax.swing.JWindow.<init>(libgcj.so.70)
at org.lnicholls.galleon.gui.Galleon$SplashWindow.<init>(Galleon.java:89)
at org.lnicholls.galleon.gui.Galleon.<clinit>(Galleon.java:110)
at java.lang.Class.initializeClass(libgcj.so.70)
Caused by: java.lang.UnsatisfiedLinkError: libgtkpeer: libgtkpeer.so: cannot open shared object file: No such file or directory
at java.lang.Runtime._load(libgcj.so.70)
at java.lang.Runtime.loadLibrary(libgcj.so.70)
at java.lang.System.loadLibrary(libgcj.so.70)
at gnu.java.awt.peer.gtk.GtkToolkit.<clinit>(libgcj.so.70)
at java.lang.Class.initializeClass(libgcj.so.70)
at java.lang.Class.forName(libgcj.so.70)
at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70)
...10 more
NJLTServer:/usr/share/galleon/bin#

windracer
02-19-2008, 04:23 PM
It looks like you're using GCJ (GNU Compiler for Java). Try installing the Sun JRE.

rsharpe
02-19-2008, 04:37 PM
I did install the sun JRE. I also pointed the run.sh and gui.sh files to the Sun JRE. Is there a main system file I need to do that with?

windracer
02-19-2008, 08:14 PM
If you do a 'which java' from the command-line, is it finding the JRE in the right place? You might also do a 'java -version' to make sure you're running the version you think you are.

rsharpe
02-19-2008, 08:24 PM
I uninstalled GJC and reinstalled the jre. The install had no errors and I can bring up the java gui from the directory. When try "java version" from the command line it says "command not found". "which java" just returns to the prompt without doing anything.

Thanks for your help btw.

windracer
02-19-2008, 09:24 PM
It's 'java -version' (I think you missed the dash). It should spit out something like:

java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)

The 'which' result just means the java executable isn't in your path. On my Ubuntu installation, it's in /usr/bin so it's in the path.

How about 'echo $JAVA_HOME'?

rsharpe
02-20-2008, 12:05 AM
It's 'java -version' (I think you missed the dash). It should spit out something like:

java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)

The 'which' result just means the java executable isn't in your path. On my Ubuntu installation, it's in /usr/bin so it's in the path.

How about 'echo $JAVA_HOME'?


You hit the nail on the head! For some reason (probably newbie error) the files that were supposed to be in /usr/bin and lib were not there. Once I put them in there it now runs.

Thanks again

The gui says it can't connect to the server but I will tinker around with that for a while see if I can get it going.

windracer
02-20-2008, 08:30 AM
Here's a post I wrote a few months ago about getting Galleon to run on Ubuntu. It might contain some more useful tips for you.

http://www.tivocommunity.com/tivo-vb/showthread.php?p=5601926&&#post5601926