List Info

Thread: Eclipse classpath problems




Eclipse classpath problems
user name
2007-02-13 03:23:22
Hello,
I have this problem with sip communicator.
I tried to add new project to my Eclipse according to the
instructions at
http://www.sip-communicator.org/inde
x.php/Documentation/ConfigureEclipseNew.
Project was created correctly, but during the compilation
appeared
problems with classpaths and libraries. In .classpath file
are
references to the lib files (lib directory), which aren't
present in
that folder, so build fails on this error. I have these 28
errors after building.


Project sip-communicator is missing required library:
'lib/AppleJavaExtensions.jar'		sip-communicator	Build
path	1171357877375	9652
Project sip-communicator is missing required library:
'lib/bcprov-jdk14-130.jar'		sip-communicator	Build
path	1171357877375	9653
Project sip-communicator is missing required library:
'lib/cindy.jar'				sip-communicator	Build
path	1171357877375	9654
Project sip-communicator is missing required library:
'lib/commons-logging.jar'			sip-communicator	Build
path	1171357877375	9655
Project sip-communicator is missing required library:
'lib/concurrent.jar'			sip-communicator	Build
path	1171357877375	9656
Project sip-communicator is missing required library:
'lib/growl.jar'				sip-communicator	Build
path	1171357877375	9657
Project sip-communicator is missing required library:
'lib/JainSipApi1.2.jar'			sip-communicator	Build
path	1171357877375	9658
Project sip-communicator is missing required library:
'lib/JainSipRi1.2.jar'			sip-communicator	Build
path	1171357877375	9659
Project sip-communicator is missing required library:
'lib/jmf.jar'				sip-communicator	Build
path	1171357877375	9660
Project sip-communicator is missing required library:
'lib/jml-1.0b1.jar'			sip-communicator	Build
path	1171357877375	9661
Project sip-communicator is missing required library:
'lib/joscar-0.9.4-cvs-bin.jar'		sip-communicator	Build
path	1171357877375	9662
Project sip-communicator is missing required library:
'lib/jspeex.jar'				sip-communicator	Build
path	1171357877375	9663
Project sip-communicator is missing required library:
'lib/junit.jar'				sip-communicator	Build
path	1171357877375	9664
Project sip-communicator is missing required library:
'lib/log4j-1.2.8.jar'			sip-communicator	Build
path	1171357877375	9665
Project sip-communicator is missing required library:
'lib/nist-sdp-1.0.jar'			sip-communicator	Build
path	1171357877375	9666
Project sip-communicator is missing required library:
'lib/os-specific/linux/jmf.jar'		sip-communicator	Build
path	1171357877375	9674
Project sip-communicator is missing required library:
'lib/os-specific/mac/jmf.jar'		sip-communicator	Build
path	1171357877375	9675
Project sip-communicator is missing required library:
'lib/os-specific/solaris/jmf.jar'		sip-communicator	Build
path	1171357877375	9676
Project sip-communicator is missing required library:
'lib/os-specific/windows/jmf.jar'		sip-communicator	Build
path	1171357877375	9650
Project sip-communicator is missing required library:
'lib/os-specific/windows/sound.jar'	sip-communicator	Build
path	1171357877375	9651
Project sip-communicator is missing required library:
'lib/oscar-aim.jar'			sip-communicator	Build
path	1171357877375	9667
Project sip-communicator is missing required library:
'lib/retroweaver-rt.jar'			sip-communicator	Build
path	1171357877375	9669
Project sip-communicator is missing required library:
'lib/retroweaver.jar'			sip-communicator	Build
path	1171357877375	9668
Project sip-communicator is missing required library:
'lib/smack.jar'				sip-communicator	Build
path	1171357877375	9670
Project sip-communicator is missing required library:
'lib/smackx.jar'				sip-communicator	Build
path	1171357877375	9671
Project sip-communicator is missing required library:
'lib/Stun4J.jar'				sip-communicator	Build
path	1171357877375	9672
Project sip-communicator is missing required library:
'lib/ymsg_network_v0_61.jar'		sip-communicator	Build
path	1171357877375	9673



I found some libraries in lib/installer-exclude and in
lib/os-specific/... directories, but after building i have
still these errors:

Project sip-communicator is missing required library:
'lib/joscar-0.9.4-cvs-bin.jar'	sip-communicator	Build
path	1171358495218	9686
Project sip-communicator is missing required library:
'lib/oscar-aim.jar'		sip-communicator	Build
path	1171358495218	9687
Project sip-communicator is missing required library:
'lib/retroweaver-rt.jar'		sip-communicator	Build
path	1171358495218	9689
Project sip-communicator is missing required library:
'lib/retroweaver.jar'		sip-communicator	Build
path	1171358495218	9688

What I have to do with these libraries?
Could someone help me please?


Tomas Matejovic

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesip-communicator.dev.java.net
For additional commands, e-mail: dev-helpsip-communicator.dev.java.net


Re: Eclipse classpath problems
user name
2007-02-13 03:48:13
Hi Tomas,

Recently we have made some changes to the location of some
of the 
libraries and I forgot to update the eclipse .classpath file
after that. 
  Sorry for that! If you make an update it should be ok now.
The only 
jar that you should add in plus to your classpath is the
ant.jar.

Good luck.
Yana


Tomas Matejovic wrote:
> Hello,
> I have this problem with sip communicator.
> I tried to add new project to my Eclipse according to
the instructions at
> http://www.sip-communicator.org/inde
x.php/Documentation/ConfigureEclipseNew. 
> 
> Project was created correctly, but during the
compilation appeared
> problems with classpaths and libraries. In .classpath
file are
> references to the lib files (lib directory), which
aren't present in
> that folder, so build fails on this error. I have these
28 errors after 
> building.
> 
> 
> Project sip-communicator is missing required library: 
> 'lib/AppleJavaExtensions.jar'        sip-communicator  
 Build path    
> 1171357877375    9652
> Project sip-communicator is missing required library: 
> 'lib/bcprov-jdk14-130.jar'        sip-communicator   
Build path    
> 1171357877375    9653
> Project sip-communicator is missing required library: 
> 'lib/cindy.jar'                sip-communicator   
Build path    
> 1171357877375    9654
> Project sip-communicator is missing required library: 
> 'lib/commons-logging.jar'            sip-communicator  
 Build path    
> 1171357877375    9655
> Project sip-communicator is missing required library: 
> 'lib/concurrent.jar'            sip-communicator   
Build path    
> 1171357877375    9656
> Project sip-communicator is missing required library: 
> 'lib/growl.jar'                sip-communicator   
Build path    
> 1171357877375    9657
> Project sip-communicator is missing required library: 
> 'lib/JainSipApi1.2.jar'            sip-communicator   
Build path    
> 1171357877375    9658
> Project sip-communicator is missing required library: 
> 'lib/JainSipRi1.2.jar'            sip-communicator   
Build path    
> 1171357877375    9659
> Project sip-communicator is missing required library: 
> 'lib/jmf.jar'                sip-communicator    Build
path    
> 1171357877375    9660
> Project sip-communicator is missing required library: 
> 'lib/jml-1.0b1.jar'            sip-communicator   
Build path    
> 1171357877375    9661
> Project sip-communicator is missing required library: 
> 'lib/joscar-0.9.4-cvs-bin.jar'        sip-communicator 
  Build path    
> 1171357877375    9662
> Project sip-communicator is missing required library: 
> 'lib/jspeex.jar'                sip-communicator   
Build path    
> 1171357877375    9663
> Project sip-communicator is missing required library: 
> 'lib/junit.jar'                sip-communicator   
Build path    
> 1171357877375    9664
> Project sip-communicator is missing required library: 
> 'lib/log4j-1.2.8.jar'            sip-communicator   
Build path    
> 1171357877375    9665
> Project sip-communicator is missing required library: 
> 'lib/nist-sdp-1.0.jar'            sip-communicator   
Build path    
> 1171357877375    9666
> Project sip-communicator is missing required library: 
> 'lib/os-specific/linux/jmf.jar'        sip-communicator
   Build path    
> 1171357877375    9674
> Project sip-communicator is missing required library: 
> 'lib/os-specific/mac/jmf.jar'        sip-communicator  
 Build path    
> 1171357877375    9675
> Project sip-communicator is missing required library: 
> 'lib/os-specific/solaris/jmf.jar'       
sip-communicator    Build 
> path    1171357877375    9676
> Project sip-communicator is missing required library: 
> 'lib/os-specific/windows/jmf.jar'       
sip-communicator    Build 
> path    1171357877375    9650
> Project sip-communicator is missing required library: 
> 'lib/os-specific/windows/sound.jar'    sip-communicator
   Build path    
> 1171357877375    9651
> Project sip-communicator is missing required library: 
> 'lib/oscar-aim.jar'            sip-communicator   
Build path    
> 1171357877375    9667
> Project sip-communicator is missing required library: 
> 'lib/retroweaver-rt.jar'            sip-communicator   
Build path    
> 1171357877375    9669
> Project sip-communicator is missing required library: 
> 'lib/retroweaver.jar'            sip-communicator   
Build path    
> 1171357877375    9668
> Project sip-communicator is missing required library: 
> 'lib/smack.jar'                sip-communicator   
Build path    
> 1171357877375    9670
> Project sip-communicator is missing required library: 
> 'lib/smackx.jar'                sip-communicator   
Build path    
> 1171357877375    9671
> Project sip-communicator is missing required library: 
> 'lib/Stun4J.jar'                sip-communicator   
Build path    
> 1171357877375    9672
> Project sip-communicator is missing required library: 
> 'lib/ymsg_network_v0_61.jar'        sip-communicator   
Build path    
> 1171357877375    9673
> 
> 
> 
> I found some libraries in lib/installer-exclude and in

