Question

I've started a new project and I have a .bat file to run my application. I happen to use linux, so I can't use .bat files (and I'd prefer not to make a .sh file unless I have to). Could someone show me how to set up my run configurations so that my application will run through IntelliJ 12? I've tried a couple things and I keep getting this error:

    Error: Could not find or load main class com.intellij.rt.execution.application.AppMain

Here is the line from the .bat file:

    java -Xmx1500m -XX:+DisableExplicitGC -noverify -cp bin;libs/* com.rs2.Server localhost 43594 600

And this is what I've tried in IntelliJ:

(I can't post pictures sorry, here's the link) http://imgur.com/8Trn6

Était-ce utile?

La solution

The semi-colon is a path separator on Windows machines only. If you want to add things to your path in *Nix (including Mac), then you want to use the colon character.

Here's what your configuration would look like:

java -Xmx1500m -XX:+DisableExplicitGC -noverify -cp bin:libs/* com.rs2.Server localhost 43594 600
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top