Package doesnt exist in sample...

58 views
Skip to first unread message

Aric Holland

unread,
Aug 31, 2008, 5:28:39 AM8/31/08
to PulpCore
Hi,

Im pretty new to this, but I want to integrate XML-RPC into an applet.
So... Using Alex Jeffery's example I got all the libs toghether and
everything except when I compile it its saying:

G:\Documents\Caedmon Games\pulpcore-0.11.3\examples\Sample Game\src
\LoginScene.java:12: package org.apache.xmlrpc does not exist
import org.apache.xmlrpc.XmlRpcException;

source thats important:

package org.alexjeffery.xmlrpcdemo;

import pulpcore.image.CoreFont;
import pulpcore.image.CoreImage;
import pulpcore.Input;
import pulpcore.scene.Scene2D;
import pulpcore.sprite.Button;
import pulpcore.sprite.FilledSprite;
import pulpcore.sprite.Group;
import pulpcore.sprite.Label;
import pulpcore.sprite.Sprite;
import pulpcore.sprite.TextField;
import pulpcore.Stage;
import apache.xmlrpc.XmlRpcException;
import org.apache.xmlrpc.client.XmlRpcClientException;
import org.apache.xmlrpc.client.XmlRpcClient;
import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
import java.net.MalformedURLException;
import java.net.URL;

its not picking it up. Also, I dont want to use an package, like Alex
is doing. How do i just make it so that I can write apache.method
instead of org.apache

I added the classes or libs of the apache xml rpc to my project too.

Thanks for the help,

Aric Holland

Alex Jeffery

unread,
Aug 31, 2008, 5:32:11 AM8/31/08
to pulp...@googlegroups.com
Have you added it to the class path bit?
Looks like it can't find the lib for some reason?

Aric Holland

unread,
Aug 31, 2008, 5:45:34 AM8/31/08
to PulpCore
class path bit? how do i add this in netbeans?

Much appreciated,

Aric

On Aug 30, 11:32 pm, "Alex Jeffery" <alexanderjeff...@gmail.com>
wrote:
> > Aric Holland- Hide quoted text -
>
> - Show quoted text -

Aric Holland

unread,
Aug 31, 2008, 5:55:22 AM8/31/08
to PulpCore
I dont understand i've added the jars and all of them to my classpath,
just as I would add pulpcore. I'ts not finding it!


G:\Documents\Caedmon Games\pulpcore-0.11.3\examples\Sample Game\src
\TitleScene.java:1: package org.apache.xmlrpc.client does not exist
import org.apache.xmlrpc.client.XmlRpcClient;
1 error
> > - Show quoted text -- Hide quoted text -

David Brackeen

unread,
Aug 31, 2008, 5:05:17 PM8/31/08
to pulp...@googlegroups.com
If you're using the PulpCore build scripts, you'll need to use the "project" template and drop the library jars you're using in the "lib" folder.

Aric Holland

unread,
Aug 31, 2008, 7:43:05 PM8/31/08
to pulp...@googlegroups.com
David,

I added the jars to the lib folder of my project. However when I built the project I recieved this error:
java.util.zip.ZipException: duplicate entry: allclasses-frame.html
        at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:175)
        at java.util.jar.JarOutputStream.putNextEntry(JarOutputStream.java:92)
        at net.sourceforge.retroweaver.RetroWeaver.weaveJarFile(RetroWeaver.java:216)
        at net.sourceforge.retroweaver.ant.RetroWeaverTask.execute(RetroWeaverTask.java:381)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
BUILD FAILED (total time: 17 seconds)
Any ideas?

David Brackeen

unread,
Aug 31, 2008, 7:48:43 PM8/31/08
to pulp...@googlegroups.com
"duplicate entry: allclasses-frame.html" probably means two apache jars contains documentation. If there is a binary-only jars, try those first (or manually remove the html stuff from the jars)

Aric Holland

unread,
Aug 31, 2008, 7:54:24 PM8/31/08
to pulp...@googlegroups.com
Thanks David,
 
It worked. I now understand how to solve problems such as this in the future. Although David, One thing I havent understood how to fix is this:

 background.setBorderColor(0x000000);
 
netbeans isnt finding the setBorderColor method so which import should i "import"?
 
Much Appreciated,
 
Aric

Reply all
Reply to author
Forward
0 new messages