Skip to main content

Trouble building JXTA Shell sources

2 replies [Last post]
tjwilson1973
Offline
Joined: 2010-05-01
Points: 0

I am a JXTA newbie who is trying to begin exploring this technology by building the source code for myJXTA. Before I attempted the build, I installed Ant and the Subversion svn client to run along with JavaSDK 1.6, as instructed. After Downloading the sources through SVN, I was able to build the files in the jxta-jxse folder with no problem using Ant. However, I get the following output when trying to build the files in the jxse-shell folder:

Buildfile: C:\jxta\jxse-shell\build.xml

clean:

paths:

prepare:
[mkdir] Created dir: C:\jxta\jxse-shell\classes
[mkdir] Created dir: C:\jxta\jxse-shell\dist
[mkdir] Created dir: C:\jxta\jxse-shell\doc
[mkdir] Created dir: C:\jxta\jxse-shell\tmp

compile:
[javac] C:\jxta\jxse-shell\build.xml:224: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 90 source files to C:\jxta\jxse-shell\classes
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\SwingShellConsole.java:92: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] import net.jxta.impl.rendezvous.RendezVousServiceInterface;
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\newcsr.java:69: package org.bouncycastle.asn1 does not exist
[javac] import org.bouncycastle.asn1.DERSet;
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\newcsr.java:70: package org.bouncycastle.jce does not exist
[javac] import org.bouncycastle.jce.PKCS10CertificationRequest;
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\newcsr.java:71: package org.bouncycastle.jce does not exist
[javac] import org.bouncycastle.jce.X509Principal;
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\signcsr.java:72: package org.bouncycastle.jce does not exist
[javac] import org.bouncycastle.jce.X509Principal;
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\signcsr.java:73: package org.bouncycastle.jce does not exist
[javac] import org.bouncycastle.jce.X509V3CertificateGenerator;
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvcontrol\rdvcontrol.java:60: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] import net.jxta.impl.rendezvous.RendezVousServiceInterface;
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvstatus\rdvstatus.java:60: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] import net.jxta.impl.rendezvous.RendezVousServiceInterface;
[javac] ^
[javac] C:\jxta\jxse-shell\launch\Launch.java:66: warning: [deprecation] net.jxta.util.AwtUtils in net.jxta.util has been deprecated
[javac] import net.jxta.util.AwtUtils;
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\SwingShellConsole.java:468: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] if (rendezVous instanceof RendezVousServiceInterface) {
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\SwingShellConsole.java:469: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] RendezVousServiceInterface stdRdv = (RendezVousServiceInterface) rendezVous;
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\SwingShellConsole.java:469: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] RendezVousServiceInterface stdRdv = (RendezVousServiceInterface) rendezVous;
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\SwingShellConsole.java:470: warning: [deprecation] getPeerView() in net.jxta.impl.rendezvous.RendezVousServiceInterface has been deprecated
[javac] PeerView rpv = stdRdv.getPeerView();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\SwingShellConsole.java:495: warning: [deprecation] getConnectedPeerIDs() in net.jxta.rendezvous.RendezVousService has been deprecated
[javac] statusKeeper.connectedClients = rendezVous.getConnectedPeerIDs().size();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\SwingShellConsole.java:496: warning: [deprecation] getConnectedRendezVous() in net.jxta.rendezvous.RendezVousService has been deprecated
[javac] statusKeeper.connectedRdv = Collections.list(rendezVous.getConnectedRendezVous()).size();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\SwingShellConsole.java:498: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] if (rendezVous instanceof RendezVousServiceInterface) {
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\SwingShellConsole.java:499: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] RendezVousServiceInterface stdRdv = (RendezVousServiceInterface) rendezVous;
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\SwingShellConsole.java:499: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] RendezVousServiceInterface stdRdv = (RendezVousServiceInterface) rendezVous;
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\SwingShellConsole.java:500: warning: [deprecation] getPeerView() in net.jxta.impl.rendezvous.RendezVousServiceInterface has been deprecated
[javac] PeerView rpv = stdRdv.getPeerView();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\SwingShellConsole.java:504: warning: [deprecation] getLocalWalkView() in net.jxta.rendezvous.RendezVousService has been deprecated
[javac] statusKeeper.peerview = statusKeeper.statusGroup.getRendezVousService().getLocalWalkView().size();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\join\join.java:303: warning: [deprecation] unref() in net.jxta.peergroup.PeerGroup has been deprecated
[javac] group.unref();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\createkey.java:189: warning: [deprecation] getPrivateKey() in net.jxta.impl.membership.pse.PSECredential has been deprecated
[javac] issuerKey = cred.getPrivateKey();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\dumpcred.java:195: warning: [deprecation] getPrivateKey() in net.jxta.impl.membership.pse.PSECredential has been deprecated
[javac] key = cred.getPrivateKey();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\dupkey.java:195: warning: [deprecation] getPrivateKey() in net.jxta.impl.membership.pse.PSECredential has been deprecated
[javac] sourceKey = cred.getPrivateKey();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\newcsr.java:159: warning: [deprecation] getPrivateKey() in net.jxta.impl.membership.pse.PSECredential has been deprecated
[javac] key = cred.getPrivateKey();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\newcsr.java:169: cannot find symbol
[javac] symbol : class PKCS10CertificationRequest
[javac] location: class net.jxta.impl.shell.bin.pse.newcsr
[javac] PKCS10CertificationRequest csr = new PKCS10CertificationRequest(
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\newcsr.java:169: cannot find symbol
[javac] symbol : class PKCS10CertificationRequest
[javac] location: class net.jxta.impl.shell.bin.pse.newcsr
[javac] PKCS10CertificationRequest csr = new PKCS10CertificationRequest(
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\newcsr.java:171: cannot find symbol
[javac] symbol : class X509Principal
[javac] location: class net.jxta.impl.shell.bin.pse.newcsr
[javac] new X509Principal(cert.getSubjectX500Principal().getEncoded()),
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\newcsr.java:173: cannot find symbol
[javac] symbol : class DERSet
[javac] location: class net.jxta.impl.shell.bin.pse.newcsr
[javac] new DERSet(),
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\newcsr.java:176: warning: [deprecation] net.jxta.impl.protocol.CertificateSigningRequest in net.jxta.impl.protocol has been deprecated
[javac] net.jxta.impl.protocol.CertificateSigningRequest csr_msg = new net.jxta.impl.protocol.CertificateSigningRequest();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\newcsr.java:176: warning: [deprecation] net.jxta.impl.protocol.CertificateSigningRequest in net.jxta.impl.protocol has been deprecated
[javac] net.jxta.impl.protocol.CertificateSigningRequest csr_msg = new net.jxta.impl.protocol.CertificateSigningRequest();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\signcsr.java:185: warning: [deprecation] getPrivateKey() in net.jxta.impl.membership.pse.PSECredential has been deprecated
[javac] issuerKey = cred.getPrivateKey();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\signcsr.java:212: warning: [deprecation] net.jxta.impl.protocol.CertificateSigningRequest in net.jxta.impl.protocol has been deprecated
[javac] net.jxta.impl.protocol.CertificateSigningRequest csr_msg = new net.jxta.impl.protocol.CertificateSigningRequest((Element) csrEnv.getObject());
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\signcsr.java:212: warning: [deprecation] net.jxta.impl.protocol.CertificateSigningRequest in net.jxta.impl.protocol has been deprecated
[javac] net.jxta.impl.protocol.CertificateSigningRequest csr_msg = new net.jxta.impl.protocol.CertificateSigningRequest((Element) csrEnv.getObject());
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\signcsr.java:214: package org.bouncycastle.jce does not exist
[javac] org.bouncycastle.jce.PKCS10CertificationRequest csr = csr_msg.getCSR();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\signcsr.java:225: cannot find symbol
[javac] symbol : class X509V3CertificateGenerator
[javac] location: class net.jxta.impl.shell.bin.pse.signcsr
[javac] X509V3CertificateGenerator certGen = new X509V3CertificateGenerator();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\signcsr.java:225: cannot find symbol
[javac] symbol : class X509V3CertificateGenerator
[javac] location: class net.jxta.impl.shell.bin.pse.signcsr
[javac] X509V3CertificateGenerator certGen = new X509V3CertificateGenerator();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\pse\signcsr.java:227: cannot find symbol
[javac] symbol : class X509Principal
[javac] location: class net.jxta.impl.shell.bin.pse.signcsr
[javac] certGen.setIssuerDN(new X509Principal(true, issuer.cert.getSubjectX500Principal().getName()));
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvcontrol\rdvcontrol.java:223: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] RendezVousServiceInterface stdRdv;
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvcontrol\rdvcontrol.java:224: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] if (rdv instanceof RendezVousServiceInterface) {
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvcontrol\rdvcontrol.java:225: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] stdRdv = (RendezVousServiceInterface) rdv;
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvcontrol\rdvcontrol.java:227: warning: [deprecation] getPeerView() in net.jxta.impl.rendezvous.RendezVousServiceInterface has been deprecated
[javac] PeerView rpv = stdRdv.getPeerView();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvcontrol\rdvcontrol.java:249: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] RendezVousServiceInterface stdRdv;
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvcontrol\rdvcontrol.java:250: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] if (rdv instanceof RendezVousServiceInterface) {
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvcontrol\rdvcontrol.java:251: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] stdRdv = (RendezVousServiceInterface) rdv;
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvcontrol\rdvcontrol.java:253: warning: [deprecation] getPeerView() in net.jxta.impl.rendezvous.RendezVousServiceInterface has been deprecated
[javac] PeerView rpv = stdRdv.getPeerView();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvcontrol\rdvcontrol.java:316: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] if (rdv instanceof RendezVousServiceInterface) {
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvcontrol\rdvcontrol.java:317: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] RendezVousServiceInterface stdRdv = (RendezVousServiceInterface) rdv;
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvcontrol\rdvcontrol.java:317: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] RendezVousServiceInterface stdRdv = (RendezVousServiceInterface) rdv;
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvcontrol\rdvcontrol.java:319: warning: [deprecation] getPeerView() in net.jxta.impl.rendezvous.RendezVousServiceInterface has been deprecated
[javac] PeerView rpv = stdRdv.getPeerView();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvcontrol\rdvcontrol.java:388: warning: [deprecation] connectToRendezVous(net.jxta.endpoint.EndpointAddress) in net.jxta.rendezvous.RendezVousService has been deprecated
[javac] rdv.connectToRendezVous(connect_peer);
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvcontrol\rdvcontrol.java:439: warning: [deprecation] disconnectFromRendezVous(net.jxta.id.ID) in net.jxta.rendezvous.RendezVousService has been deprecated
[javac] rdv.disconnectFromRendezVous(disconnect_peer);
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvstatus\rdvstatus.java:142: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] RendezVousServiceInterface stdRdv;
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvstatus\rdvstatus.java:144: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] if (rdv instanceof net.jxta.impl.rendezvous.RendezVousServiceInterface) {
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvstatus\rdvstatus.java:145: warning: [deprecation] net.jxta.impl.rendezvous.RendezVousServiceInterface in net.jxta.impl.rendezvous has been deprecated
[javac] stdRdv = (RendezVousServiceInterface) rdv;
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvstatus\rdvstatus.java:149: warning: [deprecation] getRendezvousProvider() in net.jxta.impl.rendezvous.RendezVousServiceInterface has been deprecated
[javac] net.jxta.impl.rendezvous.RendezVousServiceProvider provider = stdRdv.getRendezvousProvider();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvstatus\rdvstatus.java:155: warning: [deprecation] getPeerView() in net.jxta.impl.rendezvous.RendezVousServiceInterface has been deprecated
[javac] rpv = stdRdv.getPeerView();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvstatus\rdvstatus.java:198: warning: [deprecation] getConnectedRendezVous() in net.jxta.rendezvous.RendezVousService has been deprecated
[javac] Enumeration rdvs = rdv.getConnectedRendezVous();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvstatus\rdvstatus.java:224: warning: [deprecation] getDisconnectedRendezVous() in net.jxta.rendezvous.RendezVousService has been deprecated
[javac] Enumeration rmRdvs = rdv.getDisconnectedRendezVous();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\rdvstatus\rdvstatus.java:252: warning: [deprecation] getConnectedPeers() in net.jxta.rendezvous.RendezVousService has been deprecated
[javac] Enumeration clients = rdv.getConnectedPeers();
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\route\route.java:257: cannot find symbol
[javac] symbol : method transportControl(java.lang.Integer,)
[javac] location: class net.jxta.impl.endpoint.router.EndpointRouter
[javac] RouteControl routeControl = (RouteControl) er.transportControl(EndpointRouter.GET_ROUTE_CONTROL, null);
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\route\route.java:267: warning: [deprecation] getMyLocalRoute() in net.jxta.impl.endpoint.router.RouteControl has been deprecated
[javac] println(routeControl.getMyLocalRoute().display());
[javac] ^
[javac] C:\jxta\jxse-shell\src\net\jxta\impl\shell\bin\xfer\xfer.java:592: warning: [deprecation] getMessenger(net.jxta.endpoint.MessengerEventListener,net.jxta.endpoint.EndpointAddress,java.lang.Object) in net.jxta.endpoint.EndpointService has been deprecated
[javac] boolean working = group.getEndpointService().getMessenger(sender, destAddr, null);
[javac] ^
[javac] C:\jxta\jxse-shell\launch\Launch.java:75: warning: [deprecation] net.jxta.util.AwtUtils in net.jxta.util has been deprecated
[javac] AwtUtils.initAsDaemon();
[javac] ^
[javac] C:\jxta\jxse-shell\launch\Launch.java:123: warning: [deprecation] unref() in net.jxta.peergroup.PeerGroup has been deprecated
[javac] netPeerGroup.unref();
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 14 errors
[javac] 51 warnings

What must I do to fix this?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
adamman71
Offline
Joined: 2007-01-31
Points: 0

...If you are a newbie, making Shell work again is gonna require a lot of time from you. The learning curve of core code is steep... I am not trying to discourage you, just shedding some light on the path you may consider taking...

adamman71
Offline
Joined: 2007-01-31
Points: 0

Unfortunately, the Shell project has not been maintained for quite some time now (no volunteer). There is probably quite some work to be done to make the Shell work again. IMHO, it is a big piece work...