2016-07-20 14 views
0

主要有以下類是我Procfile無法加載,我Procfile指向

web: java %JAVA_OPTS% -cp target\classes;"target\dependency\*" 

但即時得到以下錯誤,當進出口運行我的web應用程序中的Heroku。

Error: Could not find or load main class console

的Main.class是包當我輸入heroku openinfo.socket.webmobile

應用程序崩潰內,它拋出的錯誤Error: Could not find or load main class console時,進出口運行它像heroku run java console

我怎麼能能夠解決這個問題嗎?

+0

其中是命令中的類名稱? – sidgate

+0

無法獲取整個類文件並檢測相應的主類時,我說'依賴/ *'?如果不是我怎麼能包括我的名字爲Main.class的主類 – Learner

+0

'java%JAVA_OPTS%-cp target \ classes; target \ dependency Main.class ' – sidgate

回答

1

Procfile應該包含這樣的:

web: java $JAVA_OPTS -cp target/classes;target/dependency/* info.socket.webmobile.Main 

注意我添加info.socket.webmobile.Main類,並轉換格式,以更* nix中友好的格式。

+0

仍然會得到相同的錯誤bro – Learner