NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

NetBeans 6.8 versus JDK-6u18-windows-i586

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
nelChai



Joined: 10 Feb 2010
Posts: 5

PostPosted: Wed Feb 10, 2010 10:28 pm    Post subject: NetBeans 6.8 versus JDK-6u18-windows-i586 Reply with quote

Hello world.

I cannot get the NetBeans 6.8 installer to recognize JDK-6u18-windows-i586 as a valid and compatibile JDK installation. Please help.



Sequence up to this post.

Loaded JRE1.6.0_18 off Java site
Loaded JDK1.6.0_18 off Java site

I have used the online Java tester to confirm integrity.

Antivirus, blockers etc all set to allow the download. This is not a browser prob.


Attempting to download and install netbeans-6.8-ml-windows.exe

Everything goes fine until final installation screen where it asks for destinations.

I reviewed these forums and found a post titled "Unable to install netbeans 6.8." Posted on 9 feb 2010.

Within that post the individual was using JDK 1.6.0.16 and could not get the NetBeans 6.8 installer to recognize destination. Their error stated:
" unable to locate JDK, install it. If installed point the JDK location to installer with -javahome installer argument ".


Writer was advised to use
Netbeans-6.8-ml-windows.exe --javahome "C\Sun\SDK\Jdk"


Note that their error was an inability to LOCATE the JDK


I receive an error which says
> the installer could not find A COMPATIBLE JDK INSTALLATION, specify it manually. <


Again,
JDK1.6.0_18
Netbeans-6.8-ml-windows.exe

The other post recommendation was
Netbeans-6.8-ml-windows.exe --javahome "C\Sun\SDK\Jdk"


I have tried several variations of the destination path recommended for the other post. These include
Netbeans-6.8-ml-windows.exe --javahome "C:\Sun\javathird"
Netbeans-6.8-ml-windows.exe --javahome "C:\Sun\javathird\jdk"
Netbeans-6.8-ml-windows.exe --javahome "C:\Sun\javathird\jdk-6u18-windows-i586"
Netbeans-6.8-ml-windows.exe --javahome "C\Sun\javathird\jdk-6u18-windows-i586"
Netbeans-6.8-ml-windows.exe --javahome C\Sun\javathird\jdk-6u18-windows-i586



[javathird is the file folder for this attempt to download --- have attempted to use the standard C\Sun\SDK\Jdk as well without success. Yes, that folder has a copy of the JDK ]



Every time, the error message that the installer cannot find an appropriate version of the JDK remains unchanged.

I look on the Sun website http://www.java.com/en/download/help/index.xml

------ at the bottom of the page is a text grid which states that the
current version name > Java 6 Update x <
replaces the old name > JRE 1.6 <
other legacy formats > 1.6.0_0x <


Question
What is going on here? It feels as though the NetBeans 6.8 installer is unaware of the new file names for JDK1.6.0_18 and therefore labels it as an unacceptable version of the JDK.

Or am I doing something incorrect with the system installers and such?

Thanks for your consideration.

nelChai
Back to top
ChuckBing
Posted via mailing list.





PostPosted: Thu Feb 11, 2010 4:39 am    Post subject: NetBeans 6.8 versus JDK-6u18-windows-i586 Reply with quote

nelChai wrote:
Quote:

/clip/
Sequence up to this post.

Loaded JRE1.6.0_18 off Java site
Loaded JDK1.6.0_18 off Java site


As a guess you probably installed the JDK first and the JRE last. If so, the
JRE appears to have overwritten something that caused the problem. A JDK
install includes, by default, the JRE. Try uninstalling both (in reverse
order of install) and then install only the JDK.
--
View this message in context: http://old.nabble.com/NetBeans-6.8-versus-JDK-6u18-windows-i586-tp27540168p27542277.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com.
Back to top
Dmitry Lipin
Posted via mailing list.





PostPosted: Thu Feb 11, 2010 7:30 am    Post subject: NetBeans 6.8 versus JDK-6u18-windows-i586 Reply with quote

Hi,

Prior to NetBeans installation, you should have JDK properly installed.
NetBeans Installer does not install the JDK using its installer but can
use JDK which is already installed. To do that, run
JDK-6u18-windows-i586.exe and proceed with the wizard.

After JDK/JRE installation finishes, you can simply double-click on
Netbeans-6.8-ml-windows.exe and that would do the trick.

If not, please run
Netbeans-6.8-ml-windows.exe --javahome <path-to-jdk6u18-installed>, e.g.
Netbeans-6.8-ml-windows.exe --javahome "C:\Program Files\Java\jdk1.6.0_18"

If that still does not help, please check that java is installed:
"C:\Program Files\Java\jdk1.6.0_18\bin\java" -version
should give
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode, sharing)

If it really the case, run
Netbeans-6.8-ml-windows.exe --javahome "C:\Program
Files\Java\jdk1.6.0_18" --verbose --output out.txt
and post here out.txt file.

Thanks,
Dmitry

On 11.02.2010 1:28, nelChai wrote:
Quote:
Hello world.

I cannot get the NetBeans 6.8 installer to recognize JDK-6u18-windows-i586 as a valid and compatibile JDK installation. Please help.



Sequence up to this post.

Loaded JRE1.6.0_18 off Java site
Loaded JDK1.6.0_18 off Java site

I have used the online Java tester to confirm integrity.

Antivirus, blockers etc all set to allow the download. This is not a browser prob.


Attempting to download and install netbeans-6.8-ml-windows.exe

Everything goes fine until final installation screen where it asks for destinations.

I reviewed these forums and found a post titled "Unable to install netbeans 6.8." Posted on 9 feb 2010.

Within that post the individual was using JDK 1.6.0.16 and could not get the NetBeans 6.8 installer to recognize destination. Their error stated:
" unable to locate JDK, install it. If installed point the JDK location to installer with -javahome installer argument ".


Writer was advised to use
Netbeans-6.8-ml-windows.exe --javahome "C\Sun\SDK\Jdk"


Note that their error was an inability to LOCATE the JDK


I receive an error which says

Quote:
the installer could not find A COMPATIBLE JDK INSTALLATION, specify it manually.<


Again,
JDK1.6.0_18
Netbeans-6.8-ml-windows.exe

The other post recommendation was
Netbeans-6.8-ml-windows.exe --javahome "C\Sun\SDK\Jdk"


I have tried several variations of the destination path recommended for the other post. These include
Netbeans-6.8-ml-windows.exe --javahome "C:\Sun\javathird"
Netbeans-6.8-ml-windows.exe --javahome "C:\Sun\javathird\jdk"
Netbeans-6.8-ml-windows.exe --javahome "C:\Sun\javathird\jdk-6u18-windows-i586"
Netbeans-6.8-ml-windows.exe --javahome "C\Sun\javathird\jdk-6u18-windows-i586"
Netbeans-6.8-ml-windows.exe --javahome C\Sun\javathird\jdk-6u18-windows-i586



[javathird is the file folder for this attempt to download --- have attempted to use the standard C\Sun\SDK\Jdk as well without success. Yes, that folder has a copy of the JDK ]



Every time, the error message that the installer cannot find an appropriate version of the JDK remains unchanged.

I look on the Sun website http://www.java.com/en/download/help/index.xml

------ at the bottom of the page is a text grid which states that the
current version name > Java 6 Update x<
replaces the old name> JRE 1.6<
other legacy formats > 1.6.0_0x<


[Question]
What is going on here? It feels as though the NetBeans 6.8 installer is unaware of the new file names for JDK1.6.0_18 and therefore labels it as an unacceptable version of the JDK.

Or am I doing something incorrect with the system installers and such?

Thanks for your consideration.

nelChai




Back to top
nelChai



Joined: 10 Feb 2010
Posts: 5

PostPosted: Thu Feb 11, 2010 9:17 am    Post subject: Reply with quote

First, I want thank everyone who is reviewing this issue. Special thanks are extended to those who are trying to help me with it.


Let me say first that this system is 2 weeks old and is intended for dedication to programming and internet downloads. It is essentially a "clean" system.


********
before latest download run attempt

start ---> run ---> entered "C:\Program Files\Java\jdk1.6.0_18\bin\java" -version in the open dialog
click ok
C:\Program Files\Java\jdk1.6.0_18\bin refers to a location that is unavailable. It could be on a hard drive on the computer or on a network. Check to make sure that the disk is properly inserted, or that you are connected to the internet or your network, and then try again. If it still cannot be located, the information might have been moved to a different location.
click ok to clear error message

no disk
not to be internet run
not on a network
file must be in other location

I see only the JRE6 file folder within the Program Files\Java structure

Go to Local Disk C ---> Sun ---> java ---> jdk1.6.0_18
this folder has the following
jdk1.6.0_18 windows installer package 425kb
sd160180
sp160180
ss160180
sz160180
sb160180
sj160180
sr160180
st160180

*****
I go through the download process from Java site
receive this popup
> this software has already been installed on your computer. would you like to reinstall it? <
click yes
loops back to same popup and message
does this repeatedly
click no
popup closes

start ---> run ---> entered "C:\Program Files\Java\jdk1.6.0_18\bin\java" -version in the open dialog
click ok
C:\Program Files\Java\jdk1.6.0_18\bin refers to a location that is unavailable. It could be on a hard drive on the computer or on a network. Check to make sure that the disk is properly inserted, or that you are connected to the internet or your network, and then try again. If it still cannot be located, the information might have been moved to a different location.
click ok to clear error message

reexamine files discussed above and nothing has changed

********
Question

one part of the system seems to recognize JDK as being on my system yet others do not

????
Back to top
nelChai



Joined: 10 Feb 2010
Posts: 5

PostPosted: Thu Feb 11, 2010 9:21 am    Post subject: Reply with quote

To ChuckBing Post



Thank you very much for your reply.
I am uncertain as to which program to remove first from my add remove programs list.
Follows are my reasons for hesitation.
Please help.


**********
IN THE BEGINNING
The first thing I did was attempt to download the
JDK + NetBeans Bundle
these are linked on the www.java.sun.com site

when this did not allow the netbeans to complete the install process
contacted sun microsystems and said
> have downloaded the jdk package. Am trying to run as for the installer. Receive -- jdk installer: wrapper, createfile failed with error 5 <

their reply was basically to make sure my firewall was off etc --- the basics!
of course checked and those were not issues

went back to the java site
directed me to www.liveperson.com
paid $45 to > accurate java expert < to use teamview to correct these issues

he then removed a few file folders from my registry, downloaded ccleaner, did a scan for issues in the registry and fixed all

he continued with a download and installation of the JRE
verified that it was working
required payment
and left

JDK was still inoperative.
I do not recall if he removed JDK in process of "fixing" the JRE
probably did

*******
I then tried to download the JDK and netbeans again
received prompt stating that the JDK was already on the system and whether I wanted to overwrite
I said yes
download and installation went fine for the JDK

********
then tried to download netbeans
download went fine --- it was the installer that collapsed
it wanted to find an acceptable version of the JDK but could not recognize 6u18

after a few more attempts with sun etc decided to try netbeans forums

**********
SUMMARY
had problems with JDK NetBeans bundle before downloading JRE independently
> accurate java expert < downloaded JRE
not sure if he removed JDK NetBeans bundle
I then retried the download of JDK
prompted already on system
overwrote
everything OK
tried to download NetBeans
installer wont identify 6u18 as valid JDK

**********
I do not feel this to be a sequence issue
lets try it anyway

**********
control panel ---> add remove programs

there are two java items listed here
java 6 update 18 --- 97.15MB
java se development kit 6 update 18 --- 137.00MB

there are no other java entries under this window -- which should be removed first?
need to know file sizes for the JDK and the JRE

**********
Testing to see if what I have works and not a partial load

go to www.java.com/en
click free java download
click test your java virtual machine
> your java is working - latest java installed - your java config is as follows - vendor sun --- version java 6 update 18 --- os windows xp 5.1 --- architecture x86 <


**********
JRE File size

go to http://java.sun.com/javase/downloads/index.jsp
click on java platform JRE
select windows
click license agreement
click continue
see JRE-6u18-windows-i586.exe file with 15.2 MB size
NOTE --- neither file in my add remove programs list is this size.


**********
JDK File size

Back arrow to
http://java.sun.com/javase/downloads/index.jsp
click on java platform JDK
select windows
click download
enter information for login
click login
see
java se development kit 6u18
JDK-6u18-windows-i586.exe file with 76.29 MB size
NOTE --- neither file in my add remove programs list is this size.


**********
Verify JDK File Size

when I click on the underlined link for the jdk-6u18-windows-i586.exe
popup states do you want to run or save this file
name: jdk-6u18-windows-i586.exe
type: application, 76.5MB
from: cds-esd.sun.com

when I click the download selected with sun download manager
popup says sorry! you must check the box next to one or more files to download
check the box next to the name
I click the download selected with sun download manager again
popup says do you want to open or save this file
name: 1265873108827-integrated.jnlp
type: jnlp file, 1.22KB
from: cds.sun.com
click open

warning security popup about unverified applications digital signature
click run
download manager license pops up
click accept
sun download manager set options and proxies popup
select ok without changing anything
sun download manager pops up
file jdk-6u18-windows-i586.exe already exists. what do you want to do with it
select restart download from beginning
click ok
download manager shows that the jdk-6u18-windows-i586.exe file size is 78414KB
I do not start the download --- instead close window


CONCLUSIONS
1. either method --- clicking the box and the download selected with sun download manager or simply clicking the link will download the same file
2. the file size is appx 76MB
3. neither program recognized in my add remove programs directory are 76MB in size
4. the download manager recognizes that this file is already installed on my system
5. where is it?

