NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
martin_dk
Joined: 10 Jul 2009 Posts: 4
|
Posted: Fri Jul 10, 2009 6:54 am Post subject: --jdkhome not working in 6.7 |
|
|
I've succesfully used the commandline switch --jdkhome to specify the jdk location in many previous releases, but in 6.7 is does not work.
When starting I get "The JDK is missing..." error popup. I've tried severeal different JDK's all fail. And they all work in 6.5. Any suggestions? |
|
| Back to top |
|
 |
emiddio-verizon Posted via mailing list.
|
Posted: Fri Jul 10, 2009 7:06 pm Post subject: --jdkhome not working in 6.7 |
|
|
you could always add it back to etc/conf -- installation directory for
netbeans
i usually edit the file when i want a different jdk
gary
----- Original Message -----
From: "martin_dk" <address-removed>
To: <address-removed>
Sent: Thursday, July 09, 2009 11:54 PM
Subject: [nbusers] --jdkhome not working in 6.7
| Quote: | I've succesfully used the commandline switch --jdkhome to specify the jdk
location in many previous releases, but in 6.7 is does not work.
When starting I get "The JDK is missing..." error popup. I've tried
severeal different JDK's all fail. And they all work in 6.5. Any
suggestions?
|
|
|
| Back to top |
|
 |
martin_dk
Joined: 10 Jul 2009 Posts: 4
|
Posted: Mon Sep 21, 2009 5:51 am Post subject: |
|
|
using netbeans.conf does not change anything, exact same result:
As mentioned earlier using the exact same --jdkhome switch (or netbeans_jdkhome in netbeans.conf) works in all versions I've tried prior to 6.7.
I've tried several JDK's, and they all work in 6.5.
Funny thing is, netbeans do accept the jdkhome switch as it outputs the java version I stated when starting up:
| Code: |
Product Version = NetBeans IDE 6.7.1 (Build 200907230233)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15; Sun Microsystems Inc.
Runtime = Java(TM) SE Runtime Environment 1.6.0_10-b33
Java Home = c:\tools\j2sdk-se\1.6.0_10\jre |
This bit looks exactly like when running 6.5 (apart from product version ofcourse)
Last edited by martin_dk on Mon Sep 21, 2009 8:18 am; edited 2 times in total |
|
| Back to top |
|
 |
martin_dk
Joined: 10 Jul 2009 Posts: 4
|
Posted: Mon Sep 21, 2009 6:19 am Post subject: |
|
|
I can add than I'm using the zipped version of nb. All used to work just fine before 6.7:
DL zip, unzip somewhere, specify jdk using netbeans.conf or --jdkhome, launch. |
|
| Back to top |
|
 |
martin_dk
Joined: 10 Jul 2009 Posts: 4
|
Posted: Mon Sep 21, 2009 8:24 am Post subject: |
|
|
Found solution (or workaround as this is a bug IMO):
I'm using the --cp:a switch when launching to add some jars I need. Like:
| Code: | | --cp:a "c:\myjar.jar" |
This works in 6.x, but NOT in 6.7.x
Reason: they dont prepend a ";" anymore before inserting value in classpath. So in order to get --cp:a to work in 6.7 you have to prepend your own semicolon:
| Code: | | --cp:a ";c:\myjar.jar" |
Note: I'm also using the --cp:p but here they (still) append a ";" |
|
| Back to top |
|
 |
|
|
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
|
|