Alright guys...got some questions. I don't have a TON of experience with
java, but i'm trying to make some standalone database applications. I have the application made and it runs perfectly through NetBeans, although I want to run it outside of the
IDE.
I downloaded and installed (i think correctly....) Derby, but nothing. When i double-click the .jar file, nothing happens.
When i run java <App>.jar from the command line I keep getting -
Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users>java CarsApp.jar
Exception in
thread "main" java.lang.NoClassDefFoundError: CarsApp/jar
Caused by: java.lang.ClassNotFoundException: CarsApp.jar
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: CarsApp.jar. Program will exit.
i tried setting up the paths last night and I thought it worked, although my guess it didn't. I don't have a whole lot of experience to figure out whats going on here. Looked through a bunch of online documentation and couldn't really figure out what the deal is. Any help is appreciated. Thanks guys!
Kyle