> lib/os-specific/... directories, but after building i
have still these 
> errors:
> 
> Project sip-communicator is missing required library: 
> 'lib/joscar-0.9.4-cvs-bin.jar'    sip-communicator   
Build path    
> 1171358495218    9686
> Project sip-communicator is missing required library: 
> 'lib/oscar-aim.jar'        sip-communicator    Build
path    
> 1171358495218    9687
> Project sip-communicator is missing required library: 
> 'lib/retroweaver-rt.jar'        sip-communicator   
Build path    
> 1171358495218    9689
> Project sip-communicator is missing required library: 
> 'lib/retroweaver.jar'        sip-communicator    Build
path    
> 1171358495218    9688
> 
> What I have to do with these libraries?
> Could someone help me please?
> 
> 
> Tomas Matejovic
> 
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: dev-unsubscribesip-communicator.dev.java.net
> For additional commands, e-mail: dev-helpsip-communicator.dev.java.net
> 
> 

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesip-communicator.dev.java.net
For additional commands, e-mail: dev-helpsip-communicator.dev.java.net


Eclipse and NetBean sample classpath issues
user name
2007-02-18 08:23:18
Hi again, everyone. I'm sorry that I've been too busy to do
anything on 
the project for some time. I noticed Yana updated the sample
Eclipse 
classpath earlier this week and I have just committed the
same change 
for the Netbeans sample.

If you use NetBeans, let me remind you to copy this
project.xml file 
from sandbox/ide/nbproject/ to sandbox/nbproject/ when
NetBeans is NOT 
RUNNING!

I used eclipse a lot until about 2 years ago, when I
switched to 
NetBeans. Since that time, I'm sure Eclipse has changed a
lot - Netbeans 
certainly has! This makes me hesitant to say anything about
the way 
Eclipse works, so please be patient if I don't get it
perfectly correct...

These two ide's have quite different philosophies and
architectures. I 
believe it is important that we reduce wasted time within
our project by 
trying hard to let everyone benefit from the best possible
ide setup. 
This is not a simple matter.

NetBeans is a pure java application. It makes sophisticated
use of 
ClassLoaders and runs debugged applications under completely
separate 
system processes via the JVM's remote debugging interface.
If you look 
at the build.xml for our project, you will see there is a
special ant 
target to setup the debug process managed by NetBeans.

This means something rather ugly - NetBeans needs THREE
different 
"classpaths" for a project... one to compile the
main source class 
files, one to compile the test source class files, and
another to allow 
the IDE to correalate the debugged JVM line numbers to the
source code. 
All three need to be independently "correct" - and
are often different.

Of course, if you ask NetBeans to create a new project for
you, all this 
ugly stuff is done "under the covers" by the
wizard and you don't see 
how complex it is. It is the price required to support a
sophisticated 
"non-standard" (to NetBeans) project under a
rather elegant execution 
and debugging environment. I haven't done it myself, but
this design 
allows you to attach the ide/debugger to an already-running
external 
process.

On the other hand (and I certainly don't want to start an
IDE-war 
here!), Eclipse is not "pure java" and its
build/debug architecture is 
more internalised than that of NetBeans. Although Eclipse
can run ant to 
build the project, that isn't what it does when you open the
project... 
it compiles all the source files against its own version of
the 
classpath. This is what is held in the
sandbox/ide/eclipse/.classpath 
file. The "classpathentry kind=lib" lines define
the classpath used to 
compile ALL the project sources (i.e. both main and test).
The 
"kind=src" lines are used by the editor and
debugger to resolve import 
statements. When you debug an application under Eclipse, the
ide needs 
to know everything because the debugged jvm runs within the
eclipse process.


Anyway, I have committed the equivalent classpath entries to
make 
NetBeans match the current Eclipse definitions. However, I
want to make 
those of you who are interested aware of several outstanding
issues that 
I haven't resolved...

1. I have NOT yet updated the build.xml target called
"debug-single". In 
other words, I am not sure that debugging a unit test under
NetBeans 
will be successful because the classpath and sourcepath
might not be 
correct. I have put this on my list of "things to
do".

2. The classpath list needs to (somehow) distinguish between
the main 
and test source trees. Eclipse doesn't care, but NetBeans
does. 
Currently, I've only separated junit and the compiled
classes of our own 
project. Are there any other jars that are needed
exclusively by one 
source set?

3. We really ought to keep the classpath list minimal. If
more than one 
jar contains the same fully-qualified class, we run the risk
of the two 
IDE's ClassLoaders loading different versions of the same
class.

4. Currently, the new classpath is very long and contains a
lot of 
platform-dependent jars. I am worried this is a bad idea,
beyond my 
point 3 above, but can't be sure yet.

Just a final thought. It ought to be possible to define a
Property (or 
several) that could be resolved by NetBeans when it opens
the project. 
Unfortunately, I haven't yet found a way to use the existing
properties 
within build.xml. This is because NetBeans processes
project.xml (with 
its classpaths) long before it gets to run ant against the
build.xml. In 
principle, we ought to be able to devise a set of properties
that 
NetBeans (and Eclipse) could resolve to the appropriate
classpaths when 
they open the sip-communicator project. Does anyone have any
idea 
whether this is possible, because it could reduce the risk
of 
introducing obscure ide-related debugging problems.

Regards,

Brian

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesip-communicator.dev.java.net
For additional commands, e-mail: dev-helpsip-communicator.dev.java.net


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )