"The system cannot find the path specified." error message when trying to start GlassFish with asadmin - windows

I tried to follow The Java EE 6 Tutorial and start GlassFish with the command below. But I got an error message. How to solve this?
C:\glassfish3\bin>asadmin start-domain --verbose
The system cannot find the path specified.

Go to asenv.bat file in config directory
remove line set AS_JAVA="C:/Program Files(x86)/Java/"
retry asadmin.
It will work this time!.

I fixed this issue by editing glassfish3\glassfish\config\asenv.bat as described in domain1 not configured -- The system cannot find the path specified
then I got an error because no domains existed, that was solved by editing glassfish3\bin\asadmin.bat as described in Oracle Glassfish "There is no Domain" Issue Fix Solution

Hi I was facing the same issue. I am able to resolve the same issue by following below steps:
Go to \glassfish\config (Note: In my case it is c:\glassfish3\glassfish\config)
Now open asenv.bat in notepad.
Make the value of AS_JAVA same as JAVA_HOME environment variable.
Now open command prompt and go to the bin folder and run asadmin start-domain domain1.
If you are getting error that no domain exist then create new domain by following below link:
http://docs.oracle.com/cd/E19776-01/820-4497/create-domain-1/index.html

I got this error, when installing Java EE (which includes GlassFish) using 64 bit windows 7. As a reference installing same Java EE latest to my 64 bit Linux worked well and I could see how it set default domain up.
It seems that in my 64 bit Window 7 asadmin.bat looks my java from "C:\Program Files (x86)\Java\bin\java" even if I have installed 64 bit version in "C:\Program Files\Java\jdk1.7.0_10\bin".
asadmin.bat runs first "%~dp0..\glassfish\config\asenv.bat" and then studies where if guesses java is. There is something odd in this, almost in my configuration, but I can't fix this nicely
%JAVA% -jar "%~dp0..\glassfish\modules\admin-cli.jar" %*
I could manually set %JAVA% right, but how to set nicer correction?

Set your correct Java path in:
<glassfish_home>\glassfish\config\osgi.properties
e.g.
set AS_JAVA=C:\Program Files\Java\jdk1.7.0_80
Note: follow Oracle glassfish's release notes for the supported JDKs

Related

Unable to Install WebSphere Developer Tools (WDT)

I've downloaded https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/pot/LibertyPoT_17.0.0.1_WIN.zip but I'm stuck at step 1 of section "0.5 Install WebSphere Developer Tools (WDT)" in setup.pdf where I see
Am I doing something wrong?
Double-check paragraph at 0.3 Installing Liberty and the Java Runtime and its note:
To install for windows or linux,
a. Liberty is already installed for you {LAB_HOME)/wlp
b. The IBM JRE is already installed for you
{LAB_HOME)/wlp/java [...]
c. The IBM_JRE is set to default Java in
the {LAB_HOME)/wlp/etc/server.env
If you want to override this for a specific server create a server.env
file in the usr/servers/ directory.
*Note: If JAVA_HOME is already set in your shell, then you will need to “unset JAVA_HOME”. To check, execute “env| grep –i java_home”. If
it returns with a value, then execute “unset JAVA_HOME”
Then remind that Eclipse looks for jre/jdk based on vm parameter in eclipse.ini.
In the zip file downloaded it should be
-vm ..\wlp\java\bin\javaw.exe
It should be correct, anyway you could try setting an absolute path so you are sure it doesn't care about working directory.

install weblogic on console mode without xming

I'm trying to install weblogic server on Centos 7 with following instruction of oracle about console mode. Everything will be fine till weblogic file 's extracting on my computer. I get this message about
display enviroment variable failed
I google it and found xming as solution. But is there any solution to install weblogic without xming.
You need to do a silent install as mentioned. You can find the documentation here.
Basically, you need two files:
A response file
Here, you will set some parameters like ORACLE_HOME, proxy information if needed and installation type, etc.
An oraInst.loc file
In this file, you need to do the following(from documentation):
Replace oui_inventory_directory with the full path to the directory where you want the installer to create the inventory directory. Then, replace oui_install_group with the name of the group whose members have write permissions to this directory.
After doing all of this, you can run the command as follows;
java -jar distribution_name.jar -silent -responseFile file [-options] [()*]
I uploaded my own oraInst.loc and response files here for demonstration. I strongly suggest you to read the documentation though. Good luck.

