Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-09-2007
fgarcia fgarcia is offline
Registered User
 
Name: Fernando García Gómez
Organization: Recreativos Franco S.A.
Project: SLUG
 
Join Date: Dec 2005
Location: Spain (Madrid)
Posts: 51
Problem executing IceJ

Hi,
I have been developing aplications with Ice in C++, and now I am trying to use java with eclipse in Linux instead of C++. I hadn't problems with the installation, and the application I am now developing compile perfectly, but when I try to execute it, it throws this exception:
> java.lang.NoClassDefFoundError: IceStorm/NoSuchTopic: Ice/UserException

If I comment the code using IceStorm, then I get this exception:
> java.lang.NoClassDefFoundError: Ice/Object

or the same, but with Ice/Util instead of Ice/Object

I have added the external jar and all the configuration of the buildpath seems to be right, so I don't know what is happening.

Do you have any idea?

Thanks for your time
__________________
Name: Fernando García Gómez
Company: UPM (Politecnic University of Madrid), electronic engineering department. (http://www.die.upm.es/ )
Project: SLUG (not url yet)
Reply With Quote
  #2 (permalink)  
Old 02-09-2007
davidcr1983 davidcr1983 is offline
Registered User
 
Name: David Vallejo Fernández
Organization: Universidad de Castilla-La Mancha
Project: basic-fipa-multiagentsystem
 
Join Date: Jul 2005
Location: Ciudad Real (Spain)
Posts: 41
Hello!

Have you established the classpath including the directory of the generated code and the externals .jar when you run your application?

In my case, I use the following command included in my Makefile:

java -classpath classes/:/usr/share/java/Ice.jar Agent

Regards.
__________________
Full name: David Vallejo Fernández
University of Castilla-La Mancha (Spain)
ICE Project: basic-fipa-multiagentsystem
Reply With Quote
  #3 (permalink)  
Old 02-09-2007
fgarcia fgarcia is offline
Registered User
 
Name: Fernando García Gómez
Organization: Recreativos Franco S.A.
Project: SLUG
 
Join Date: Dec 2005
Location: Spain (Madrid)
Posts: 51
Hi David,
yes I have included all the necessary .jar files in the eclipse project, I am using IceEJ show I have included /usr/share/java/IceE-1.1.0.jar. The problem is that it seems to recognize all the paths because I haven't problems during the compilation, the problems appears at the execution.

Thanks (gracias)
__________________
Name: Fernando García Gómez
Company: UPM (Politecnic University of Madrid), electronic engineering department. (http://www.die.upm.es/ )
Project: SLUG (not url yet)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IceJ and Eclipse albertods Help Center 0 10-19-2006 01:08 PM
IceJ 3.1.0 Problem rc_hz Help Center 2 08-17-2006 05:47 AM
Too many open files with IceJ lucsat Help Center 4 11-01-2005 08:34 AM
IceJ and Ice C++ damingyipai Help Center 2 03-19-2004 12:37 AM
DB 4.0.14 and IceJ problems christoph Bug Reports 5 03-03-2003 04:54 AM


All times are GMT -4. The time now is 12:10 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.