0

My Error:

Exception in thread "main" java.lang.NoClassDefFoundError: us/aaronweiss/pkgnx/LazyNXFile
    at provider.nx.NXDataProvider.<init>(NXDataProvider.java:42)
    at provider.nx.NXDataProvider.openFile(NXDataProvider.java:73)
    at provider.nx.NXDataProvider.openFile(NXDataProvider.java:53)
    at provider.MapleDataProviderFactory.getDataProvider(MapleDataProviderFactory.java:43)
    at server.life.MapleLifeFactory.<clinit>(MapleLifeFactory.java:50)
    at server.Start.run(Start.java:105)
    at server.Start.main(Start.java:245) 
Caused by: java.lang.ClassNotFoundException: us.aaronweiss.pkgnx.LazyNXFile
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 7 more

Clearly I have that class in my jar:

enter image description here

My classpath includes every jar in my lib folder using * wildcard.

gguwotm8
  • 11
  • 3
  • 1
    *"My classpath executes every jar in my lib folder using * wildcard"* - Really, wasn't sure you could do that – MadProgrammer Sep 17 '15 at 00:15
  • @MadProgrammer: http://stackoverflow.com/questions/1237093/how-to-use-a-wildcard-in-the-classpath-to-add-multiple-jars (assumes "executes" means "includes" here) But please do show the full command line. Maybe the setting is incorrect somehow. – Thilo Sep 17 '15 at 00:17
  • @Thilo I was under the impression that you could not include Jar files using any kind of wildcard within the classpath, you had to explicitly specify each one – MadProgrammer Sep 17 '15 at 00:18
  • 2
    @MadProgrammer. That used to be the case. JDK6 improved on that a (little) bit. Still tricky to get it right, though. – Thilo Sep 17 '15 at 00:19
  • @Thilo I execute my project using a batch file running these parameters set CLASSPATH=.;dist\* java -client -Dnxpath=nx server.Start – gguwotm8 Sep 17 '15 at 00:33
  • @MadProgrammer My dist folder: http://puu.sh/kdTGO/ce3ded0cf4.png Also if you guys think the set classpath is the issue, i am pretty sure it isn't because my project does run fine with the wildcard if I revert to a revision before attempting to use pkgnx – gguwotm8 Sep 17 '15 at 00:35
  • Does your jar file have a manifest with a class-path entry? It's possible it's overriding anything you pass by the commandline – MadProgrammer Sep 17 '15 at 00:57

0 Answers0