java.lang.UnsatisfiedLinkError while integrating Epson JavaPOS for printing

I need help resolving this error.
java.lang.UnsatisfiedLinkError: no jp_co_epson_upos_firm_FirmNativeAccess_1_14_0001 in java.library.path
I want to use EpsonJavaPOS for printing.
Following are the steps I've succeeded so far.
Tried to install JavaPOS in windows 10(64 bit), But was partially successful
and hence copied the installation folder in windows 7 to windows 10.
I've configured the printer in setupPOS.exe application.
And as a next step I'm trying to run checkup health from checkuphealth.bat file
But receiving the above mentioned exception.
If I try to use the System.setProperty(JposPropertiesConst.JPOS_POPULATOR_FILE_PROP_NAME, "/path of jpos.xml");
as solution to the above mentioned exception, It's throwing null pointer exception.
Can anyone help on these issues?
Your process can't find the file "jp_co_epson_upos_firm_firmnativeaccess.dll"
One solution is to add the folder containing the file to the Windows PATH environment variable.
I found this file in my prior version of Java:
C:\Program Files\Java\jdk1.7.0_80\jre\bin
It was not installed in my Java 8 jre when I reinstalled the ADK driver after adding Java 8 to my system.
I have added it as a library in my application and it resolved this issue.

starting cassandra on windows 7 error the system can not find the path specified

I have tried to get cassandra working on windows 7. I followed the instructions from:
http://php-cms-job.blogspot.de/2012/09/how-to-install-cassandra-and-configure.html
I have double checked the steps of creating the folders and changing the yaml file but always get the message after running cassandra.bat:
Starting Cassandra Server
The System cannot find the Path Specified
I can not find which path exactly, any tips?
Cassandra will fail to start with no logs if the values in
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\cassandra\Parameters\Java are not correct.
For example, if the Jvm REG_SZ value is not pointing to the correct path for jvm.dll you will get a System event log Error with
"The cassandra service terminated with the following service-specific error: Incorrect function".
You can find where java is with >echo %JAVA_HOME%
To any future Googlers, in my case the issue was that Cassandra had created the service using the 32-bit version of prunsrv.exe. To fix it, I manually replaced the 32-bit version with the 64-bit version (found inside the amd64 folder).

Can't start glassfish v3 on windows 7

I have glassfish v3 on windows 7 installed, but it won't start on 8080. I get typical dead page when I go to 8080 like you would expect if it's not running.
I tried to start it manually.
C:\glassfish3\bin
asadmin start-domain and what i get is "system cannot find the path specified"
I searched hi and low for an answer but most questions involve glassfish not starting because the port is not free. however that's not my issue.
I've tried reinstalling about a half dozen times and even rebooting. nothing changes
An alternative answer:
Download the zip version here:
http://download.java.net/glassfish/3.1.2/release/glassfish-3.1.2.zip
Unzip this to c:\glassfish3
This command will work:
C:\glassfish3\bin\asadmin.bat start-domain domain1
Its a configuration issue, when you try to install glassfish server from the installer sans bundled jdk,simply go to "\glassfish3\glassfish\config", set AS_JAVA to jdk home dir in asenv.bat file, re-run the installation, chose custom installation and "configure an existing installation" and you are done.
For more info:http://java.net/jira/browse/GLASSFISH-16155.
It looks like you forgot a slash in your command. The error your getting isn't a glassfish error, it's a DOS error.
try:
C:\glassfish3\bin\asadmin.bat start-domain domain1
or
C:\glassfish3\bin\asadmin start-domain domain1
Hi I was facing the same issue. I am able to resolve the same issue by following below steps:
Go to \glassfish\config (Note: In my case it is c:\glassfish3\glassfish\config)
Now open asenv.bat in notepad.
Make the value of AS_JAVA same as JAVA_HOME environment variable.
Now open command prompt and go to the bin folder and run asadmin start-domain domain1.
If you are getting error that no domain exist then create new domain by following below link:
http://docs.oracle.com/cd/E19776-01/820-4497/create-domain-1/index.html

Resources