Here is the path to StartSonar batch file:
C:\sonarqube\sonarqube-9.7.1.62043\bin\windows-x86-64>StartSonar.bat
And here is my JAVA_HOME environment variable path:
C:\Program Files\Java\jdk1.8.0_291\bin
I use the same path to setup SONAR_JAVA_PATH environment variable but all I get is:
Starting SonarQube...
'"C:\Program Files\Java\jdk1.8.0_291\bin"' is not recognized as an internal or external command,
operable program or batch file.
I experimented with different paths to java.exe file, but nothing was working.
Here is the directory content of bin file in JAVA_HOME path:
13.10.2021. 10:56 20.224 appletviewer.exe
13.10.2021. 10:56 20.224 extcheck.exe
13.10.2021. 10:56 20.224 idlj.exe
13.10.2021. 10:56 41.216 jabswitch.exe
13.10.2021. 10:56 20.224 jar.exe
13.10.2021. 10:56 20.224 jarsigner.exe
13.10.2021. 10:56 20.224 java-rmi.exe
13.10.2021. 10:56 276.224 java.exe
13.10.2021. 10:56 20.224 javac.exe
13.10.2021. 10:56 20.224 javadoc.exe
13.10.2021. 10:56 157.440 javafxpackager.exe
13.10.2021. 10:56 20.224 javah.exe
13.10.2021. 10:56 20.224 javap.exe
//other exe files related to jdk
You see that there is java.exe file here, so I really don't know where to go from here.
I did restart cmd after setting env variable.
As requested, here is the output from this commandline, #For %G In (java StartSonar.bat) Do #Echo %~$PATH:G, entered within my working Command Prompt window:
StartSonar.bat was unexpected at this time.
The output of commandline Path:
PATH=C:\Program Files\Eclipse Adoptium\jdk-17.0.5.8-hotspot\bin;C:\Program Files\Java\jdk1.8.0_291\bin;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\PostgreSQL\14\bin;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\dotnet\;C:\msys64\mingw64\bin;C:\Users\pk\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\Azure Data Studio\bin;C:\Users\pk\.dotnet\tools;C:\Users\pk\AppData\Local\GitHubDesktop\bin
This is a temporary post, not an answer. I have submitted it, only to assist you to fix your PATH environment variable.
Open the GUI for your environment variables, starting with the System environment, delete everything in the box. Now repopulate it with the following, exactly as below, in the same order.
%SystemRoot%\System32
%SystemRoot%
%SystemRoot%\System32\Wbem
%SystemRoot%\System32\WindowsPowerShell\v1.0
%SystemRoot%\System32\OpenSSH
%ProgramFiles%\NVIDIA Corporation\NVIDIA NvDLISR
%SystemDrive%\msys64\mingw64\bin
%ProgramFiles%\nodejs
%ProgramFiles%\dotnet
%ProgramFiles%\Java\jdk1.8.0_291\bin
%ProgramFiles%\Git\cmd
%ProgramFiles%\Azure Data Studio\bin
%ProgramFiles%\PostgreSQL\14\bin
%ProgramFiles%\Eclipse Adoptium\jdk-17.0.5.8-hotspot\bin
%ProgramFiles%\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn
%ProgramFiles%\Microsoft SQL Server\150\Tools\Binn
%ProgramFiles(x86)%\Microsoft SQL Server\150\Tools\Binn
%ProgramFiles%\Microsoft SQL Server\150\DTS\Binn
%ProgramFiles(x86)%\Microsoft SQL Server\150\DTS\Binn
Now switch to the User environment, delete everything in the box, then repopulate it with the following, exactly as below, in the same order.
%LocalAppData%\Microsoft\WindowsApps
%LocalAppData%\Programs\Microsoft VS Code\bin
%UserProfile%\.dotnet\tools
%LocalAppData%\GitHubDesktop\bin
Now, in your new cmd.exe instances, you should have your environment uncorrupted, and containing the correct/wanted paths.
Related
I have built a Console Application using Code::Blocks 20.03, which was installed using codeblocks-20.03mingw-setup.exe. The defaults for the installation directory(see Note01) and the installation type (Full), were used.
I tried to Debug by using the Debug menu, clicking Start/Continue, and debugging failed.
I guess the important information from the log of what happened is
Starting the debuggee failed: No executable specified, use `target exec'
The full output from trying to debug is given below.
My question is, how do you debug using Code::Blocks 20.03 (the "mingw" version)?
Full Output from trying to run a debugging session follows.
Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: C:\CodeBlocks20.03Small\ConsoleApplication\program01INc\
Adding source dir: C:\CodeBlocks20.03Small\ConsoleApplication\program01INc\
Adding file: C:\CodeBlocks20.03Small\ConsoleApplication\program01INc\bin\Debug\program01INc.exe
Changing directory to: C:/CodeBlocks20.03Small/ConsoleApplication/program01INc/.
Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Program Files\Microsoft MPI\Bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft\Web Platform Installer;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Skype\Phone;C:\Program Files (x86)\Git\bin;C:\Program Files (x86)\Git\cmd;C:\Users\Roger\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0;c:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn;c:\Program Files\Microsoft SQL Server\110\DTS\Binn;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\FreeFem++;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Users\Roger\AppData\Local\Programs\Python\Python38-32\Scripts;C:\Users\Roger\AppData\Local\Programs\Python\Python38-32;C:\Users\Roger\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64;C:\texlive\2017\bin\win32;C:\Users\Roger\AppData\Local\Microsoft\WindowsApps;\;C:\Program Files (x86)\clisp-2.49
Starting debuggee: C:\MinGW\bin\gdb.exe -nx -fullname -quiet -args C:/CodeBlocks20.03Small/ConsoleApplication/program01INc/bin/Debug/program01INc.exe
done
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.6.1
Starting the debuggee failed: No executable specified, use `target exec'.
Debugger finished with status 0
===============================
In building my project I used the defaults from the Select Compiler dialog box.
Note01:
It looks as if you should (date 11th April 2021) always use the default directory, to install. I installed a version of Code::Blocks in C:\Program Files\CodeBlocksSmall when I went to uninstall it, the uninstaller would only accept C:\Program Files\CodeBlocks as the directory to uninstall from. I deleted the CodeBlocksSmall directory manually. I noticed this behaviour when I installed using codeblocks-20.03-setup.exe.
Related question
Starting the debuggee failed: No executable specified, use `target exec'
=======================
It looks as if a prior installation of MinGW was inadvertently being used by the attempted debugging session(this is no longer possible). See the involvement of the file
C:\MinGW\bin\gdb.exe, in the line
Starting debugger: C:\MinGW\bin\gdb.exe -nx -fullname -quiet -args
Now when I try to run a debugging session, failure occurs differently (see just after the next four lines).
It looks to me as if I need to at least to change the behaviour indicated by
Starting debugger: C:\MinGW\bin\gdb.exe -nx -fullname -quiet -args
to behaviour produced by
Starting debugger: C:\Program Files\CodeBlocks\MinGW\bin\gdb.exe -nx -fullname -quiet -args
Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: C:\Codeblocks20.03\ConsoleApp\program01INcForAnswer\
Adding source dir: C:\Codeblocks20.03\ConsoleApp\program01INcForAnswer\
Adding file: C:\Codeblocks20.03\ConsoleApp\program01INcForAnswer\bin\Debug\program01INcForAnswer.exe
Changing directory to: C:/Codeblocks20.03/ConsoleApp/program01INcForAnswer/.
Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Program Files\Microsoft MPI\Bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft\Web Platform Installer;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Skype\Phone;C:\Program Files (x86)\Git\bin;C:\Program Files (x86)\Git\cmd;C:\Users\Roger\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0;c:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn;c:\Program Files\Microsoft SQL Server\110\DTS\Binn;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\FreeFem++;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Users\Roger\AppData\Local\Programs\Python\Python38-32\Scripts;C:\Users\Roger\AppData\Local\Programs\Python\Python38-32;C:\Users\Roger\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64;C:\texlive\2017\bin\win32;C:\Users\Roger\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\clisp-2.49
Starting debugger: C:\MinGW\bin\gdb.exe -nx -fullname -quiet -args C:/Codeblocks20.03/ConsoleApp/program01INcForAnswer/bin/Debug/program01INcForAnswer.exe
failed
Another related question is at
code blocks failed message runing hello code
There, the error message is like the one shown just above, and see also below
Starting debugger: C:\MinGW\bin\gdb.exe -nx -fullname -quiet -args C:/Codeblocks20.03/ConsoleApp/program01INcForAnswer/bin/Debug/program01INcForAnswer.exe failed
Note that, in both cases, Code::Blocks is trying to invoke a debugger from the directory C:\MinGW\bin
To get debugging working, the type of fix described here wil be required if you install the MinGW version of Code::Blocks 20.03 on Windows, using codeblocks-20.03mingw-setup.exe ( the 8th April 2021 version, with the default installation accepted ).
What I did to get it to work was the following.
From the Settings menu I clicked on Debugger.., then on the left of the screen selected Default, a debugger type. This showed me Executable paths which was set to
C:\MinGW\bin\gdb.exe
I changed this to
C:\Program Files\Codeblocks\MinGW\bin\gdb.exe
I was then able to use the debugger.
I just installed Anaconda3 and when I open the Anaconda command prompt, it shows me this error:
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "C:\Users\owner\Anaconda3\lib\site-packages\conda\cli\main.py", line 138, in main
return activator_main()
File "C:\Users\owner\Anaconda3\lib\site-packages\conda\activate.py", line 996, in main
print(activator.execute(), end='')
File "C:\Users\owner\Anaconda3\lib\site-packages\conda\activate.py", line 180, in execute
return getattr(self, self.command)()
File "C:\Users\owner\Anaconda3\lib\site-packages\conda\activate.py", line 154, in activate
builder_result = self.build_activate(self.env_name_or_prefix)
File "C:\Users\owner\Anaconda3\lib\site-packages\conda\activate.py", line 288, in build_activate
return self._build_activate_stack(env_name_or_prefix, False)
File "C:\Users\owner\Anaconda3\lib\site-packages\conda\activate.py", line 314, in _build_activate_stack
conda_prompt_modifier = self._prompt_modifier(prefix, conda_default_env)
File "C:\Users\owner\Anaconda3\lib\site-packages\conda\activate.py", line 639, in _prompt_modifier
name=basename(prefix),
KeyError: 'openSim'
`$ C:\Users\owner\Anaconda3\Scripts\conda-script.py shell.cmd.exe activate C:\Users\owner\Anaconda3`
environment variables:
CIO_TEST=<not set>
CONDA_BAT=C:\Users\owner\Anaconda3\condabin\conda.bat
CONDA_EXE=C:\Users\owner\Anaconda3\condabin\..\Scripts\conda.exe
CONDA_ROOT=C:\Users\owner\Anaconda3
CONDA_SHLVL=0
GIT_LFS_PATH=C:\Program Files\Git LFS
HOMEPATH=\Users\owner
PATH=C:\Users\owner\Anaconda3;C:\Users\owner\Anaconda3\Library\mingw-w64\bi
n;C:\Users\owner\Anaconda3\Library\usr\bin;C:\Users\owner\Anaconda3\Li
brary\bin;C:\Users\owner\Anaconda3\Scripts;C:\Users\owner\Anaconda3\bi
n;C:\Users\owner\Anaconda3\condabin;C:\Users\owner\Documents\R\win-
library\3.3\Rtools\bin;C:\Program Files (x86)\Common
Files\Oracle\Java\javapath;C:\Program Files
(x86)\STMicroelectronics\st_toolset\asm;C:\Program Files
(x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOW
S\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\Win
dowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management
Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management
Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management
Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management
Engine Components\IPT;C:\Program Files\Microsoft SQL
Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft
SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL
Server\120\Tools\Binn\;C:\Users\owner\.dnx\bin;C:\Program
Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL
Server\130\Tools\Binn\;C:\Program Files\nodejs\;C:\Program
Files\doxygen\bin;C:\Program Files\PuTTY\;C:\Program Files\Git
LFS;C:\Program Files\Git\cmd;C:\Program
Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\WINDOWS\System32
\OpenSSH\;C:\Users\owner\Documents\Libraries\gradle-4.10.2\bin;C:\Andr
oid;C:\Windows\System32;C:\Users\owner\Anaconda3;C:\Users\owner\Anacon
da3\Scripts;C:\Users\owner\Anaconda3\Library\bin;C:\OpenSim 3.3\bin;C:
\Users\owner\Anaconda3;C:\Users\owner\Anaconda3\Library\mingw-w64\bin;
C:\Users\owner\Anaconda3\Library\usr\bin;C:\Users\owner\Anaconda3\Libr
ary\bin;C:\Users\owner\Anaconda3\Scripts;C:\Users\owner\AppData\Local\
Microsoft\WindowsApps;C:\Program Files (x86)\FCIV;C:\Users\owner\AppDa
ta\Roaming\npm;C:\Users\owner\Downloads\swigwin-3.0.12\swigwin-3.0.12\
;C:\Users\owner\AppData\Local\Google\Cloud SDK\google-cloud-
sdk\bin;MSVCP140.DLL;C:\Users\owner\AppData\Local\Programs\Microsoft
VS Code\bin;C:\flutter\bin;C:\Users\owner\AppData\Local\Android\Sdk\to
ols;C:\Users\owner\AppData\Local\Android\Sdk\platform-
tools;C:\Users\owner\AppData\Local\Android\Sdk\build-
tools\28.0.3;C:\Users\owner\AppData\Roaming\Pub\Cache\bin;C:\Program
Files (x86)\Microsoft Visual Studio\Installer
PROTOC_PATH=C:\Users\owner\Documents\Libraries\protobuf-3.3.0\src\protoc\Debug\pro
toc.exe
PSMODULEPATH=;C:\Users\owner\AppData\Local\Google\Cloud SDK\google-cloud-
sdk\platform\PowerShell
PYTHONIOENCODING=UTF-8
REQUESTS_CA_BUNDLE=<not set>
SSL_CERT_FILE=<not set>
active environment : None
shell level : 0
user config file : C:\Users\owner\.condarc
populated config files : C:\Users\owner\.condarc
conda version : 4.7.12
conda-build version : 3.18.9
python version : 3.7.4.final.0
virtual packages :
base environment : C:\Users\owner\Anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\Users\owner\Anaconda3\pkgs
C:\Users\owner\.conda\pkgs
C:\Users\owner\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\owner\Anaconda3\envs
C:\Users\owner\.conda\envs
C:\Users\owner\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.7.12 requests/2.22.0 CPython/3.7.4 Windows/10 Windows/10.0.18362
administrator : False
netrc file : None
offline mode : False
An unexpected error has occurred. Conda has prepared the above report.
A similar error happens if I try to create a new environment and activate it. Any hint on what could be causing it? I see that that it's complaining about KeyError: 'openSim'. But I'm not sure what could be the root cause. The error message is not very explicit or at least I couldn't get anything from it.
I tried uninstalling Anaconda and OpenSim and installing them again with no luck in resolving the issue. Any hint is appreciated.
I found the solution to the problem which is so random that I thought I share it here. It's not easy (almost impossible) to figure out.
It looked like some configurations were cached and had to be manually deleted since even a fresh install of anaconda didn't resolve the issue.
I had to delete .condarc file in the anaconda directory to solve this issue.
For more info read this.
I am getting the below error on trying to restart the IWLS on JDEV
C:\Users\c-sutipirn\system11.1.2.2.39.61.83.1\DefaultDomain\bin\startWebLogic.cmd
[waiting for the server to complete its initialization...]
\Java\jdk1.7.0_25 was unexpected at this time. Process exited.
my path variable is set to:
C:\Oracle\product\11.2.0\client_2\bin;C:\Program Files (x86)\Windows
Kits\8.0\Windows Performance
Toolkit\;C:\app\client\product\12.1.0\client_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program
Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft
SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft\Web Platform
Installer\;C:\Program Files\Microsoft SQL
Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL
Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL
Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL
Server\110\Tools\Binn\ManagementStudio\;C:\Program Files
(x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files
(x86)\Subversion\bin;C:\Program Files
(x86)\Java\jre7\bin;C:\Oracle\Middleware\jdk160_24
Any help to resolve this issue.
11.1.2.2 needs JDK 6 to work.
Upgrade to either 12c or at least 11.1.2.4 and you will be able to run with JDK7.
Problem is that WebLogic server starting scripts (as startWebLogic.cmd and setDomainEnv.cmd ) refers system variables as %JAVA_HOME% (or %CLASSPATH%) without quotation e.g. "%JAVA_HOME%".
"%1 was unexpected at this time"
is shell error result caused by spaces in used system variables.
I'm solving similar problem with WebLogic 12.1.x server and I do not know simple solution, start script is pretty complex and hard to fix.
It seems that this can be related to the value of the PATH environment variable.
If it contains a path (with quotes) like ;"C:\Program Files (x86)\Java\jre7\bin"; (with a space) it will result in "Files was unexpected at this time".
Removing the quotes seems to resolve this (;C:\Program Files (x86)\Java\jre7\bin;) and using the short name could be an alternative (;C:\PROGRA~2\Java\jre7\bin;, try "dir /X" to get the short name).
Ran into similar issue. Turned out %PATH% was too long and blew up in c:\Oracle\Middleware\Oracle_Home\oracle_common\common\bin\shortenPaths.cmd
In my case, I just commented out with REM as follows:
REM if NOT "%PATH%"=="" (
call :handle_path
REM )
goto :EOF
PS: didn't see the EOF label so i also added :EOF at the end of the file
I solved it through path variables changes for windows, by following this steps:
define JAVA_HOME and MVN_HOME first as new env viriables
Update Path and add new viariables: %JAVA_HOME%\bin and %MVN_HOME%\bin
Make sure you do not have nay other variables with a full path name like: C:\Program Files.
I had this trouble.
If you wanna create new Oracle domain on weblogic, you should make comments on line with loop (for) in Oracle\Middleware\Oracle_Home\oracle_common\common\bin\config.cmd. After that call config.cmd through cmd.
I try generate dbml from sdf file.
So I localize sqlMetal util in: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin
Sdf DB file path: D:\DB_TEST\Spiri_SQL_CE_DB.sdf
So I try this command on generate dbml file:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin>sqlmetal.exe D:\DB_TEST\
Spiri_SQL_CE_DB.sdf /dbml:D:\DB_TEST\Spiri_SQL_CE_DB.sdf\Spiri_SQL_CE_DB.dbml
I get this error:
Error : SQM1007: There is an IO error and the output file 'D:\DB_TEST\Spiri_SQL_
CE_DB.sdf\Spiri_SQL_CE_DB.dbml' cannot be opened.
So I try this command:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin>sqlmetal.exe D:\DB_TEST\
Spiri_SQL_CE_DB.sdf /dbml:Spiri_SQL_CE_DB.dbml
But I get this error:
Error : Access to the path 'C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\
Bin\Spiri_SQL_CE_DB.dbml' is denied.
On the end I try this version of command:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin>sqlMetal /dbml:Spiri_SQL
_CE_DB.dbml D:\DB_TEST\Spiri_SQL_CE_DB.sdf
But I get same error:
Error : Access to the path 'C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\
Bin\Spiri_SQL_CE_DB.dbml' is denied.
I know that file Spiri_SQL_CE_DB.dbml doesn’t exist yet, but I try generate with sqlMetal turil this file, what is bad?
Copy both the SDF and DBML to a location where you have sufficient write/modify rights.
Else start the command prompt with elevated permissions (aka runas administrator).
BTW your first attempt is completely bogus.
OR do:
sqlMetal /dbml:D:\DB_TEST\Spiri_SQL_CE_DB.dbml D:\DB_TEST\Spiri_SQL_CE_DB.sdf
I have been trying to install Maven on my machine win 7 (64 bit)for the first time.I have a problem setting the path environment System variable . iam getting error JAVA_HOME is set to an invalid directory.
i have tried each and every method ehich is mentioned in stack over flow posts but i didnt get a solution. plz help me.![enter image description here][1]
here my variables are
CLASS_PATH:C:\Program Files\Java\jdk1.8.0_45\bin\lib
JAVA_HOME:C:\Program Files\Java\jdk1.8.0_45\
M2:%M2_HOME%\bin
M2_HOME:C:\Program Files\apache-maven-3.3.3
MAVEN_HOME:C:\Program Files\apache-maven-3.3.3
PATH:C:\ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Java\jdk1.8.0_45\bin;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files\MongoDB\Server\3.0\bin;%M2_HOME%\bin;
1> In Enviroment variable setup screen remove all variable to setup maven.
2> You need to set following variable
JAVA_HOME = C:\Program Files\Java\jdk1.8.0_45
MAVEN_HOME = C:\Program Files\apache-maven-3.3.3
3> In Path Variable click on edit then set follwing code
;%JAVA_HOME%\bin;%MAVEN_HOME%\bin