TiVo Community Forum banner
1 - 4 of 4 Posts

· Registered
Joined
·
12 Posts
Discussion Starter · #1 ·
Let me be the first to say that this is probably something incredibly obvious, as I hate classpath errors and they're especially annoying when you see how simple the solution is. That said, I'm seeing the following after running my ant compile script on FreeBSD:

[Loaded sun.misc.URLClassPath$FileLoader from /usr/local/jdk1.4.2/jre/lib/rt.jar]
Exception in thread "main" java.lang.NoClassDefFoundError: org/lnicholls/javahmo/server/Server
[Loaded java.lang.StackTraceElement from /usr/local/jdk1.4.2/jre/lib/rt.jar]
[Loaded java.lang.Shutdown from /usr/local/jdk1.4.2/jre/lib/rt.jar]
[Loaded java.lang.Shutdown$Lock from /usr/local/jdk1.4.2/jre/lib/rt.jar]


Obviously, this is no good. An excerpt from my /etc/profile reads as follows:

JAVA_HOME=/usr/local/jdk1.4.2
export JAVA_HOME

CLASSPATH=.:${JAVA_HOME}/jre/lib:/usr/share/javaHMO/build/lib
export CLASSPATH


So, I guess I'm pointing to the right place, but since java is sooo good at telling me exactly which JAR it's looking for, I have no idea what it's missing out on.

Any help with this would be just ducky.
 

· Registered
Joined
·
132 Posts
If your TiVo has version 7.2.1 software, rather install Galleon: http://galleon.tv

Otherwise, you need to ensure that all of the .jar files in the JavaHMO lib directory are added to the CLASSPATH environment variable:
CLASSPATH=.:${JAVA_HOME}/jre/lib:/usr/share/javaHMO/conf
for j in /usr/share/javaHMO/lib/*.jar
do
CLASSPATH=$CLASSPATH:$j
done
export CLASSPATH
 

· Registered
Joined
·
12 Posts
Discussion Starter · #4 ·
Much better! Still getting the following:

[Loaded java.awt.font.TransformAttribute from /usr/local/jdk1.4.2/jre/lib/rt.jar]
[Loaded java.awt.geom.AffineTransform from /usr/local/jdk1.4.2/jre/lib/rt.jar]
[Loaded java.awt.font.TextAttribute from /usr/local/jdk1.4.2/jre/lib/rt.jar]
[Loaded sun.java2d.FontSupport from /usr/local/jdk1.4.2/jre/lib/rt.jar]
[Loaded sun.java2d.SunGraphicsEnvironment from /usr/local/jdk1.4.2/jre/lib/rt.jar]
[Loaded sun.awt.X11GraphicsEnvironment from /usr/local/jdk1.4.2/jre/lib/rt.jar]
[Loaded sun.awt.font.NativeFontWrapper from /usr/local/jdk1.4.2/jre/lib/rt.jar]
[Loaded java.lang.InternalError from /usr/local/jdk1.4.2/jre/lib/rt.jar]
Exception in thread "main"
 
1 - 4 of 4 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top