hipal
asked on
hibernate startNetworkServer.bat
I am not able to start the server when I click on
startNetworkServer.bat
Window appears for a second and then disappears/
startNetworkServer.bat
Window appears for a second and then disappears/
what exactly is it starting?
Your file startNetworkServer.bat is a type of script file open it in notepad and paste the contents in here then tell us what you want the file to do when you click it. Making the computer hibernate should be simple enough?
ASKER
i AM SORRY .. I FORGOT TO WRITE IT IS FOR DB DERBY
@echo off
@REM Licensed to the Apache Software Foundation (ASF) under one
@REM or more contributor license agreements. See the NOTICE file
@REM distributed with this work for additional information
@REM regarding copyright ownership. The ASF licenses this file
@REM to you under the Apache License, Version 2.0 (the
@REM "License"); you may not use this file except in compliance
@REM with the License. You may obtain a copy of the License at
@REM http://www.apache.org/licenses/LICENSE-2.0
@REM Unless required by applicable law or agreed to in writing,
@REM software distributed under the License is distributed on an
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@REM KIND, either express or implied. See the License for the
@REM specific language governing permissions and limitations
@REM under the License.
CALL "%~dp0derby_common.bat" %*
if "%_JAVACMD%"=="" goto end
if "%_USE_CLASSPATH%"=="no" goto runNoClasspath
if not "%CLASSPATH%"=="" goto runWithClasspath
:runNoClasspath
"%_JAVACMD%" %DERBY_OPTS% -classpath "%LOCALCLASSPATH%" org.apache.derby.drda.Netw orkServerC ontrol start %DERBY_CMD_LINE_ARGS%
goto end
:runWithClasspath
"%_JAVACMD%" %DERBY_OPTS% -classpath "%CLASSPATH%;%LOCALCLASSPA TH%" org.apache.derby.drda.Netw orkServerC ontrol start %DERBY_CMD_LINE_ARGS%
goto end
:end
set _JAVACMD=
set DERBY_CMD_LINE_ARGS=
@echo off
@REM Licensed to the Apache Software Foundation (ASF) under one
@REM or more contributor license agreements. See the NOTICE file
@REM distributed with this work for additional information
@REM regarding copyright ownership. The ASF licenses this file
@REM to you under the Apache License, Version 2.0 (the
@REM "License"); you may not use this file except in compliance
@REM with the License. You may obtain a copy of the License at
@REM http://www.apache.org/licenses/LICENSE-2.0
@REM Unless required by applicable law or agreed to in writing,
@REM software distributed under the License is distributed on an
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@REM KIND, either express or implied. See the License for the
@REM specific language governing permissions and limitations
@REM under the License.
CALL "%~dp0derby_common.bat" %*
if "%_JAVACMD%"=="" goto end
if "%_USE_CLASSPATH%"=="no" goto runNoClasspath
if not "%CLASSPATH%"=="" goto runWithClasspath
:runNoClasspath
"%_JAVACMD%" %DERBY_OPTS% -classpath "%LOCALCLASSPATH%" org.apache.derby.drda.Netw
goto end
:runWithClasspath
"%_JAVACMD%" %DERBY_OPTS% -classpath "%CLASSPATH%;%LOCALCLASSPA
goto end
:end
set _JAVACMD=
set DERBY_CMD_LINE_ARGS=
Don't start it by clicking: change directory to the directory containing startNetworkServer.bat and start it by typing the name of the file and hitting return
(at the command line of course)
ASKER
not working that way too ..
says - File was unexpected at this time
says - File was unexpected at this time
think you'll find double clicking is starting it
it just gets started in the background
what makes you think it is not running?
it just gets started in the background
what makes you think it is not running?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
but then why I my window getting closed :S ..wasted so much a time because of this :(
>>alternatively find derbyrun.jar and run this
That's *not* doing what the batch file is attempting to do
That's *not* doing what the batch file is attempting to do
ASKER
ohh .. then ?
> ohh .. then ?
don't worry, his comments are wrong. he would appear to have not actually ever used derby
don't worry, his comments are wrong. he would appear to have not actually ever used derby
You might get away with it but the batch file does things other than starting the networked version of Derby