The online racing simulator
Searching in All forums
(2 results)
apm
S2 licensed
Quote from amp88 :The JInSim library uses a logging library that you need to specify on the class path to run any of the examples. A version of the required library is located in the lib directory. Try the following command to run the example instead:

java -cp dist\*;lib\*; net.sf.jinsim.examples.helloworld.Main 127.0.0.1 10000

What this does (by specifying the dist\* and lib\* classpath entries) is to put the logging library on the classpath. Also it's worth noting that I've replaced the "localhost" for the host parameter with "127.0.0.1". I've found that Vista and Java don't get on well together with "localhost" (I don't know if you're using Vista, but it's just something to put in the mind of anyone who does run Vista and looks at this thread). Good luck and happy coding

Thanks for quick reply and solving my problem . You were correct about localhost , as I'm running on Windows 7. Looking forward to spend some time with java on vacation .
apm
S2 licensed
Could you guys guide me, I cant even get these examples to work. What I am doing wrong?
C:\Users\user\Desktop\prkl\jinsim-0.3>java -cp dist/jinsim-0.5.rc5.jar net.sf.ji
nsim.examples.helloworld.Main localhost 10000
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lo
gging/LogFactory
at net.sf.jinsim.AbstractChannel.<clinit>(AbstractChannel.java:17)
at net.sf.jinsim.examples.helloworld.Main.run(Main.java:93)
at net.sf.jinsim.examples.helloworld.Main.main(Main.java:150)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFacto
ry
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 3 more

Running on LFS Z25 with launch paremeter /insim=10000.
FGED GREDG RDFGDR GSFDG