Skip to main content

Where do newbies start?????

3 replies [Last post]
siggyuke
Offline
Joined: 2007-10-08
Points: 0

HI Guys

First off I'm totally new to JXTA and so need to be treated as an idiot :o)

I downloaded the jxta2.4.1 version because I thought it'd be more stable than the 2.5RC3 and so better to learn with.

I also downloaded prog guides for 2.5 & 2.3 because I couldn't find one for 2.4.

My problem is that I can't get any of the example to work from either prog guide, because I keep running into deprecated class & method problems.

If I try compiling with -Xlint:unchecked I get:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Priority

(I'm using Netbeans6 beta 1 by the way.)

Can anyone offer any advice to a simple code example / app that'll compile & run using 2.4.1 that'll start me on my way?
Or even an idiots guide to starting out on the JXTA road to p2p glory?

Many thanks in advance

-----edited----

Think I'll download 2.5 and use the prog guide for 2.5, seems best given that this is the way Jxta is moving.
No point learning the old way.

Any tips or pointers to simple idiot proof code would still be appreciated :o)

-----edited again---------

Hooray!

I got HelloWorld app to compile & run :o)
Making progress!

Message was edited by: siggyuke

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
nanechane
Offline
Joined: 2007-08-20
Points: 0

Hello
I tried to work on Linux+Jxta, but failed. I have switched to Netbeans Now, kindly let me know, how to start from a scratch.
regards

Mazhar

bondolo
Offline
Joined: 2003-06-11
Points: 0

First off, I would recommend using the the 2.5RC3 along with the 2.5 Programmers Guide. At this point 2.5 is very nearly final and based upon our testing is superior to 2.4.1.

Regarding the problems you encountered compiling-- this appears to be a class path problem. It looks like you have not included Log4J.jar The nightly builds of JXSE 2.5 include updated Netbeans projects which are fully compatible with NetBeans 6.0. You can find the nightly builds at :http://download.java.net/jxta/jxta-jxse/nightly/ The differences between the 2.5RC3 builds and the nightly builds are very minor.

Once you have the latest nightly build of the JXSE source you should be able run the JXTA tutorial directly from within Netbeans. (I am a Netbeans user and that's how I've debugged the ones that I worked on).

siggyuke
Offline
Joined: 2007-10-08
Points: 0

Thanks for the reply - much appreciated.

I'm doing as you suggest and working through the 2.5 tutorials.
Although I am a little confused about how different peers & protocols are used & how they relate to each other.
Hopefully things will become clearer as I complete the tutorials.

Cheers

Pete