Java path problem

xiaoxiao2021-03-06  119

Java path problem, not usual classpath settings:

I compiled a class [test.class], under the package com.jianye.msg,

Package in the file web-inf / classes / below

Then when you run, I will run the command of web-inf / class / com / jiane / msg: java com.jianye.msg.test

As a result, it has been reported that the main function can not be found, and the teacher is looking for a half-day mistake, but also to be implemented.

I am also confused. Now I have seen it. It turned out that I can't go to the most auto package folder. [I have a good dish]. It should be like this:

Go to Web-INF / CLASSES / then run: java com.jianye.msg.test

OK is OK.

Yeah ~~~

转载请注明原文地址:https://www.9cbs.com/read-97578.html

New Post(0)