1. P0ke

    P0ke Well-Known Member

    P0ke
    MVP+
    Plup Club PLUP
    Member
    Messages:
    6,042
    So right now I'm building the API with mvn clean install and adding the .jar to the build path. I'm trying to run one of the example programs and everything looks fine, but then when I try to run it I get this:
    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/mastfrog/netty/http/client/ResponseHandler
        at Test.main(Test.java:12)
    Caused by: java.lang.ClassNotFoundException: com.mastfrog.netty.http.client.ResponseHandler
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 1 more
    I assume this has something to do with the dependencies not being correct in the API, is there any easy way to fix this? I don't want to go through and manually add each dependency and then build it :s
     
    #1
    • Funny Funny x 1
  2. Use Maven.
     
    #2
    • Funny Funny x 1
  3. P0ke

    P0ke Well-Known Member

    P0ke
    MVP+
    Plup Club PLUP
    Member
    Messages:
    6,042


    it doesn't matter now anyway, I managed to build it with Eclipse by importing the maven project.
     
    #3
    • Funny Funny x 1
  4. Looks like the 'com.mastfrog.netty.http.client.ResponseHandler' class can't be found. Are you sure you're depending on the right version of Netty?

    Otherwise try adding the file (see below) manually. Just copy and paste the code in a new file and use that instead. If you need any more help, feel free to send a PM.
    [LINK]
     
    #4
    • Creative Creative x 2
    • Funny Funny x 1
  5. Updated API, no longer requires netty + cleaned up. Pull latest version off of the repo please :)
     
    #5
    • Funny Funny x 1
    • Hype Train Hype Train x 1

Share This Page