Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #2512 > unrolled thread
| Started by | Knute Johnson <nospam@rabbitbrush.frazmtn.com> |
|---|---|
| First post | 2013-02-20 16:22 -0800 |
| Last post | 2013-02-21 07:50 -0800 |
| Articles | 14 — 5 participants |
Back to article view | Back to comp.lang.java.help
Netbeans question? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2013-02-20 16:22 -0800
Re: Netbeans question? "John B. Matthews" <nospam@nospam.invalid> - 2013-02-20 21:32 -0500
Re: Netbeans question? Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-02-20 22:15 -0500
Re: Netbeans question? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2013-02-20 19:25 -0800
Re: Netbeans question? Roedy Green <see_website@mindprod.com.invalid> - 2013-02-20 22:25 -0800
Re: Netbeans question? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2013-02-21 07:45 -0800
Re: Netbeans question? Roedy Green <see_website@mindprod.com.invalid> - 2013-02-21 15:24 -0800
Re: Netbeans question? Lew <lewbloch@gmail.com> - 2013-02-21 18:34 -0800
Re: Netbeans question? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2013-02-22 14:31 -0800
Re: Netbeans question? Lew <lewbloch@gmail.com> - 2013-02-22 15:25 -0800
Re: Netbeans question? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2013-02-22 15:34 -0800
Re: Netbeans question? Lew <lewbloch@gmail.com> - 2013-02-22 18:55 -0800
Re: Netbeans question? Lew <lewbloch@gmail.com> - 2013-02-20 22:53 -0800
Re: Netbeans question? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2013-02-21 07:50 -0800
| From | Knute Johnson <nospam@rabbitbrush.frazmtn.com> |
|---|---|
| Date | 2013-02-20 16:22 -0800 |
| Subject | Netbeans question? |
| Message-ID | <kg3p9h$ghm$1@dont-email.me> |
I'm trying to learn how to use Netbeans but that isn't really my question. When I start it I get a dialog that says "Invalid jdkhome", "Cannot locate Java installation", "C:/...1.7.0_10", "Do you want to try to use the default version?" If I press the NO button it just quits, if I press the Yes button it starts and works normally. I can't find any place in the program to change the "jdkhome". It finds the current 1.7.0_15 installation without any difficulty. Anybody know how to reset this? Thanks, knute...
[toc] | [next] | [standalone]
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Date | 2013-02-20 21:32 -0500 |
| Message-ID | <nospam-EEC433.21322120022013@news.aioe.org> |
| In reply to | #2512 |
In article <kg3p9h$ghm$1@dont-email.me>, Knute Johnson <nospam@rabbitbrush.frazmtn.com> wrote: > I'm trying to learn how to use Netbeans but that isn't really my > question. When I start it I get a dialog that says "Invalid > jdkhome", "Cannot locate Java installation", "C:/...1.7.0_10", "Do > you want to try to use the default version?" If I press the NO > button it just quits, if I press the Yes button it starts and works > normally. I can't find any place in the program to change the > "jdkhome". It finds the current 1.7.0_15 installation without any > difficulty. Anybody know how to reset this? Look in Tools > Java Platforms; there should be an Add Platform button. -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews>
[toc] | [prev] | [next] | [standalone]
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
|---|---|
| Date | 2013-02-20 22:15 -0500 |
| Message-ID | <kg43el$s2m$1@dont-email.me> |
| In reply to | #2512 |
On 2/20/2013 7:22 PM, Knute Johnson wrote:
> I'm trying to learn how to use Netbeans but that isn't really my
> question. When I start it I get a dialog that says "Invalid jdkhome",
> "Cannot locate Java installation", "C:/...1.7.0_10", "Do you want to try
> to use the default version?" If I press the NO button it just quits, if
> I press the Yes button it starts and works normally. I can't find any
> place in the program to change the "jdkhome". It finds the current
> 1.7.0_15 installation without any difficulty. Anybody know how to reset
> this?
I've seen this after installing a JDK update when NetBeans
is already present. (Guess: The NetBeans installer sniffs out
an existing JDK, but the JDK installer doesn't detect and update
an existing NetBeans.) What works for me is to edit the file
C:\Program Files\NetBeans<version>\etc\netbeans.conf
... and change the "netbeans_jdkhome=" line to point to my
updated JDK.
(Um, er, you *do* have a JDK installed, right?)
--
Eric Sosman
esosman@comcast-dot-net.invalid
[toc] | [prev] | [next] | [standalone]
| From | Knute Johnson <nospam@rabbitbrush.frazmtn.com> |
|---|---|
| Date | 2013-02-20 19:25 -0800 |
| Message-ID | <kg441l$uaf$1@dont-email.me> |
| In reply to | #2514 |
On 2/20/2013 19:15, Eric Sosman wrote: > On 2/20/2013 7:22 PM, Knute Johnson wrote: >> I'm trying to learn how to use Netbeans but that isn't really my >> question. When I start it I get a dialog that says "Invalid jdkhome", >> "Cannot locate Java installation", "C:/...1.7.0_10", "Do you want to try >> to use the default version?" If I press the NO button it just quits, if >> I press the Yes button it starts and works normally. I can't find any >> place in the program to change the "jdkhome". It finds the current >> 1.7.0_15 installation without any difficulty. Anybody know how to reset >> this? > > I've seen this after installing a JDK update when NetBeans > is already present. (Guess: The NetBeans installer sniffs out > an existing JDK, but the JDK installer doesn't detect and update > an existing NetBeans.) What works for me is to edit the file > > C:\Program Files\NetBeans<version>\etc\netbeans.conf > > ... and change the "netbeans_jdkhome=" line to point to my > updated JDK. > > (Um, er, you *do* have a JDK installed, right?) > I do :-) I found the .conf file too and that does fix the dialog problem. I followed John's advice (hint maybe) and added the existing Java to the platforms. I discovered that the Default java installation does not have JavaFX for some reason but one can install the same java installation again (makes no sense to me). But you can't delete the Default(?) Thanks Eric and John knute...
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2013-02-20 22:25 -0800 |
| Message-ID | <vcfbi89gboh51q2m0nmvef48ajcfm168k9@4ax.com> |
| In reply to | #2515 |
On Wed, 20 Feb 2013 19:25:34 -0800, Knute Johnson <nospam@rabbitbrush.frazmtn.com> wrote, quoted or indirectly quoted someone who said : >I found the .conf file too and that does fix the dialog problem. you are supposed to have a: SET JAVA_HOME=E:\Program Files\java\jdk1.7.0_15 Perhaps it would have used that. -- Roedy Green Canadian Mind Products http://mindprod.com The generation of random numbers is too important to be left to chance. ~ Robert R. Coveyou (born: 1915 died: 1996-02-19 at age: 80)
[toc] | [prev] | [next] | [standalone]
| From | Knute Johnson <nospam@rabbitbrush.frazmtn.com> |
|---|---|
| Date | 2013-02-21 07:45 -0800 |
| Message-ID | <kg5fdp$3ik$1@dont-email.me> |
| In reply to | #2516 |
On 2/20/2013 22:25, Roedy Green wrote: > On Wed, 20 Feb 2013 19:25:34 -0800, Knute Johnson > <nospam@rabbitbrush.frazmtn.com> wrote, quoted or indirectly quoted > someone who said : > >> I found the .conf file too and that does fix the dialog problem. > > you are supposed to have a: > > SET JAVA_HOME=E:\Program Files\java\jdk1.7.0_15 > > Perhaps it would have used that. > What program uses JAVA_HOME? knute...
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2013-02-21 15:24 -0800 |
| Message-ID | <44bdi8hvho4nmqnggq9r069lp7c6mch711@4ax.com> |
| In reply to | #2518 |
On Thu, 21 Feb 2013 07:45:56 -0800, Knute Johnson <nospam@rabbitbrush.frazmtn.com> wrote, quoted or indirectly quoted someone who said : >What program uses JAVA_HOME? gcc, ant -- Roedy Green Canadian Mind Products http://mindprod.com The generation of random numbers is too important to be left to chance. ~ Robert R. Coveyou (born: 1915 died: 1996-02-19 at age: 80)
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2013-02-21 18:34 -0800 |
| Message-ID | <7e2e1d2c-c944-4383-a826-cc45cab16494@googlegroups.com> |
| In reply to | #2518 |
Knute Johnson wrote: > Roedy Green wrote: >> Knute Johnson wrote, quoted or indirectly quoted someone who said : >>> I found the .conf file too and that does fix the dialog problem. > >> you are supposed to have a: >> SET JAVA_HOME=E:\Program Files\java\jdk1.7.0_15 >> Perhaps it would have used that. > > What program uses JAVA_HOME? Seriously? A zillion of them. It's the convention. http://lmgtfy.com/?q=what+program+uses+JAVA_HOME -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Knute Johnson <nospam@rabbitbrush.frazmtn.com> |
|---|---|
| Date | 2013-02-22 14:31 -0800 |
| Message-ID | <kg8ri6$rks$1@dont-email.me> |
| In reply to | #2526 |
On 2/21/2013 18:34, Lew wrote: > Knute Johnson wrote: >> Roedy Green wrote: >>> Knute Johnson wrote, quoted or indirectly quoted someone who said : >>>> I found the .conf file too and that does fix the dialog problem. >> >>> you are supposed to have a: >>> SET JAVA_HOME=E:\Program Files\java\jdk1.7.0_15 >>> Perhaps it would have used that. >> >> What program uses JAVA_HOME? > > Seriously? > > A zillion of them. It's the convention. > > http://lmgtfy.com/?q=what+program+uses+JAVA_HOME > I do most of my development on Windows and it certainly isn't required to make the compiler or runtime function there. I'm pretty sure I've never set it on my Linux box either. From the link you posted I see that ant uses it but I don't see anything else except Glassfish. knute...
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2013-02-22 15:25 -0800 |
| Message-ID | <53a6f2ad-a764-40f5-87a7-e6d7834b8170@googlegroups.com> |
| In reply to | #2531 |
Knute Johnson wrote: > Lew wrote: >> Knute Johnson wrote: >>> What program uses JAVA_HOME? > >> Seriously? > >> A zillion of them. It's the convention. > >> http://lmgtfy.com/?q=what+program+uses+JAVA_HOME > I do most of my development on Windows and it certainly isn't required > to make the compiler or runtime function there. I'm pretty sure I've > never set it on my Linux box either. From the link you posted I see > that ant uses it but I don't see anything else except Glassfish. That search gives links that also show that Maven, Eclipse, "Many Java applications" or "A lot of well behaving [sic] Java applications" (per a few of the links), JBoss, Macintosh, NetBeans, IBM Java, FreeBSD, Tomcat, the Android tools, shell scripts, and others use JAVA_HOME. PEBKAC. -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Knute Johnson <nospam@rabbitbrush.frazmtn.com> |
|---|---|
| Date | 2013-02-22 15:34 -0800 |
| Message-ID | <kg8v8v$e38$2@dont-email.me> |
| In reply to | #2532 |
On 2/22/2013 15:25, Lew wrote: > Knute Johnson wrote: >> Lew wrote: >>> Knute Johnson wrote: >>>> What program uses JAVA_HOME? >> >>> Seriously? >> >>> A zillion of them. It's the convention. >> >>> http://lmgtfy.com/?q=what+program+uses+JAVA_HOME > >> I do most of my development on Windows and it certainly isn't required >> to make the compiler or runtime function there. I'm pretty sure I've >> never set it on my Linux box either. From the link you posted I see >> that ant uses it but I don't see anything else except Glassfish. > > That search gives links that also show that Maven, Eclipse, "Many Java applications" or "A lot of > well behaving [sic] Java applications" (per a few of the links), JBoss, Macintosh, NetBeans, IBM Java, > FreeBSD, Tomcat, the Android tools, shell scripts, and others use JAVA_HOME. > > PEBKAC. > What does PEBKAC mean? Have I been insulted? k...
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2013-02-22 18:55 -0800 |
| Message-ID | <f37d834d-970d-456f-a9c9-7d754c64154b@googlegroups.com> |
| In reply to | #2534 |
Knute Johnson wrote: > Lew wrote: >> Knute Johnson wrote: >>> Lew wrote: >>>> Knute Johnson wrote: >>>>> What program uses JAVA_HOME? >>>> Seriously? >>>> A zillion of them. It's the convention. >>>> http://lmgtfy.com/?q=what+program+uses+JAVA_HOME > >>> I do most of my development on Windows and it certainly isn't required >>> to make the compiler or runtime function there. I'm pretty sure I've >>> never set it on my Linux box either. From the link you posted I see >>> that ant uses it but I don't see anything else except Glassfish. > >> That search gives links that also show that Maven, Eclipse, "Many Java applications" or "A lot of >> well behaving [sic] Java applications" (per a few of the links), JBoss, Macintosh, NetBeans, IBM Java, >> FreeBSD, Tomcat, the Android tools, shell scripts, and others use JAVA_HOME. >> >> PEBKAC. >> > What does PEBKAC mean? http://lmgtfy.com/?q=PEBKAC > Have I been insulted? I do not know. Have you? -- Lew
[toc] | [prev] | [next] | [standalone]
| From | Lew <lewbloch@gmail.com> |
|---|---|
| Date | 2013-02-20 22:53 -0800 |
| Message-ID | <98f2c745-317f-4f3d-9eb7-0c8f73c26a27@googlegroups.com> |
| In reply to | #2514 |
Isn't jdkhome ultimately set by the $JDK_HOME environment variable
if it's defined?
Or maybe it's just set by the netbeans.conf file. Here's mine, FWIW:
$ cat ${NETBEANS_HOME}/etc/netbeans.conf
#
netbeans_default_userdir="${DEFAULT_USERDIR_ROOT}/7.3beta2"
netbeans_default_cachedir="${DEFAULT_CACHEDIR_ROOT}/7.3beta2"
netbeans_jdkhome=/opt/java/java
netbeans_default_options="-J-Xms80m -J-Xmx640m -J-Xss2m -J-XX:PermSize=60m -J-XX:MaxPermSize=240m -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-ea -J-XX:+UseFastAccessorMethods -J-XX:+UseStringCache -J-XX:+OptimizeStringConcat -J-XX:+UseCompressedOops"
On my system "/opt/java/java" is a symlink to my default JDK_HOME.
--
Lew
[toc] | [prev] | [next] | [standalone]
| From | Knute Johnson <nospam@rabbitbrush.frazmtn.com> |
|---|---|
| Date | 2013-02-21 07:50 -0800 |
| Message-ID | <kg5flm$3ik$2@dont-email.me> |
| In reply to | #2517 |
On 2/20/2013 22:53, Lew wrote:
> Isn't jdkhome ultimately set by the $JDK_HOME environment variable
> if it's defined?
>
> Or maybe it's just set by the netbeans.conf file. Here's mine, FWIW:
>
> $ cat ${NETBEANS_HOME}/etc/netbeans.conf
> #
> netbeans_default_userdir="${DEFAULT_USERDIR_ROOT}/7.3beta2"
> netbeans_default_cachedir="${DEFAULT_CACHEDIR_ROOT}/7.3beta2"
>
> netbeans_jdkhome=/opt/java/java
> netbeans_default_options="-J-Xms80m -J-Xmx640m -J-Xss2m -J-XX:PermSize=60m -J-XX:MaxPermSize=240m -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-ea -J-XX:+UseFastAccessorMethods -J-XX:+UseStringCache -J-XX:+OptimizeStringConcat -J-XX:+UseCompressedOops"
>
> On my system "/opt/java/java" is a symlink to my default JDK_HOME.
>
I don't know. Apparently I was using _10 when I installed NetBeans and
it isn't smart enough to figure out the change.
So I changed the netbeans.conf file and I don't get the dialog any more.
knute...
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.help
csiph-web