LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-03-2007, 06:03 AM   #1
immortaltechnique
Member
 
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Rep: Reputation: 32
Installing Cafe Pilot java error


Hi thanks for responding to my post on linux internet cafe softwares.

Now i found Cafe pilot both under linux and windows but when i try to install the linux version after unzipping :

Code:
Exception in thread "main" java.lang.NoClassDefFoundError: CafePilot_Server.jar
   at gnu.java.lang.MainThread.run(libgcj.so.8rh)
Caused by: java.lang.ClassNotFoundException: CafePilot_Server.jar not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./,file:/root/CafePilot_Server.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.8rh)
   at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.8rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.8rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.8rh)
   at gnu.java.lang.MainThread.run(libgcj.so.8rh)
Am really not all conversant with java and i was wondering if anyone in the forum can help me understand what the error is all about and how to fix it.


Thanks..
 
Old 12-03-2007, 08:30 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
Every time you run a Java program, the java executable is called with the name of a class containing the program's main() method.
java then looks through each entry on the classpath to find this "class" (which may be in a .class file or part of a .jar archive file), which it can then run.

java.lang.ClassNotFoundException: means that the class couldn't be found. So it looks like your classpath isn't set up properly.

try this:
Code:
export CLASSPATH=$CLASSPATH:.
This will add the current directory (.) to the classpath. This is included by default in Windows, but not in Linux, so it could well be your problem. If you are running the installer from a GUI, then you can add this to your .bashrc file in your home directory (note the period), and then log out and log back in.

You should then be able to run the installer.

If that still doesn't work, please post the results of this command:
Code:
echo $CLASSPATH
Also, it may help to know the commands you are using to run the installer.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
HELP: Made a HUGE ERROR with ROOT installing JAVA bettyhills Linux - Software 3 08-06-2007 07:23 PM
error installing java sdk on debian packinNoVa Debian 2 02-07-2006 08:26 AM
Error installing java1_4_2 and evolution pilot Drewer SUSE / openSUSE 4 01-21-2006 08:26 PM
dirname error when installing Java JRE jrdioko Linux - Software 0 05-20-2005 06:35 PM
problems while installing pilot-link TheSpork Linux - Software 6 06-18-2004 06:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:37 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration