Click here to Skip to main content
15,888,461 members
Home / Discussions / Java
   

Java

 
GeneralRe: Getting SQL Exception ORA-08103: object no longer exists in java Pin
Abhi_aec2-Mar-15 23:23
Abhi_aec2-Mar-15 23:23 
GeneralRe: Getting SQL Exception ORA-08103: object no longer exists in java Pin
Richard MacCutchan2-Mar-15 23:35
mveRichard MacCutchan2-Mar-15 23:35 
QuestionHow toread JSON file from disk and want to convert it into byteArray[] object. Pin
Abhi_aec1-Mar-15 20:29
Abhi_aec1-Mar-15 20:29 
AnswerRe: How toread JSON file from disk and want to convert it into byteArray[] object. Pin
Richard MacCutchan1-Mar-15 22:59
mveRichard MacCutchan1-Mar-15 22:59 
AnswerRe: How toread JSON file from disk and want to convert it into byteArray[] object. Pin
Afzaal Ahmad Zeeshan2-Mar-15 3:06
professionalAfzaal Ahmad Zeeshan2-Mar-15 3:06 
QuestionMethod Pin
Member 1147410123-Feb-15 16:46
Member 1147410123-Feb-15 16:46 
AnswerRe: Method Pin
SakthivelPalaniyappan23-Feb-15 18:52
SakthivelPalaniyappan23-Feb-15 18:52 
AnswerRe: Method Pin
Afzaal Ahmad Zeeshan23-Feb-15 20:31
professionalAfzaal Ahmad Zeeshan23-Feb-15 20:31 
The packages having class without a Main function are more like a library package. Are you sure you don't want to have a Main function?

You can create a seperate class (maybe inside the same package) and then add the Main function inside it

Java
package packagename;

public class MainClass {
   public static void Main(String[] args) {
      System.out.println("Hello world!");
   }
}


This would be executed as the first function, and you can set it to the default entry point. Which IDE are you using? NetBeans or eclipse?

Main function is the entry point; set by you in properties, and it the very first function to be executed by the application. That is why it is required.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

GeneralRe: Method Pin
Member 1147410126-Feb-15 13:51
Member 1147410126-Feb-15 13:51 
SuggestionRe: Method Pin
Richard MacCutchan24-Feb-15 0:12
mveRichard MacCutchan24-Feb-15 0:12 
Questioncompiling my code Pin
Member 1147410123-Feb-15 15:52
Member 1147410123-Feb-15 15:52 
SuggestionRe: compiling my code Pin
Richard MacCutchan23-Feb-15 21:51
mveRichard MacCutchan23-Feb-15 21:51 
Questionadding multiply and division method Pin
Member 1147410123-Feb-15 14:29
Member 1147410123-Feb-15 14:29 
AnswerRe: adding multiply and division method Pin
Akash gods23-Feb-15 17:06
professionalAkash gods23-Feb-15 17:06 
GeneralRe: adding multiply and division method Pin
Member 1147410124-Feb-15 3:35
Member 1147410124-Feb-15 3:35 
AnswerRe: adding multiply and division method Pin
Richard MacCutchan23-Feb-15 21:50
mveRichard MacCutchan23-Feb-15 21:50 
GeneralRe: adding multiply and division method Pin
Member 1147410126-Feb-15 14:05
Member 1147410126-Feb-15 14:05 
GeneralRe: adding multiply and division method Pin
Richard MacCutchan26-Feb-15 21:09
mveRichard MacCutchan26-Feb-15 21:09 
AnswerRe: adding multiply and division method Pin
Akash gods27-Feb-15 9:44
professionalAkash gods27-Feb-15 9:44 
SuggestionRe: adding multiply and division method Pin
Richard MacCutchan27-Feb-15 22:23
mveRichard MacCutchan27-Feb-15 22:23 
GeneralRe: adding multiply and division method Pin
Akash gods28-Feb-15 6:48
professionalAkash gods28-Feb-15 6:48 
GeneralRe: adding multiply and division method Pin
Richard MacCutchan28-Feb-15 6:55
mveRichard MacCutchan28-Feb-15 6:55 
QuestionWhat type of check is made in an ArrayList generic? Pin
Afzaal Ahmad Zeeshan22-Feb-15 7:06
professionalAfzaal Ahmad Zeeshan22-Feb-15 7:06 
AnswerRe: What type of check is made in an ArrayList generic? Pin
Richard MacCutchan22-Feb-15 7:38
mveRichard MacCutchan22-Feb-15 7:38 
GeneralRe: What type of check is made in an ArrayList generic? Pin
Afzaal Ahmad Zeeshan22-Feb-15 8:47
professionalAfzaal Ahmad Zeeshan22-Feb-15 8:47 

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.