0
votes

I installed GlassFish Server in C:\glassfish3 directory.

When I type "dir" in c:\glassfish3\bin directory the files are listed just fine.

enter image description here

But when I type asadmin I get "The system cannot find the path specified."

What might be wrong?

How am I going to start GlassFish server?

-- Edit --

Also, after Installation I get:

Creating domain


Executing command :C:\glassfish3\glassfish\bin\asadmin.bat --user admin --passwordfile - create-domain --savelogin --checkports=false --adminport 4848 --instanceport 8080 --domainproperties=jms.port=7676:domain.jmxPort=8686:orb.listener.port=3700:http.ssl.port=8181:orb.ssl.port=3820:orb.mutualauth.port=3920 domain1 C:\glassfish3\glassfish\bin\asadmin.bat --user admin --passwordfile - create-domain --savelogin --checkports=false --adminport 4848 --instanceport 8080 --domainproperties=jms.port=7676:domain.jmxPort=8686:orb.listener.port=3700:http.ssl.port=8181:orb.ssl.port=3820:orb.mutualauth.port=3920 domain1 The system cannot find the path specified.

1
have u tried asadmin start-domain -v ?berkay
Yes, does not work either.Koray Tugay
asadmin start-domain should work for your default domain. Pls refer to step by step instructions, in case your classpath is missing docs.oracle.com/cd/E19879-01/821-0186/fvjgoberkay
remove the line @echo off from asadmin.bat and try again. that will show more on why it fails.muratgu
@muratgu Apparently, it is looking for C:\Program Files\Java\bin\java however my Java Installation is in a different folder. Thanks.Koray Tugay

1 Answers

2
votes

glassfish requires jdk6 or 7 already installed. type java -version on command line. if it's not working then you need to install it.

alternatively you can tell glassfish to look for a particular jdk, by modifying C:\glassfish3\glassfish\config\asenv.bat -- but I wouldn't recommend it.