How run this application ?
Domovenok opened this issue · 7 comments
Could you explain how can i run your application ? I do:
$ git clone https://github.com/angryziber/simple-java simple-java
$ cd simple-java
$ ant
$ cd src
$ javac -cp ../lib/default/: Launcher.java
$ java -cp ../lib/default/: Launcher
In chrome i write "http://localhost:8080/" . And i see:
HTTP ERROR: 503
Problem accessing /. Reason:
Service Unavailable
Powered by Jetty://
Use the Launcher class from under the src. Normally you would run it from a Java IDE
On 30.10.2013, at 21:54, Domovenok notifications@github.com wrote:
Could you explain how can i run your application ? I do :
—
Reply to this email directly or view it on GitHub.
When a run java -cp ../lib/default: Launcher , I am already in the src directory. I like to use console when i start something new for me ))
Then you need to compile the classes first. If you are starting, I really
recommend an IDE :-)
Classpath definition should be more like this: -cp lib/default/*
On Wed, Oct 30, 2013 at 10:06 PM, Domovenok notifications@github.comwrote:
When a run java -cp ../lib/default: Launcher , I am already in the src
directory. I like to use console when i start something new for me ))—
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-27433953
.
Sorry, of course i am using java -cp ../lib/default/* Launcher
Ok. I try to use IDEA IDE )
I still can not run application (( I create the project in IDEA. But when i try to Run Launcher, i get 81 errors. Here some errors:
java: package javax.persistence does not exist
Before running application i run "ant" in root directory
Try adding all jar files from the lib directory as dependencies to the
proect.
On Wed, Oct 30, 2013 at 11:07 PM, Domovenok notifications@github.comwrote:
I still can not run application (( I create the project in IDEA. But when
i try to Run Launcher, i get 81 errors. Here some errors:
java: package javax.persistence does not existBefore running application i run "ant" in root directory
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-27439162
.
Thanks a lot. All works )))