**********
Looking at the C Drive Part 1

local disk c: ---> sun ---> java --->
file folder for AU --- contains 2 file cabinets and the au windows installer package
file folder for jre1.6.0_18 --- contains 1 file cabinet and the jre1.6.0_18 windows installer package
file folder for jdk1.6.0_18 --- contains 8 file cabinets and the jdk1.6.0_18 windows installer package

I named a file ---> java second attempt
within is an icon titled
> jre-6u18-windows-i586
> java platform se binary
> sun microsystems, inc

rt click --->properties
size = 15.5MB

NOTE --- this confirms that the file sent by Sun at 15MB was received as 15MB

I named another file ---> javathird
within is an icon titled
> jdk-6u18-windows-i586

rt click ---> properties
size = 76.5MB

NOTE --- this confirms that the file sent by Sun at 76MB was received as 76MB

**********
Looking at the C Drive Part 2
local disk c: ---> program files ---> java ---> jre6 --->
file folder for bin
file folder for lib
file folder for launch4j-tmp
rich text doc for 10 license files
copyright file
readme file --- discusses legality of java JRE redistribution
thirdpartylicensereadme file
html welcome file


**********
nothing else in any file folder is relevant to this

where are the programs with
java 6 update 18 --- 97.15MB
java se development kit 6 update 18 --- 137.00MB

Question

which one do I remove first?


**********
JDK File size = 76MB
JRE File size = 15MB
Back to top
nelChai



Joined: 10 Feb 2010
Posts: 5

PostPosted: Fri Feb 12, 2010 2:56 am    Post subject: Reply with quote

TRYING TO FIND BIN VIA COMMAND PROMPT --- PART 1
start ---> all programs ---> accessories ---> command prompt

C:\Documents and Settings\New User> "C:\Program Files\Java\jdk1.6.0_18\bin\java" -version
The system cannot find the path specified


***********
REMOVALS
control panel ---> add remove programs ---> java 6 update 18
click remove
the following apps should be closed --- wildblue mail
click retry
removed

highlight java se development kit 6 update 18
click remove
are you sure
click yes
fatal error during installation
click ok
try again
same error
java se development kit 6 update 18 still on system


*************
DOWNLOAD AND INSTALL AGAIN
go to http://java.sun.com/javase/downloads/widget/jdk_netbeans.jsp
click windows platform
click download
enter login user name and password
click login and continue
ensure firewall is off
click jdk-6u18-nb-6_8-windows-ml.exe --- file size = 139.42MB

NOTE the ap which remains on my system is java se development kit 6 update 18
NOTE this ap size is 137 MB
NOTE the file I am about to try to download is 139MB
NOTE this is probably the same file when one considers the installer wrappers and such
NOTE this implies that my system wont remove the JDK 6U18 NetBeans 6.8 bundle after first installation attempt!

click run on the do you want to run or save this file prompt
wait
run
java se development kit and netbeans ide installer
installation size 494.4MB
next
accept terms
next
install jdk to
c:\program files\java\jdk1.6.0_18
next
install the netbeans to
c:\program files\netbeans 6.8
JDK for the netbeans IDE
c:\program files\java\jdk1.6.0_18
next
install
installer % screens
setup complete screen
uncheck contribute
check register
click finish
autoload of webpage https://inventory.sun.com/RegistrationWeb/register/urn:st:d77baa25-21a9-4e4c-a2e4-84f23e93ad59?product=nb&locale=en
click box accept terms of use for registering
click register now
thank you for registering
I click off the website


********
NETBEANS ICON 1
double click netbeans icon on my desktop
error message
cannot locate java installation in specified jdkhome: C:\program files\java\jdk1.6.0_18
do you want to try to use default version
click yes
error message
cannot find java 1.5 or higher
click ok


********
NETBEANS ICON 2
right click netbeans icon
run as
off click protect my computer
click ok
error message
cannot locate java installation in specified jdkhome: C:\program files\java\jdk1.6.0_18
do you want to try to use default version
click yes
error message
cannot find java 1.5 or higher
click ok


********
NETBEANS ICON 3
right click netbeans icon
open
error message
cannot locate java installation in specified jdkhome: C:\program files\java\jdk1.6.0_18
do you want to try to use default version
click yes
error message
cannot find java 1.5 or higher


********
CHECK START PANEL
start ---> netbeans
same error sequence


********
CHECK ADD REMOVE
add or remove programs
now it reveals two programs related to Java
java se development kit 6 update 18 = 137MB
netbeans ide 6.8 = 186MB


********
TRYING TO FIND BIN VIA COMMAND PROMPT --- PART 2
start ---> all programs ---> accessories ---> command prompt

C:\Documents and Settings\New User> "C:\Program Files\Java\jdk1.6.0_18\bin\java" -version
The system cannot find the path specified


********
NOTE
I did not initially know that the JRE was part of the JDK. I assumed the components necessary to read the Java language would be part of the kit used to develop new programs in it. Essentially, that the JRE was a part of the JDK. I attempted to download the JDK NetBeans bundle rather than the JRE. The NetBeans bundle is not necessary for programming, however, it does simplify life by pulling one out of the MSDOS antiquarianism of just using a command line prompt system with java and javac.

If comments by others are accurate, I should not need to download the JRE independently of the JDK and NetBeans. It should be integrated.

Evil or Very Mad Question Evil or Very Mad
********
CONCLUSIONS
1. It still feels to me as though this version of the NetBeans IDE cannot identify this version of the JDK
2. Something Sun downloaded to my system is hotel california. Once on, never off.
3. Perhaps the download from the website for JDK 6u18 is hollow and does not actually do anything?
4. Perhaps the JRE is not part of the JDK and there is a unique sequence downloaders must follow to have a fully functional system?
5. Perhaps the JDK does not download with the NetBeans bundle?
Back to top
nelChai



Joined: 10 Feb 2010
Posts: 5

PostPosted: Fri Feb 12, 2010 3:08 am    Post subject: Reply with quote

Wife - G*d I love her - just crooked over my shoulder

"Dear, wasn't the bundle download supposed to be 494 MB?"

"Yes dear"

Wasn't the first program listed as being in the add remove 137MB in size?"

"Yes dear"

Wasn't the second program 186 MB?

"Yes dear"

"What happened to the other 171MB?


137 + 186 = 323

494 - 323 = 171MB

Mad
Back to top
Nan Null
Posted via mailing list.





PostPosted: Fri Feb 12, 2010 4:17 pm    Post subject: NetBeans 6.8 versus JDK-6u18-windows-i586 Reply with quote

This should be absolutely easy.

1) Uninstal, using Windows add/remove tool inisde the control panel.
Restart the machine after that
2) Download and install the JDK, change that default path, do not use
anything has space in it. for example: c:\jdk1.6.0
3) During installation, if you select to install the JRE, then change
the path to C:\jre1.6.0. Else, don't install it
4) Download the zip version of Netbeans, an edit the file
<netbeans>/etc/netbeans.conf

go do the netbeans home key, and change the path to the JDK (c:\jdk1.6.0)

If you don't want to do that, then here's how to fix your current issue:

1) Find out where you have installed the JDK. This is the basic first
step. This is the JDK, not the JRE
Make sure the path exists, and the stuffs are in there
2) When set the jdkhome, make sure if there is a space in the JDK
path, escape/quote it properly.
3) Go to the command prompt and do this:
echo %jdkhome%
echo %JAVA_HOME%
echo %JDK_HOME%
and see what you got.
4) Do the installation again, with the correct JDK path.

It seems you jumped the gun, and doesn't even know the step #1.
Back to top
Nan Null
Posted via mailing list.





PostPosted: Fri Feb 12, 2010 5:40 pm    Post subject: NetBeans 6.8 versus JDK-6u18-windows-i586 Reply with quote

Please also try to download and install the JDK and Netbeans
separately, not as a bundle.

On Fri, Feb 12, 2010 at 11:17 AM, Nan Null <address-removed> wrote:
Quote:
This should be absolutely easy.

1) Uninstal, using Windows add/remove tool inisde the control panel.
Restart the machine after that
2) Download and install the JDK, change that default path, do not use
anything has space in it.
Back to top
emiddio



Joined: 07 Sep 2009
Posts: 233

PostPosted: Fri Feb 12, 2010 6:52 pm    Post subject: NetBeans 6.8 versus JDK-6u18-windows-i586 Reply with quote

install jdk first; you can have more than one version of a jdk installed --
i do. i have both 32/64 bit and multiple versions installed.

jdk installs both jre/jdk - by default

you can verify/test that jdk is installed without installing netbeans.

try "java -version"
if java.exe is in path you will see the version;
if not you change dir to the installation/bin directory

could be install-dir/jre/bin or install-dir/bin; jdk1.6.05 has both

you must be able to invoke java -version somehow successfully.


netbeans does not install jdk or jre -- you need jdk installed first.

i am running jdk1.6.0_17 64bit jdk -- should be close enough to 1.6.0_18 for
this discussion.

gary
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo