Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #18673
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2012-09-12 08:58 -0700 |
| References | (7 earlier) <84caa856-f49b-4ae3-8ae8-e7c5b6579b11@googlegroups.com> <k2o4d5$1rv$1@dont-email.me> <bbccb919-e3d8-48bd-881c-9d5c5d0767d3@googlegroups.com> <b9686186-51c7-4dcc-8e58-7604dc26ce76@googlegroups.com> <k2q9a8$m2g$1@dont-email.me> |
| Message-ID | <784b7374-dd6e-4a35-9f71-07e38e63a972@googlegroups.com> (permalink) |
| Subject | Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) |
| From | clusardi2k@aol.com |
>On Wednesday, September 12, 2012 11:21:45 AM UTC-4, markspace wrote:
>> On 9/12/2012 8:00 AM, ... wrote:
>> I added the path to all my dot jars into an environment variable
>> (user varianble and not a system variable) called classpath and was
>> unable to run the project. I mean nothing happened.
>
> Learn to debug. Add some print statements so you can trace the execution of
> your program. Attach a debugger. If nothing happens, that's because your app
> did nothing. Java will print an error message if it finds a problem.
I added the following as the first executable statement (etc) in the project:
System.out.println("Hello 1");
I then ran the project on my friend's PC using the Command Prompt and the command: java testing.jar
I received the error message:
Exception in thread "main" java.lang.NoClassDefFoundError: testing/jar
Caused by: java.lang.ClassNotFoundException: testing.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)
Could not find the main class: testing.jar. Program will exit.
Thank you,
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-07 05:15 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-09-07 12:24 +0000
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) "John B. Matthews" <nospam@nospam.invalid> - 2012-09-07 09:54 -0400
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-13 06:40 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-09-13 17:20 +0000
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-13 11:00 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Gene Wirchenko <genew@ocis.net> - 2012-09-13 15:36 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Arne Vajhøj <arne@vajhoej.dk> - 2012-09-13 20:34 -0400
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Nigel Wade <nmw@ion.le.ac.uk> - 2012-09-07 16:17 +0100
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Lew <lewbloch@gmail.com> - 2012-09-07 11:11 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) "John B. Matthews" <nospam@nospam.invalid> - 2012-09-07 21:28 -0400
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-10 23:29 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Lew <lewbloch@gmail.com> - 2012-09-10 23:49 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-11 05:12 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) markspace <-@.> - 2012-09-11 09:25 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Lew <lewbloch@gmail.com> - 2012-09-11 11:08 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) markspace <-@.> - 2012-09-11 12:45 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-12 07:24 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-12 08:00 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) markspace <-@.> - 2012-09-12 08:21 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-12 08:58 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-12 09:02 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) markspace <-@.> - 2012-09-12 09:15 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-12 09:44 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-12 10:24 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Lew <lewbloch@gmail.com> - 2012-09-12 10:19 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-12 11:10 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-12 11:26 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-12 11:47 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Lew <lewbloch@gmail.com> - 2012-09-12 12:56 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Lew <lewbloch@gmail.com> - 2012-09-12 12:58 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Arne Vajhøj <arne@vajhoej.dk> - 2012-09-12 20:45 -0400
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-12 23:28 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Arne Vajhøj <arne@vajhoej.dk> - 2012-09-12 20:43 -0400
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Nigel Wade <nmw@ion.le.ac.uk> - 2012-09-17 10:10 +0100
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) clusardi2k@aol.com - 2012-09-11 16:21 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) markspace <-@.> - 2012-09-11 17:33 -0700
Re: How Do I Publish My Working Project (corresponding dot jar doesn't work on other's PCs) Roedy Green <see_website@mindprod.com.invalid> - 2012-09-07 22:26 -0700
csiph-web