Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #14261
| From | Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: my java is broken ! |
| Date | 2012-05-04 14:07 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <slrnjq7okh.kvi.avl@gamma.logic.tuwien.ac.at> (permalink) |
| References | (3 earlier) <FPjnr.25381$Ec.348@newsfe16.iad> <jnuvbt$383$1@dont-email.me> <15508526.29.1336086347980.JavaMail.geo-discussion-forums@ynjj16> <HLEor.33482$JR1.13053@newsfe06.iad> <jnvpvs$1bo$1@dont-email.me> |
bilsch <king621@comcast.net> wrote: > environment variable PATH is: > /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games > bilsch@p4pwj:~/jdk7/bin$ java Nvr1 You don't have "." or ~/jdk7/bin in your PATH. So it probably has picked up some system-installed java from /usr/bin Add the bin directory of your jdk7 to the beginning of your PATH, and some of your obstacles might dissolve. Anyway, your Nvr1.class file surely isn't in ~/jdk7/bin, so the > Could not find the main class: Nvr1. Program will exit. was to be expected. > bilsch@p4pwj:~/jdk7/bin$ javac /NetBeansProjects/NVRAM/src/Nvr1 > The program 'javac' can be found in the following packages: That's a shell-convenience, and it seems like you have a jre installed system-wide, but not a jdk. To actually use your priovate jdk7 installation, you have to add it to your PATH (and before /usr/bin) Your PATH probably should look like: /home/bilsch/jdk7/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games (I'm speculating about your actual home-directory here)
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
my java is broken ! bilsch <king621@comcast.net> - 2012-04-29 05:13 -0700
Re: my java is broken ! bilsch <king621@comcast.net> - 2012-04-29 05:36 -0700
Re: my java is broken ! Roedy Green <see_website@mindprod.com.invalid> - 2012-04-29 07:05 -0700
Re: my java is broken ! Joshua Cranmer <Pidgeot18@verizon.invalid> - 2012-04-29 09:25 -0500
Re: my java is broken ! bilsch <king621@comcast.net> - 2012-04-29 15:21 -0700
Re: my java is broken ! Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-04-29 20:06 -0300
Re: my java is broken ! bilsch <king621@comcast.net> - 2012-05-03 15:03 -0700
Re: my java is broken ! Lew <lewbloch@gmail.com> - 2012-05-03 16:05 -0700
Re: my java is broken ! Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-05-03 20:44 -0300
Re: my java is broken ! bilsch <king621@comcast.net> - 2012-05-03 22:38 -0700
Re: my java is broken ! Lew <lewbloch@gmail.com> - 2012-05-04 06:43 -0700
Re: my java is broken ! Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-05-04 14:07 +0000
Re: my java is broken ! Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-05-04 09:11 -0500
Re: my java is broken ! bilsch <king621@comcast.net> - 2012-05-04 15:06 -0700
Re: my java is broken ! Martin Gregorie <martin@address-in-sig.invalid> - 2012-05-04 23:06 +0000
Re: my java is broken ! bilsch <king621@comcast.net> - 2012-05-05 15:03 -0700
Re: my java is broken ! bilsch <king621@comcast.net> - 2012-05-05 15:04 -0700
Re: my java is broken ! Lew <lewbloch@gmail.com> - 2012-05-04 17:04 -0700
Re: my java is broken ! bilsch <king621@comcast.net> - 2012-05-05 15:30 -0700
Re: my java is broken ! markspace <-@.> - 2012-05-05 15:58 -0700
Re: my java is broken ! Lew <noone@lewscanon.com> - 2012-05-05 22:37 -0700
Re: my java is broken ! Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-05-04 19:48 -0500
Re: my java is broken ! Martin Gregorie <martin@address-in-sig.invalid> - 2012-05-05 15:02 +0000
Re: my java is broken ! bilsch <king621@comcast.net> - 2012-05-05 15:26 -0700
Re: my java is broken ! Martin Gregorie <martin@address-in-sig.invalid> - 2012-05-05 22:57 +0000
Re: my java is broken ! Lew <noone@lewscanon.com> - 2012-05-05 22:41 -0700
csiph-web