Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/304.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 无法在Glassfish 4.1中找到或加载主类_Java_Glassfish_Glassfish 4 - Fatal编程技术网

Java 无法在Glassfish 4.1中找到或加载主类

Java 无法在Glassfish 4.1中找到或加载主类,java,glassfish,glassfish-4,Java,Glassfish,Glassfish 4,我试图在Glassfish 4.1中启动域,并收到以下错误消息 Waiting for domain1 to start .Error starting domain domain1. The server exited prematurely with exit code 1. Before it died, it produced the following output: Error: Could not find or load main class .M;C:.Program Com

我试图在Glassfish 4.1中启动域,并收到以下错误消息

Waiting for domain1 to start .Error starting domain domain1.
The server exited prematurely with exit code 1.
Before it died, it produced the following output:
Error: Could not find or load main class .M;C:.Program

Command start-domain failed.

有什么想法吗?

我实际上创建了一个全新的glassfish装置。我所做的只是运行创建域。它创建得很好,但在我尝试启动它时发生了这种情况。你在Windows上运行它吗?是的。我正在使用Windows 7查看此链接…可能是您的问题: