This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
After I updated jdk I cannot start Java DB form NetBeans. NetBeans is trying and traying and traying to start it, but never ends. jdk x64 version: 1.8.0_74 NetBeans IDE 8.1 (Build 201510222201) 1. Open Services window 2. Expand Databases tree 3. Select Java DB 4. Open context menu and select Start Server command Expected behavior: Java DB server starts Start of glassfish server also do not starts Java DB server.
I think you seen "normal" behavior (this is nice speak to say I most probably will turn this into an enhancement request): Please check the JavaDB settings: 1. Open Services tab 2. Expand Databases 3. Select Java DB 4. Open Context Menu 5. Choose properties 6. Change Java DB Installation to the new location in the new JDK folder (normally you'll have to replace the minor version in my case 66->74) 7. Start JavaDB (Btw. in my test in step 4 - only Properties is even selectable) Does this work for you? My assumption: When no db properties are present on first use the properties are populated by scanning the most probably locations for javadb and the installed DBs. This is persisted and when you upgraded your JDK you removed the JavaDB that was configured in netbeans. The enhancement would then be, to scan for an alternate location if the configure location fails.
Properties are correctly set to new location
To be be clear: 1. Please double check that the path is really correct there 2. Please attach message.log to this bug from a session where you tried to start java db (http://wiki.netbeans.org/FaqLogMessagesFile) 3. Are the start/stop options available and selectable in the context menu?
Paths are correct. I choosed them from dialog window. I attached my messages.log
Created attachment 158467 [details] log file
Start option is available and selectable in the context menu. Stop option is not selectable.
Thank you for checking - this looks ok so far. Please check 1. Do you get an output tab when you try to start javadb? If so, please paste output heere 2. Please try to start javadb manually: a) Open a command prompt b) Run: java -cp "<JAVA_DB_PATH>\lib\derby.jar;<JAVA_DB_PATH>\lib\derbytools.jar;<JAVA_DB_PATH>\lib\derbynet.jar" -Dderby.system.home=<DB_LOCATION> org.apache.derby.drda.NetworkServerControl start JAVA_DB_PATH is to be taken from the "Jaav DB Properties" Dialog (Java DB Installation) DB_LOCATION is from same dialog, second parameter c) Please copy the output of that incarnation here
May command: java -cp "C:\Program Files\Java\jdk1.8.0_74\db\lib\derby.jar;C:\Program Files\Java\jdk1.8.0_74\db\lib\derbytools.jar;C:\Program Files\Java\jdk1.8.0_74\db\lib\derbynet.jar" -Dderby.system.home=D:\Users\jsvelta\.netbeans-derby org.apache.derby.drda.NetworkServerControl start There is no output in stdout nor in stderr
There is problem with cs locale. When I set DERBY_OPTS=-Duser.language=en it starts from command line. It is possible to set DERBY_OPTD in netbeans?
see https://issues.apache.org/jira/browse/DERBY-6828
It is not possible to set system properties in NetBeans but there is a way how to set it programmatically: http://wiki.netbeans.org/FaqSysPropsDuringRun There is also a plugin which displays system properties in the IDE: http://plugins.netbeans.org/plugin/59068/netbeans-system-properties Verifying as invalid issue. Thanks for your update.