This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
When I run it, the command prompt screen flashes and nothing happens. If I change the java.exe to javaw.exe, it gives me �Could not find the main class. Program will exit.� I have tried adding �-cp c:\Program Files\CBS\CBPay� and it still doesn�t work. I tried removing the �Start In� on the shortcut and sure enough, it does the same thing and stops working. Also, if I Start==>Run and paste that command and run it, it does the same thing and flashes the command prompt screen and nothing happens. It's like it just doesn't have a path to something. I have no "Java" experience and beginner VBScript...So any assistance would be greatly appreciated! Thanks!
I believe a major part of my problem is that I am majorly JAVA challenged and don't really know what that "com.cbsgame.cbPlus.CBPlus" portion of the java command relates to. I searched for jar file names CBPlus and found one in "c:\program files\CBS\CBPay\client\lib", but don't see how that relates/translates to the ".com.cbsgame..." in the JAVA command?
In the FAQ section for this forum there is a section setting up classpaths. The classpath is what Java uses to find Java classes. It can either be set up as an environment variable or passed into the java command as a switch argument.