Click here to Skip to main content
15,881,898 members
Home / Discussions / Java
   

Java

 
GeneralRe: Which technologies should I use ? Pin
Peinis12-Jul-11 16:45
Peinis12-Jul-11 16:45 
AnswerRe: Which technologies should I use ? Pin
David Skelly11-Jul-11 22:35
David Skelly11-Jul-11 22:35 
GeneralRe: Which technologies should I use ? Pin
Sylvain_D11-Jul-11 23:33
Sylvain_D11-Jul-11 23:33 
AnswerRe: Which technologies should I use ? Pin
Richard MacCutchan11-Jul-11 22:45
mveRichard MacCutchan11-Jul-11 22:45 
GeneralRe: Which technologies should I use ? Pin
Sylvain_D11-Jul-11 23:36
Sylvain_D11-Jul-11 23:36 
GeneralRe: Which technologies should I use ? Pin
Pete O'Hanlon11-Jul-11 23:45
mvePete O'Hanlon11-Jul-11 23:45 
QuestionCould not find main class [modified] Pin
RossouwDB10-Jul-11 20:12
RossouwDB10-Jul-11 20:12 
AnswerRe: Could not find main class Pin
Gerben Jongerius10-Jul-11 21:40
Gerben Jongerius10-Jul-11 21:40 
You should not have to edit the build.xml for your java app to work from the console. Since it is working from Netbeans I'm presuming that all your code is correct and compiled properly without problems.

Netbeans will create a .jar file in the build directory of the project. You will have to find that to be able to start your main class via command line. Once you located it you can start the your jar from the command line as follows:

java -cp myjar.jar;mylib1.jar;mylib2.jar com.classpackage.MyClass


Where you need to replace the last parameter with the full class name of the class you are trying to start (so including the full package name). The files after -cp are the libraries you need for your application to run. This would at least include the jar file generated by Netbeans, but also any library that you have included in the project.
GeneralRe: Could not find main class Pin
TorstenH.10-Jul-11 21:52
TorstenH.10-Jul-11 21:52 
GeneralRe: Could not find main class Pin
RossouwDB10-Jul-11 22:37
RossouwDB10-Jul-11 22:37 
GeneralRe: Could not find main class Pin
Richard MacCutchan11-Jul-11 0:17
mveRichard MacCutchan11-Jul-11 0:17 
GeneralRe: Could not find main class Pin
RossouwDB11-Jul-11 1:18
RossouwDB11-Jul-11 1:18 
GeneralRe: Could not find main class Pin
Richard MacCutchan11-Jul-11 2:17
mveRichard MacCutchan11-Jul-11 2:17 
GeneralRe: Could not find main class Pin
RossouwDB11-Jul-11 2:25
RossouwDB11-Jul-11 2:25 
GeneralRe: Could not find main class Pin
Richard MacCutchan11-Jul-11 2:41
mveRichard MacCutchan11-Jul-11 2:41 
GeneralRe: Could not find main class Pin
RossouwDB11-Jul-11 2:43
RossouwDB11-Jul-11 2:43 
GeneralRe: Could not find main class Pin
Richard MacCutchan11-Jul-11 2:49
mveRichard MacCutchan11-Jul-11 2:49 
GeneralRe: Could not find main class Pin
RossouwDB11-Jul-11 2:58
RossouwDB11-Jul-11 2:58 
GeneralRe: Could not find main class Pin
Richard MacCutchan11-Jul-11 3:07
mveRichard MacCutchan11-Jul-11 3:07 
GeneralRe: Could not find main class Pin
RossouwDB11-Jul-11 3:12
RossouwDB11-Jul-11 3:12 
GeneralRe: Could not find main class Pin
TorstenH.11-Jul-11 3:13
TorstenH.11-Jul-11 3:13 
GeneralRe: Could not find main class Pin
Richard MacCutchan11-Jul-11 4:53
mveRichard MacCutchan11-Jul-11 4:53 
GeneralRe: Could not find main class Pin
RossouwDB11-Jul-11 19:19
RossouwDB11-Jul-11 19:19 
GeneralRe: Could not find main class Pin
TorstenH.11-Jul-11 21:10
TorstenH.11-Jul-11 21:10 
GeneralRe: Could not find main class Pin
RossouwDB11-Jul-11 21:25
RossouwDB11-Jul-11 21:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.